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
  • average_value(values, decimal, nearest=False)

    • Returns the average of a list of numbers, rounded to the given decimal places.
    • If nearest=True, returns the value from the list closest to the average.
    • Example:
      average_value([1, 2, 3, 4, 5], 2)        # → 3.00
      average_value([1, 2, 3, 4, 5], 2, True)  # → 3
      

🚧 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 docstrings 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.1.4.tar.gz (3.2 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.1.4-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for utlib-0.1.4.tar.gz
Algorithm Hash digest
SHA256 3a4cfcb86ec04344b3cc1a0932a8f742fea28c4989d0398fee9092cd26443896
MD5 2e84ab78636e0748dac5d1d2c0cafb15
BLAKE2b-256 872c90b8bf096d1cf057ad92bcb1d03f5a01e9dc5fd4166ff914438f7b10ce1b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: utlib-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 3.5 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.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4054f2b05983a88d0715ff4e61c9ee78784a78207ca5aeea1a938871b59af9a6
MD5 eb9f77a5ae7879795a1f0e8d873fa472
BLAKE2b-256 90c182cc1e663e117743fed5ded9008a3d4f937c0ce9fa7872ee202027ba846f

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