mirror of
https://github.com/dtomlinson91/panaetius.git
synced 2025-12-22 13:05:45 +00:00
chore: add simple env script example to README
This commit is contained in:
12
README.md
12
README.md
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user