essentials-1.1.5
توضیحات
General purpose classes and functions, reusable in any kind of Python application
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | essentials-1.1.5 |
| نام | essentials |
| نسخه کتابخانه | 1.1.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Roberto Prevato |
| ایمیل نویسنده | roberto.prevato@gmail.com |
| آدرس صفحه اصلی | https://github.com/Neoteroi/essentials |
| آدرس اینترنتی | https://pypi.org/project/essentials/ |
| مجوز | MIT |

[](https://pypi.python.org/pypi/essentials)
[](https://github.com/Neoteroi/essentials)
[](https://github.com/Neoteroi/essentials/blob/master/LICENSE)
[](https://codecov.io/gh/Neoteroi/essentials)
# Essentials
Core classes and functions, reusable in any kind of Python application.
```bash
$ pip install essentials
```
**Features:**
* [exception classes to express common scenarios](https://github.com/Neoteroi/essentials/wiki/Common-exceptions)
* [friendly JSON encoder](https://github.com/Neoteroi/essentials/wiki/User-friendly-JSON-dumps), handling `datetime`, `date`, `time`, `UUID`, `bytes`, built-in enums, and instances of classes implementing a `dict()` method, like [pydantic BaseModel](https://pydantic-docs.helpmanual.io)
* utilities to work with `folders` and paths
* [`StopWatch` implementation](https://github.com/Neoteroi/essentials/wiki/StopWatch-implementation)
* [a base class to handle classes that can be instantiated from configuration dictionaries](https://github.com/Neoteroi/essentials/wiki/Registry)
* [common decorator to support retries](https://github.com/Neoteroi/essentials/wiki/Retry-decorator)
* [common decorator to support logging function calls](https://github.com/Neoteroi/essentials/wiki/Logs-decorator)
* [common decorator to control raised exceptions](https://github.com/Neoteroi/essentials/wiki/Exception-handle-decorator)
* [caching functions](https://github.com/Neoteroi/essentials/wiki/Caching)
## Documentation
Please refer to documentation in the project wiki: [https://github.com/Neoteroi/essentials/wiki](https://github.com/Neoteroi/essentials/wiki).
## Develop and run tests locally
```bash
pip install -r requirements.txt
# run tests using automatic discovery:
pytest
# with code coverage:
make testcov
```
نیازمندی
| مقدار | نام |
|---|---|
| ==0.7 | dataclasses |
نحوه نصب
نصب پکیج whl essentials-1.1.5:
pip install essentials-1.1.5.whl
نصب پکیج tar.gz essentials-1.1.5:
pip install essentials-1.1.5.tar.gz