Yet another python utilities, with the goal of collecting useful bicycles and crutches in one place ;).
Project description
pure-utils
Yet another python utilities, with the goal of collecting useful bicycles and crutches in one place ;).
Main principles:
- No third party dependencies (standart library only).
- Mostly pure functions without side effects.
- Interfaces with type annotations.
- Comprehensive documentation with examples of use.
- Full test coverage.
For detail information read the doc.
Available utilities
- common - The common purpose utilities.
- Singleton - A metaclass that implements the singleton pattern for inheritors.
- datetime - Utilities for working with datetime objects.
- apply_tz - Apply timezone context to datetime object.
- iso2format - Convert ISO-8601 datetime string into a string of specified format.
- iso2dmy - Convert ISO-8601 datetime string into a string of DMY (DD.MM.YYYY) format.
- iso2ymd - Convert ISO-8601 datetime string into a string of YMD (YYYY-MM-DD) format.
- round_by - Round datetime, discarding excessive precision.
- debug - Utilities for debugging and development.
- around - Add additional behavior before and after execution of decorated function.
- caller - Get the name of calling function/method (from current function/method context).
- deltatime - Measure execution time of decorated function and print it to log.
- profileit - Profile decorated function being with 'cProfile'.
- profiler - Helper classes for working with the cProfile.
- Profiler - A class provides a simple interface for profiling code.
- strings - Utilities for working with strings.
License
MIT License.
Copyright (c) 2024 Peter Bro <p3t3rbr0@gmail.com || peter@peterbro.su>
See LICENSE file for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pure_utils-0.4.1.tar.gz
(20.8 kB
view hashes)
Built Distribution
pure_utils-0.4.1-py3-none-any.whl
(14.8 kB
view hashes)
Close
Hashes for pure_utils-0.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f4cd1f13511a1297b69d91f4709850c948e9188dda0f6445b64a0b4bb15914a |
|
MD5 | 6e7ddd4624e914054082661f61abd252 |
|
BLAKE2b-256 | 28c875c90e592a701d22babf75295902e0368b7050ab1b6d7cb2a40e544d6a12 |