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.
- 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'.
- dt - 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.
- 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.0.tar.gz
(17.6 kB
view hashes)
Built Distribution
pure_utils-0.4.0-py3-none-any.whl
(11.0 kB
view hashes)
Close
Hashes for pure_utils-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fcce08fb65c874975864055b4e5375431b58baff213e89bed8ba5e560fc94c6e |
|
MD5 | 859a5ec8b9dcfd0094e61588f6a63e0e |
|
BLAKE2b-256 | a230938a65ab9814b2c862a9967ff3e44cc52e78e898df52ca812281361a74a8 |