Metadata-Version: 2.1
Name: betterconf
Version: 1.2
Summary: Python configs for humans. Using OS environment.
Home-page: https://github.com/prostomarkeloff/betterconf
License: MIT
Keywords: configs,config,env,.env
Author: prostomarkeloff
Requires-Python: >=3.1,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Project-URL: Documentation, https://github.com/prostomarkeloff/betterconf
Project-URL: Repository, https://github.com/prostomarkeloff/betterconf
Description-Content-Type: text/markdown

# Python configs for humans.
> Using OS environment. Following unix-way.

Before you ask - this library doesn't support type-casts and other features. Just env parsing.

## How to?
At first, install libary:

```sh
pip install betterconf
```

And... write simple config:
```python
from betterconf import field, Config

class MyConfig(Config):
    my_var = field("my_var")

cfg = MyConfig()
print(cfg.my_var)
```

Try to run:
```sh
my_var=1 python our_file.py
```

With default values:
```python
from betterconf import field, Config

class MyConfig(Config):
    my_var = field("my_var", default="hello world")

cfg = MyConfig()
print(cfg.my_var)
# hello world
```

Override values when it's needed (for an example: test cases)
```python
from betterconf import field, Config

class MyConfig(Config):
    my_var = field("my_var", default="hello world")

cfg = MyConfig(my_var="WOW!")
print(cfg.my_var)
# WOW!
```
