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
foldersand paths StopWatchimplementation- 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
Metadata
Release files for rocore 1.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rocore-1.0.8.tar.gz | 12.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rocore-1.0.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.2 kB
Release files / rocore-1.0.8.tar.gz
| Download URL | rocore-1.0.8.tar.gz |
|---|---|
| Size | 12.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c2e4254eaa11473b27fc9b20d002a6558973b7afe3f6168158909c7ecd0e36a5
|
|
BLAKE2b-256 checksum How to use checksums |
940695176fa607c52014d676ed2ae965186dd7e0ebc0710cab0588d9c8f9368f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / rocore-1.0.8-py3-none-any.whl
| Download URL | rocore-1.0.8-py3-none-any.whl |
|---|---|
| Size | 15.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6bc9bab4148ea4c88b45d5c447f7bd9e9b288e854ef8841d240980a7ca168da0
|
|
BLAKE2b-256 checksum How to use checksums |
f865207de72dce40e73cdb8f6ca1ef860a70d1470ef8945949c1d574046f477a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|