chore: add simple env script example to README

This commit is contained in:
2022-05-15 21:50:33 +01:00
parent 7b2b895309
commit f3df6290c1

View File

@@ -83,6 +83,8 @@ tembo.cli.CONFIG
### Script
#### with config file
Create `./config/config.yml` in the same directory as the script.
In the script initialise a `CONFIG` object:
@@ -99,6 +101,16 @@ CONFIG = panaetius.Config(
Set variables in the same way as the module above.
####  with env vars only
```python
import panaetius
CONFIG = panaetius.Config("mart")
panaetius.set_config(CONFIG, "username")
panaetius.set_config(CONFIG, "password")
```
#### quickstart logging
```python