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/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.1.3.tar.gz
(10.2 kB
view hashes)
Built Distribution
essentials-1.1.3-py3-none-any.whl
(12.8 kB
view hashes)
Close
Hashes for essentials-1.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4aa47f868bca80cf1281c1100dbd7844bd185e74b163f9f1942cc6bd371427d |
|
MD5 | a0539acb45f7957db63475d3e933aa15 |
|
BLAKE2b-256 | 874486605efdcb37e2285745801f209ce0e7f0b7077a3dc3c32df482af1636f9 |