Essentials
Core classes and functions, reusable in any kind of Python application.
$ pip install essentials
Features:
- exception classes to express common scenarios
- friendly JSON encoder, handling
datetime,date,time,UUID,bytes, built-in enums, and instances of classes implementing adict()method, like pydantic BaseModel - 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
- caching functions
Documentation
Please refer to documentation in the project wiki: https://github.com/Neoteroi/essentials/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 essentials 1.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| essentials-1.1.9.tar.gz | 25.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| essentials-1.1.9-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 41.2 kB
Release files / essentials-1.1.9.tar.gz
| Download URL | essentials-1.1.9.tar.gz |
|---|---|
| Size | 25.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7fbea3a518cbeafe5374fb7e2ea2c15a109e8a7fd1eaab62ae87cbd1b3b1e8d0
|
|
BLAKE2b-256 checksum How to use checksums |
b6ff587c8789abad9c76ef2a5bf613c6d7922a0d09879e3eda1864d108f11b75
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Release files / essentials-1.1.9-py2.py3-none-any.whl
| Download URL | essentials-1.1.9-py2.py3-none-any.whl |
|---|---|
| Size | 16.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
71ef161e0e27ef77cd6f5fc05e0b8688a575fcab870c01c95940f832e321dfbb
|
|
BLAKE2b-256 checksum How to use checksums |
508b68aa342fa78931429ea09e6dc8d9ffa46fa36cfb0cf423e612d22365a9c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|