From f3df6290c164a9b0eb7843797d6b64853628bf3c Mon Sep 17 00:00:00 2001 From: Daniel Tomlinson Date: Sun, 15 May 2022 21:50:33 +0100 Subject: [PATCH] chore: add simple env script example to README --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 702e822..898844a 100644 --- a/README.md +++ b/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