Milieu
======
Milieu allows easy parameter configuration using environment variables or
json files.
Usage Examples
==============
The following code creates a milieu instance that reads environment variables,
then reads the WORKON_HOME variable.
```
>>> import milieu
>>> M = milieu.init()
>>> M.WORKON_HOME
'/Users/andres/.virtualenvs'
```
The following code create a milieu instance from a json file, the reads the
several variables variable:
```
>>> import milieu
>>> M= milieu.init(path='/tmp/file.json')
>>> M.foo
u'fizz'
>>> M.bar
u'buzz'
>>> M.baz
[u'one', u'two', u'three']
```
The json associated to this example is:
```
{
"foo": "fizz",
"bar": "buzz",
"baz": ["one", "two", "three"]
}
```
======
Milieu allows easy parameter configuration using environment variables or
json files.
Usage Examples
==============
The following code creates a milieu instance that reads environment variables,
then reads the WORKON_HOME variable.
```
>>> import milieu
>>> M = milieu.init()
>>> M.WORKON_HOME
'/Users/andres/.virtualenvs'
```
The following code create a milieu instance from a json file, the reads the
several variables variable:
```
>>> import milieu
>>> M= milieu.init(path='/tmp/file.json')
>>> M.foo
u'fizz'
>>> M.bar
u'buzz'
>>> M.baz
[u'one', u'two', u'three']
```
The json associated to this example is:
```
{
"foo": "fizz",
"bar": "buzz",
"baz": ["one", "two", "three"]
}
```
Release files for unholster.milieu 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| unholster.milieu-1.0.0.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| unholster.milieu-1.0.0-py2.7.egg | Legacy Egg format | - | - | Details |
Total release size: 10.5 kB
Release files / unholster.milieu-1.0.0.tar.gz
| Download URL | unholster.milieu-1.0.0.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b71fbab15099af5737a60558bb76fe466808f95257fe1f62b1adde379c70ebf6
|
|
BLAKE2b-256 checksum How to use checksums |
7cde495b586407e3d8b605fe1ffba0eea17cc7f041f10e9c3985b37cf8a3ba0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / unholster.milieu-1.0.0-py2.7.egg
| Download URL | unholster.milieu-1.0.0-py2.7.egg |
|---|---|
| Size | 6.3 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
afd2361edd5dbc87a2c99119d1eab94370fdfb8b0c2751b0c6602e23c88eabaa
|
|
BLAKE2b-256 checksum How to use checksums |
5c0242ed4df8f3c57180e7f2df90665d7f7a6284e8de066a3204e32cbdcfe55f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |