General purpose classes and functions, reusable in any kind of Python application
Project description
Essentials
Core classes and functions, reusable in any kind of Python application.
$ pip install essentials
Features:
- exception classes to express common scenarios
- friendly JSON encoder, handling
datetime
,date
,time
,UUID
,bytes
, built-in enums, and instances of classes implementing adict()
method, like pydantic BaseModel - utilities to work with
folders
and paths StopWatch
implementation- a base class to handle classes that can be instantiated from configuration dictionaries
- common decorator to support retries
- common decorator to support logging function calls
- common decorator to control raised exceptions
- caching functions
Documentation
Please refer to documentation in the project wiki: https://github.com/Neoteroi/essentials/wiki.
Develop and run tests locally
pip install -r requirements.txt
# run tests using automatic discovery:
pytest
# with code coverage:
make testcov
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
essentials-1.1.5.tar.gz
(10.9 kB
view hashes)
Built Distribution
essentials-1.1.5-py3-none-any.whl
(13.0 kB
view hashes)
Close
Hashes for essentials-1.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 905fa4a69fcd2b2cf41ecc6cc65827e30c87ef91f3f5c71540bcc5e984fa8360 |
|
MD5 | 2f6e967846fa18f3e4d85a4e8e304678 |
|
BLAKE2b-256 | c4aa194b6b99b4689ac69998585d8d70aa5e0dab7c5dbf1d8e948fa9cd54dfb4 |