Constants and utils
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for constants-and-utils-0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | df15b8f1b7f2b29a1684fad861bdebc6450a1825cddfccb896363f1b5f44ca19 |
|
MD5 | 7d5a3bbc2b1e10e0d8fd0c7f8537ac21 |
|
BLAKE2b-256 | b738b242ff413d8a09d0dfd576ebe085c102d50ec44c3cb746d251c451d0b4af |
Close
Hashes for constants_and_utils-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd8cf5990bf93a3a4a24f04cf7c6cc5031424fcd3b93f15dbc99a367790df0e5 |
|
MD5 | 700c67bacaabea12e4b5958beabca249 |
|
BLAKE2b-256 | f90f60a306d38e782a9a47dcb9f229ea526de52f6fc31a454ece8364868e4050 |