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 Distribution
essentials-1.1.1.tar.gz
(8.5 kB
view hashes)
Built Distribution
essentials-1.1.1-py3-none-any.whl
(10.8 kB
view hashes)
Close
Hashes for essentials-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cb9aba010fbe31360ff0a996700484b711188c742f4f49cede861160cfd0085 |
|
MD5 | ee99bf15da68c8b3fcb00a523472317d |
|
BLAKE2b-256 | 299d8555fe22dc406769fe461a7027fe19efd6c3d0aaeac493d809ac771a829d |