2 Commits

Author SHA1 Message Date
528f11c8eb chore: release v2.3.5 2022-01-30 17:32:29 +00:00
Daniel Tomlinson
709f1ae997 chore: release v2.3.4 2022-01-03 02:34:51 +00:00
2 changed files with 0 additions and 31 deletions

View File

@@ -1,8 +1,5 @@
# Panaetius
![PyPI](https://img.shields.io/pypi/v/panaetius)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/panaetius)
This package provides:
- Functionality to read user variables from a `config.yml` or environment variables.
@@ -83,8 +80,6 @@ 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:
@@ -101,16 +96,6 @@ 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

View File

@@ -1,16 +0,0 @@
Features:
☐ Add simple one-line logger
☐ Try Typer
<https://typer.tiangolo.com/>
One-line logger
```
LOGGER = panaetius.set_logger(
CONFIG,
panaetius.CustomLogger(
logging_format='{"time": "%(asctime)s", "logging_level":"%(levelname)s", "message": "%(message)s"}',
logging_level=CONFIG.logging_level,
),
)
```