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 details)
Built Distribution
rocore-1.0.8-py3-none-any.whl
(15.0 kB
view details)
File details
Details for the file rocore-1.0.8.tar.gz
.
File metadata
- Download URL: rocore-1.0.8.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2e4254eaa11473b27fc9b20d002a6558973b7afe3f6168158909c7ecd0e36a5 |
|
MD5 | db87256a386db03dfad010cee4efdd44 |
|
BLAKE2b-256 | 940695176fa607c52014d676ed2ae965186dd7e0ebc0710cab0588d9c8f9368f |
File details
Details for the file rocore-1.0.8-py3-none-any.whl
.
File metadata
- Download URL: rocore-1.0.8-py3-none-any.whl
- Upload date:
- Size: 15.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bc9bab4148ea4c88b45d5c447f7bd9e9b288e854ef8841d240980a7ca168da0 |
|
MD5 | 99bed0ab465fe838582ccb6ff1300cf7 |
|
BLAKE2b-256 | f865207de72dce40e73cdb8f6ca1ef860a70d1470ef8945949c1d574046f477a |