essentials
, and has a new repository in GitHub. Please use the essentials
package instead of rocore
; since this will not be actively maintained anymore.
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
pip install rocore
Please refer to documentation in the project wiki: https://github.com/RobertoPrevato/rocore/wiki.
pip install -r requirements.txt
# run tests using automatic discovery:
pytest
# with code coverage:
make testcov