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
- friendly JSON encoder, handling
datetime
,date
,time
,UUID
,bytes
, 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
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
essentials-1.1.0-py3-none-any.whl
(10.8 kB
view hashes)
Close
Hashes for essentials-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30d47d8108471f779bbb76c9bb9dbe99a07b10e44f387a0932401101ed9883cb |
|
MD5 | e36c38fbe9666144fdf41a0ac40dff96 |
|
BLAKE2b-256 | 0776518d844d1cfea54e37d7d74ccc2a8abb19c035f5bf7f47739d1fe66f79a6 |