Davipy is a Python library that provides a set of useful functions to simplify programming tasks. It includes various functions that can streamline common operations and reduce code complexity.
You can install Davipy using pip, so type in shell:
pip install davipy
-
Image Downloader: Given a URL, the
downloadallimg(url)
function creates a folder and downloads all the images from the website. -
Even Number Check: The function
iseven(number)
returnsTrue
if a number is even, andFalse
otherwise. -
Odd Number Check: The function
isodd(number)
returnsTrue
if a number is odd, andFalse
otherwise. -
Prime Number Check: The function
isprime(number)
returnsTrue
if a number is prime, andFalse
otherwise. -
Website Link Collector: Given a URL, the
listlink(url)
function creates a folder and generates a TXT file containing all the links on the website. -
Ping Function: The
ping(url)
function checks the reachability of a website and returns a boolean value basing on if the site is reachable or not. -
Remove Duplicates: The function
listremoveduplicate(input_list)
removes all duplicates from a given list. -
Dataframe Report: The
reportfile(dataframe)
function generates a report for a given DataFrame. The report includes the first and last 10 rows and provides statistics on NaN values. -
Single Image Downloader: The function
imgsingledownload(url)
allows for downloading a single image from a given URL. -
String Case Conversion: The functions
stringUPPER(string, start_num_chars, stop_num_chars)
andstringlower(string, start_num_chars, stop_num_chars)
convert a specified number of characters in a string to uppercase or lowercase, respectively.