Skip to main content

No project description provided

Project description

https://img.shields.io/pypi/v/mbq.env.svg https://img.shields.io/pypi/l/mbq.env.svg https://img.shields.io/pypi/pyversions/mbq.env.svg https://img.shields.io/travis/managedbyq/mbq.env/master.svg

Installation

$ pip install mbq.env
🚀✨

Guaranteed fresh.

Getting started

$ env
...
MY_VAR=bacon
MY_INT_VAR=123
MY_BOOL_VAR=1
MY_CSV_VAR=a,b,c
MY_TOKEN_VAR=a b c
MY_KEY_VAR=-----BEGIN CERTIFICATE-----...-----END CERTIFICATE-----
...
In [1]: from mbq import env

In [2]: env.get('MY_VAR', default='BACON')
Out[2]: 'bacon'

In [3]: env.get_int('MY_INT_VAR', default=12)
Out[3]: 123

In [4]: env.get_bool('MY_BOOL_VAR', default=False)
Out[4]: True

In [5]: env.get_csv('MY_CSV_VAR', default=['abc', '123'])
Out[5]: ['a', 'b', 'c']

In [6]: env.get_tokens('MY_TOKEN_VAR', default=['abc', '123'])
Out[6]: ['a', 'b', 'c']

In [7]: env.get_key('CERTIFICATE', 'MY_KEY_VAR')
Out[7]: '-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----'

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

mbq.env-0.1.0.tar.gz (7.2 kB view details)

Uploaded Source

File details

Details for the file mbq.env-0.1.0.tar.gz.

File metadata

  • Download URL: mbq.env-0.1.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mbq.env-0.1.0.tar.gz
Algorithm Hash digest
SHA256 62433a9acfd17172216963ea60bb2656f746b7bba1c4cf31fd4a04a85d3c8899
MD5 76ee817b296b111a28ff740cb65181c6
BLAKE2b-256 a41c49b62dc25517ada221566aac88bbdd127918c00308fdf13aec20eff9749f

See more details on using hashes here.

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