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
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.7.tar.gz
(10.7 kB
view hashes)
Built Distribution
rocore-1.0.7-py3-none-any.whl
(12.6 kB
view hashes)