Core classes and functions, reusable in any kind of Python application
Project description
Core classes and functions, reusable in any kind of Python application
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
- implementation of simple in-memory cache, supporting expiration of items and capped lists
- 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
Installation
pip install rocore
Documentation
Please refer to documentation in the project wiki: https://github.com/RobertoPrevato/rocore/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
rocore-1.0.8.tar.gz
(12.2 kB
view hashes)
Built Distribution
rocore-1.0.8-py3-none-any.whl
(15.0 kB
view hashes)