Skip to main content

A general-purpose utility library offering a wide range of functions

Project description

Useful utilities

Copyright (C) 2020-2025 Sergey V. Pakhtusov aka pascal65536

A general-purpose utility library offering a wide range of functions

pip install git+https://github.com/pascal65536/behoof.git

This Python project to be a versatile utility library offering a wide range of functionalities, including:

  1. String and Text Manipulation:

    • vowel, consonant, rus_alphabet, transliteration, is_palindrome - Functions related to character analysis, alphabet manipulation, and palindrome detection.

    • generate_alternating_name, generate_fake_name - Functions for generating names, potentially for testing or data generation purposes.

  2. Mathematical Operations:

    • is_prime, get_divisors, gcd, lcm - Functions for prime number detection, divisor finding, and calculation of greatest common divisor and least common multiple.

    • euclidean_distance - Functions for calculates the Euclidean distance between two points given as tuples of two numbers (e.g. (x, y)).

  3. Data Handling and I/O:

    • generate_name, name_to_hex_color, load_json, save_json, upload_file - Functions for color generation, JSON file handling, and file uploading.

    • log_action, logging_to_csv - Function for logging messages to a CSV file.

  4. Text Similarity and Distance:

    • hamming_distance, similarity, calculate_jaccard_similarity - Functions for calculating text similarity and distance metrics.
  5. File Management and Manipulation:

    • collect_files_lst, moves_file, generate_random_code_string - Functions for collecting files, moving files, and generating random code strings.

    • calculate_md5, find_duplicate_files, delete_files, remove_empty_directories, move_file_to_folder_with_limit - Functions specifically focused on duplicate file management, including MD5 hashing, duplicate file detection, deletion, and organization into folders with limited file counts.

                           _  __  ____ ____ _____  __   
 _ __   __ _ ___  ___ __ _| |/ /_| ___| ___|___ / / /_  
| '_ \ / _` / __|/ __/ _` | | '_ \___ \___ \ |_ \| '_ \ 
| |_) | (_| \__ \ (_| (_| | | (_) |__) |__) |__) | (_) |
| .__/ \__,_|___/\___\__,_|_|\___/____/____/____/ \___/ 
|_|                                                     

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

behoof-1.1.8-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file behoof-1.1.8-py3-none-any.whl.

File metadata

  • Download URL: behoof-1.1.8-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for behoof-1.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 3fa1ee5ed36742fc57fc8081b08be8bbb44363f71b1f1da7716c5e47a71938de
MD5 5285318fbdb6e177cb42798f312ad2fd
BLAKE2b-256 4decbbd50253dcd4b9fad5e5c3d17f4a371c4f5a527042ad04edd9e1ded4ac8d

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