General purpose classes and functions
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
essentials-1.1.9.tar.gz
(25.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file essentials-1.1.9.tar.gz.
File metadata
- Download URL: essentials-1.1.9.tar.gz
- Upload date:
- Size: 25.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7fbea3a518cbeafe5374fb7e2ea2c15a109e8a7fd1eaab62ae87cbd1b3b1e8d0
|
|
| MD5 |
2e27c501edaea185e5e875d899714cf3
|
|
| BLAKE2b-256 |
b6ff587c8789abad9c76ef2a5bf613c6d7922a0d09879e3eda1864d108f11b75
|
File details
Details for the file essentials-1.1.9-py2.py3-none-any.whl.
File metadata
- Download URL: essentials-1.1.9-py2.py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71ef161e0e27ef77cd6f5fc05e0b8688a575fcab870c01c95940f832e321dfbb
|
|
| MD5 |
dee9d5d97f1636cb9a20ca007b026a97
|
|
| BLAKE2b-256 |
508b68aa342fa78931429ea09e6dc8d9ffa46fa36cfb0cf423e612d22365a9c2
|