A collection of Python tools, scripts and utilities to make your life easier.
-
add_scheme.py - Add scheme to URL if not present.
-
base64_to_string.py - Decode base64 file to plaintext.
-
binary_to_decimal.py - Convert Binary to Decimal.
-
bytes_to_human.py - Convert bytes to a human readable format.
-
calculate_age.py - Calculate age from date of birth.
-
convert_pdf.py - Convert PDF file to text or html.
-
count_characters.py - Count the number of characters in a text file.
-
count_directories.py - Count number of folders in a diectory recursively.
-
count_files.py - Count number of files in a directory recursively.
-
count_vowels.py - Count the number of vowels in a text.
-
count_words.py - Count the occurrences of each word in a given sentence.
-
date_format.py - Get format date by language.
-
decimal_to_binary.py - Convert Decimal to Binary.
-
decimal_to_hexadecimal.py - Convert Decimal to Hexadecimal.
-
decimal_to_roman.py - Convert decimal number to roman numerals.
-
dict_to_xml.py - Convert dict to xml.
-
download_youtube.py - Download YouTube videos.
-
email_web_crawler.py - Web crawler for grabbing all emails from a website.
-
file_dir_exists.py - Check if file or directory exists.
-
first_last_name.py - Extract the first and last name from a full name.
-
generate_password.py - Generate a random password.
-
generate_qrcode.py - Generate a QR Code.
-
generate_secret_key.py - Generate a flask secret key.
-
geocode_google.py - Get latitude and longitude from address, using Google Maps Geocoding API.
-
get_directory_structure.py - Create a dictionary that represents the folder structure of directory.
-
get_file_size.py - Get size of the file in bytes.
-
get_geolocation.py - Get geolocation information from IP address or hostname (150 requests per minutes).
-
hexadecimal_to_decimal.py - Convert Hexadecimal to Decimal.
-
hexdump.py - Generate hexdump of a binary file.
-
html_to_pdf.py - Convert HTML to PDF. You can convert a HTML file, HTML string or URL.
-
is_palindrome.py - Check if string is a Palindrome.
-
is_prime.py - Check if a number is a prime number.
-
json_to_yaml.py - Convert JSON to YAML.
-
link_web_crawler.py - Web crawler for grabbing all links from a website.
-
list_remove_duplicates.py - Remove duplicates from a list.
-
md5_file.py - Calculate MD5 Hash of a file.
-
merge_pdfs.py - Combine multiple pdfs to single pdf.
-
morse_to_text.py - Convert morse code to text.
-
my_ip.py - Get your external IP.
-
nato.py - Convert text to NATO phonetic alphabet.
-
optimize_image.py - Resize and compress image.
-
password_strength_check.py - Check the strength of password.
-
remove_diacritics.py - Remove diacritics from the text.
-
remove_file_dir.py - Remove a file or directory.
-
remove_pyc.py - Remove all .pyc files in the path recursively.
-
reverse.py - Reverse the order of a list or string.
-
roman_to_decimal.py - Convert roman numerals to decimal number.
-
seconds_to_human.py - Convert seconds to a human readable format.
-
send_email.py - Send html or text email.
-
send_message_telegram.py - Send a message to a telegram user. The token can be generated talking with @BotFather on telegram.
-
sha256_file.py - Calculate SHA256 Hash of a file.
-
sqlalchemy_to_dict.py - Convert SQLAlchemy object to dict.
-
string_to_base64.py - Encode a text file to base64.
-
svg_to_pdf.py - Convert an SVG image to PDF.
-
text_to_morse.py - Convert text to morse code.
-
text_to_speech_offline.py - Convert text to speech offline. It uses different speech engines based on your operating system.
-
text_to_speech_online.py - Convert text to speech using Google Translate’s and save in mp3. Need an internet connection.
-
unzip_file.py - Unzip file.
-
url_shortener.py - Create a shortened URL with TinyURL.
-
valid_email.py - Check for a valid email address.
-
valid_ip.py - Check if IP address is valid.
-
whois.py - Get WHOIS from IP address or hostname.
-
xml_to_dict.py - Convert xml to dict.
-
yaml_to_json.py - Convert YAML to JSON.
-
zip_file.py - Create a zip file.
Any help in testing, development, documentation and other tasks is highly appreciated and useful to the project. For more details, read our Contributing Guide to see how you can help.
Python Tools is licensed under the terms of the MIT License (see the file LICENSE).