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.9.tar.gz
(11.6 kB
view hashes)
Built Distribution
essentials-1.0.9-py3-none-any.whl
(14.3 kB
view hashes)
Close
Hashes for essentials-1.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a21558796e5999f61fb3ae57e9b25633824974d4264d06d1bd9a30098b5b35d0 |
|
MD5 | a24b31e30022ecd2e254901345495c38 |
|
BLAKE2b-256 | 538b14c393c6f04fbe6d7908106a8ce758dab5af28a252f0d4ffc22efe01214a |