constants-and-utils-0.0.5
توضیحات
Constants and utils
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | constants-and-utils-0.0.5 |
| نام | constants-and-utils |
| نسخه کتابخانه | 0.0.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Terminus |
| ایمیل نویسنده | jose.salas@zinobe.com |
| آدرس صفحه اصلی | https://gitlab.com/terminus-zinobe/constants-and-utils |
| آدرس اینترنتی | https://pypi.org/project/constants-and-utils/ |
| مجوز | - |
# Constants and Utils
Package with constants and generic utilities
[](https://gitlab.com/terminus-zinobe/constants-and-utils/-/commits/master) [](https://gitlab.com/terminus-zinobe/constants-and-utils/-/commits/master)
## Package installation
- Installation standard
```shell
$ pip3 install constants-and-utils
```
- Install with mongoengine utils
```shell
$ pip3 install constants-and-utils[mongoengine]
```
## Docs
- [Constants and utils documentation](https://constants-and-utils-docs.readthedocs.io/en/latest/index.html)
Examples:
`recursive_get` this is a helper, apply a get recursive to the dictionary.
```python
>>> from constants_and_utils.utils.helpers import recursive_get
>>> recursive_get({'NUMBER': {'ONE': 1 }}, 'NUMBER.ONE')
1
```
`HttpCode` this is a class enum, Http code constants.
```python
>>> from constants_and_utils.constants.enums import HttpCode
>>> HttpCode.OK.value
200
```
[More](https://constants-and-utils-docs.readthedocs.io/en/latest/index.html)
نیازمندی
| مقدار | نام |
|---|---|
| >=0.18.2 | mongoengine |
| >=1.3.2 | Cerberus |
| >=3.10.1 | pymongo |
| >=4.3.2 | deepdiff |
| ==3.20.0 | mongomock |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl constants-and-utils-0.0.5:
pip install constants-and-utils-0.0.5.whl
نصب پکیج tar.gz constants-and-utils-0.0.5:
pip install constants-and-utils-0.0.5.tar.gz