Skip to main content

A utility library that contains useful functions, decoraters 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.1.tar.gz (3.3 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.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for utlib-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fb52215b489f340c30e6d8b6bd7d8159ee58eb6b5c969e075916ba6db8868ed7
MD5 6fae6d817e54c514d2fd9e2672d06359
BLAKE2b-256 624be746e729eee4c773d8cb599448a339b1790deadb302273aaf7ec5123985c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for utlib-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 254b15cbc1375a023a9da226829803b15876028d3601d9718572782365e2c2a0
MD5 e4d7fe22da24cca98361e82b74f3a3d9
BLAKE2b-256 8a160c9ad05f0423789286174249f9730612273b56c5c74a8da6d05b50fd2be3

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