Core 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
- implementation of models annotations, useful to implement validation of business objects
- friendly JSON encoder, handling
datetime
,date
,time
,UUID
,bytes
- 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
Documentation
Please refer to documentation in the project wiki: https://github.com/RobertoPrevato/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.0.8.tar.gz
(11.3 kB
view hashes)
Built Distribution
essentials-1.0.8-py3-none-any.whl
(14.2 kB
view hashes)
Close
Hashes for essentials-1.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01cf57dba26d126645eb5b7308086adb5315b8e27b13a81ca19d9cd18f6f94df |
|
MD5 | fe8a2385f8d1eb9d1e9f80732d7df964 |
|
BLAKE2b-256 | fe67da289bb7a4acb1b8cf95d329b9d37877598b4bc4007570a50736b22d045e |