Skip to main content

Constants and utils

Project description

Constants and Utils

Package with constants and generic utilities

pipeline status coverage report

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

More

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

constants-and-utils-0.0.5.tar.gz (8.9 kB view hashes)

Uploaded Source

Built Distribution

constants_and_utils-0.0.5-py3-none-any.whl (15.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page