Skip to main content

dict-like grouping of environment variables

Project description

# dict-envy

dict-like grouping of environment variables :sparkles:

---

Imagine you have this:

```
COUNTRIES_GB_NAME="United Kingdom"
COUNTRIES_GB_TLD=.uk
COUNTRIES_HK_NAME=China
COUNTRIES_HK_TLD=.cn
```

and with a simple call you can have all of this:

```python
>>> import os
>>> import dictenvy
>>> import pprint
>>> env = dictenvy.dictate(os.environ, depth=2)
>>> pprint.pprint(env)
{'countries': {'gb': {'name': 'United Kingdom', 'tld': '.uk'},
'hk': {'name': 'China', 'tld': '.cn'}}}
```

`depth` is how you regulate the depth of the returned dictionary.

## Installation

Use pip:

```shell
$ pip install dict-envy
```


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

dict-envy-0.1.0.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

dict_envy-0.1.0-py3-none-any.whl (1.6 kB view details)

Uploaded Python 3

File details

Details for the file dict-envy-0.1.0.tar.gz.

File metadata

  • Download URL: dict-envy-0.1.0.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dict-envy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6e1fede16de4a41dff262d5c71863c5b9842b6b0661898f73f7637fad8a80340
MD5 e43b9250fc571bd1d716fa740e992a09
BLAKE2b-256 0724e78f62ffd9727be87b6f19fe4c81acad2372b1a749770dc7c63cc52463a6

See more details on using hashes here.

File details

Details for the file dict_envy-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for dict_envy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cfde8c5ec2ff114f99422029cd1608c94f8ad51efa911391e729148b9e4cc363
MD5 87812fc93ba45ef54e681b38425afe5d
BLAKE2b-256 4f4e9e2b025c4d1e9257e4153ec03fd6da4461e2d987bfc6c5d826eb90a3cad7

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