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
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
- 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.6.tar.gz
(21.1 kB
view details)
Built Distribution
File details
Details for the file essentials-1.1.6.tar.gz
.
File metadata
- Download URL: essentials-1.1.6.tar.gz
- Upload date:
- Size: 21.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
3fd26923f5f2ece51a219dbb17b1fb22c9190d70fa2104919be92a6419521877
|
|
MD5 |
0f954896205283eb829f1525abbf58f7
|
|
BLAKE2b-256 |
116919b9f48d14c1a293ca4f8482dedc5ee0c33f3b93865c2ecc6f623bbe94fc
|
File details
Details for the file essentials-1.1.6-py2.py3-none-any.whl
.
File metadata
- Download URL: essentials-1.1.6-py2.py3-none-any.whl
- Upload date:
- Size: 14.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
a470e693d83c13369ebf1f488d60236b4ea99400f38db6b7224e2808c1369256
|
|
MD5 |
4786e3ebccb580e2a29472426daafb6e
|
|
BLAKE2b-256 |
0385b10f225424d71c2b6450eb80028d301cd745e2b7ade873f99ee97ca5a756
|