Constants and Utils
Package with constants and generic utilities
Package installation
-
Installation standard
$ pip3 install constants-and-utils
-
Install with mongoengine utils
$ pip3 install constants-and-utils[mongoengine]
Docs
Examples:
recursive_get this is a helper, apply a get recursive to the dictionary.
>>> 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.
>>> from constants_and_utils.constants.enums import HttpCode
>>> HttpCode.OK.value
200
Metadata
Release files for constants-and-utils 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| constants-and-utils-0.0.5.tar.gz | 8.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| constants_and_utils-0.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.8 kB
Release files / constants-and-utils-0.0.5.tar.gz
| Download URL | constants-and-utils-0.0.5.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df15b8f1b7f2b29a1684fad861bdebc6450a1825cddfccb896363f1b5f44ca19
|
|
BLAKE2b-256 checksum How to use checksums |
b738b242ff413d8a09d0dfd576ebe085c102d50ec44c3cb746d251c451d0b4af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9
|
Release files / constants_and_utils-0.0.5-py3-none-any.whl
| Download URL | constants_and_utils-0.0.5-py3-none-any.whl |
|---|---|
| Size | 15.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fd8cf5990bf93a3a4a24f04cf7c6cc5031424fcd3b93f15dbc99a367790df0e5
|
|
BLAKE2b-256 checksum How to use checksums |
f90f60a306d38e782a9a47dcb9f229ea526de52f6fc31a454ece8364868e4050
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9
|