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
- If
nearest=True, returns the value from the list closest to the average. - Note: the output is Decimal class
- Example:
average_value([1, 2, 3, 4, 5], 2) # → 3.00 average_value([1, 2, 3, 4, 5], 6) # → 3.000000
🚧 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.
Metadata
Release files for utlib 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| utlib-0.2.0.tar.gz | 4.1 kB | Without provenance | Details for utlib-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| utlib-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for utlib-0.2.0-py3-none-any.whl |
Total release size: 8.4 kB
Release files / utlib-0.2.0.tar.gz
| Download URL | utlib-0.2.0.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fa5a28dd29f969e4ad2eb0e3c8ca64bf51f44d4e7def355440301a85bc6bb23d
|
|
BLAKE2b-256 checksum How to use checksums |
9fe0c56bc21f9e6743ee41b16a76e43751889026da225953c1f4da81cd7b44dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.17
|
Release files / utlib-0.2.0-py3-none-any.whl
| Download URL | utlib-0.2.0-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
961744867a88016d6dfbdc2d73938c053a74b8a6cfa2313df933b52d88a67bdd
|
|
BLAKE2b-256 checksum How to use checksums |
4486d11a6571273d4d25a114adbbf72d813c49c3505556393ff2c15cdcc7c82e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.17
|
Security for utlib 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.