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.7-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: behoof-1.1.7-py3-none-any.whl
  • Upload date:
  • Size: 8.3 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 8fa895f7877e73a15df7d7652952438a585c407a6e3d43991902cea604f269f4
MD5 d097f6ff9cd76a453ff7cc50948d54e7
BLAKE2b-256 f51311685b7cc301d33670ef420456345fa6637b88814105f7e6b64040c5a22f

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