The utils4
project is a CPython and C library which contains generalised, utility-based functions, designed to be an underlying library across your various Python 3.7+ projects.
The easiest way to install utils4
is using pip
after activating your virtual environment:
pip install utils4
Listed below are some of the project's commonly used tools and utilities. Some of these items are utilities unto themselves, while others are simple convenience wrappers around existing libraries, just brought together for convenience.
- Colour maps
- Converters (e.g. binary, hexadecimal, ASCII and integer)
- Cryptographic and hashing functions
- Error reporting
- General maths-based functionality (e.g. for solving Project Euler problems)
- General utility functions
- Logging
- Progress bar
- Terminal colour handling
- Terminal user interface styling
- Wait ticker / spinner
- etc.
The documentation suite contains usage examples and detailed explanation for each of the library's importable modules. Please refer to the Library API Documentation section of the documentation.
As the library contains some C components, building on Windows may prove tricky. To help address this, we've pre-compiled some win_amd64
wheels for you. These wheels are available on GitHub's Releases page, for each release.