Skip to main content

A utility library that contains useful functions, decorators and more

Project description

Utlib - Utility Library

utlib is a lightweight and customizable utility library designed to simplify everyday Python programming.
Created by Myroslav Repin, the project is in active development and will continue to grow with new features and improvements.


✨ Current Features

  • digit_sum(n)

    • Returns the sum of all digits in an integer.
    • Example: digit_sum(1234)10
  • is_polindrome(text)

    • Checks if a given string is a palindrome (reads the same forwards and backwards).
    • Example: is_polindrome("level")True
  • word_count(text)

    • Returns the number of words in a given text.
    • Example: word_count("Hello world!")2
  • vowels(lang='eng', consonants=False)

    • Returns the list of vowels of supported languages including: English (eng), Russian (ru), Spanish (es), French (fr), German (de)
    • Using secong parametr of the function you can select which list you want to return: vowels or consonants
  • average_value(values, decimal)

    • Returns the average of a list of numbers, rounded to the given decimal places.
    • Planned to add a functionality to get the nearest value
    • Currently average_value() is not supporting floats
    • Example:
      average_value([1, 2, 3, 4, 5], 2)        # → 3.00
      average_value([1, 2, 3, 4, 5], 5)  # → 3.00000
      
  • remove_vowels(text, lang, consonants)

    • Returns the string without vowels
    • Using consonants=True function return string with vowels only
    • Function returning now lower case only
    • lang by default is eng, supporting languages: eng, ru, fr, es, de
  • count_words(text, min_lenght)

    • Number of words in text with length greater than or equal to min_lenght.
    • text — input string.
    • min_lenght — minimum word length (integer).

🚧 Planned Features

  • Advanced math helpers
  • Filtering tools
  • AI-based utilities
  • Custom data structures
  • Useful decorators and wrappers
  • Useful function

📦 Installation

To install the latest version from PyPI, use:

pip install utlib

📄 Documentation

Official documentation is coming soon. For now, explore the source code and README to understand available functionality.

If you have any ideas or requests for the documentation, feel free to share!


💌 Feedback & Contact

If you find a bug or want to request a feature:

📧 Email: myroslavrepin@gmail.com 📁 GitHub: github.com/MyroslavRepin/utlib


📌 License

This project is licensed under the MIT License.

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

utlib-0.3.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

utlib-0.3.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file utlib-0.3.0.tar.gz.

File metadata

  • Download URL: utlib-0.3.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.17

File hashes

Hashes for utlib-0.3.0.tar.gz
Algorithm Hash digest
SHA256 2adb2dd599f3732b71f1992ee8e447c384cb35752adadba9be2220b2e8734279
MD5 f7919a4a2eeb66db34280595bb3d934d
BLAKE2b-256 b2a30834caa37bea92f534a45d48a97c33b97698d8b88819b80fb64b6787e01e

See more details on using hashes here.

File details

Details for the file utlib-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: utlib-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.17

File hashes

Hashes for utlib-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 81582dafbfa0561819fdcf691e6d6dcb43e55856e805e4fa1a22b18a7cf9de93
MD5 f91405eed1deb3acf82e8c0f096f5f3d
BLAKE2b-256 2645583a79435b69e1e0731785f36f033bdc408fd1cbf24b9e24503ca5c4b69a

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