Skip to main content

A consolidation of all tools created so far as a Python package

Project description

TN3W_Utils

A consolidation of all tools created so far as a Python package

All functions in this package:

# Basic Tools
random_string(length, with_numbers, with_letters, with_punctuation)
random_font()
shorten_text(text, length)
list_remove_duplicates(origin_list)
reverse_list(origin_list)
get_system_architecture()
get_console_columns()
find_missing_numbers_in_range(range_start, range_end, data)
get_password_strength(password)
is_password_pwned(password, session)
EmptyWith().
    __enter__()
    __exit__(exc_type, exc_value, traceback)
download_file(url, dict_path, operation_name, file_name, session, return_as_bytes, quite)
AtExit().
    register(func, *args, **kwargs)
    remove_atexit(atexit_id)

# File Tools
JSON.
    load(file_name, default)
    dump(data, file_name)
Block(block_size, file_name).
    _get_id(index)
    _write_data(block_data)
    add_data(index, new_data)
read(file_name, is_bytes, default)
write(data, file_name, is_bytes)
SecureDelete.
    list_files_and_directories(directory_path)
    file(file_path, quite)
    directory(directory_path, quite)

# Cryptographic Tools
FastHashing(salt, without_salt).
    hash(plain_text, salt_length)
    compare(plain_text, hashed_value)
Hashing(salt, without_salt).
    hash(plain_text, hash_length)
    compare(plain_text, hashed_value)
SymmetricEncryption(password, salt_length).
    encrypt(plain_text)
    decrypt(cipher_text)
AsymmetricEncryption(public_key, private_key).
    generate_keys(key_size)
    encrypt(plain_text)
    decrypt(cipher_text)
    sign(plain_text)
    verify_sign(signature, plain_text)
NoEncryption().
    encrypt(plain_text)
    decrypt(cipher_text)
derive_password(password, salt)

# User-Agent Tools
random_ua()

# IP-Address Tools
shorten_ipv6(ip_address)
ipv4_to_ipv6(ipv4_address)
is_valid_ip(ip_address)
get_client_ip(request)
get_ip_info(ip_address, cache_path, save_securely)

# Web Tools
remove_args_from_url(url)
WebPage.
    client_language(request, default)
    _minimize_tag_content(html, tag)
    minimize(html)
    _translate_text(text_to_translate, from_lang, to_lang)
    translate(html, from_lang, to_lang)
    render_template(file_path, html, **args)
render_template(file_name, request, template_dir, template_language, **args)

# Image Tools
show_image_in_console(image_bytes)
random_website_logo(name)
convert_image_to_base64(file_path)
is_valid_image(image_data)
resize_image(image_data, target_size)

# Software Tools
macos_get_installer_and_volume_path()
Linux.
    get_package_manager()
    install_package(package_name, quite)
GnuPG.
    path
    get_download_link(session)
Captcha(captcha_secret, data).
    generate()
    verify(client_input, crypted_captcha_prove)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tn3w_utils-1.1.1.tar.gz (492.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tn3w_utils-1.1.1-py3-none-any.whl (488.9 kB view details)

Uploaded Python 3

File details

Details for the file tn3w_utils-1.1.1.tar.gz.

File metadata

  • Download URL: tn3w_utils-1.1.1.tar.gz
  • Upload date:
  • Size: 492.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for tn3w_utils-1.1.1.tar.gz
Algorithm Hash digest
SHA256 baf05bbd2d53d4bfc8032df91318f29350e99f0d68551db2a1a89e7937579446
MD5 d0944e8339d3409387f0f771a42adab4
BLAKE2b-256 6e07ce3dfb0a17e9d0c36368336ba3693523a57ed48cd221799d5801f0699123

See more details on using hashes here.

File details

Details for the file tn3w_utils-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: tn3w_utils-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 488.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for tn3w_utils-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 be7bd6fe12733b830515430e1d90397ecea609e91cf724541d0d0ad8f28dd1cd
MD5 c631bcf9ba3f5a7858d18b114da0054c
BLAKE2b-256 cbca876254b89ed08867552646aed0c91acdab6a7fd26377eceaba0d66aa0b44

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page