No project description provided
Project description
Ultra Simple Config for Python
Installation
pip install ultra-simple-config
Usage
Create a yml file with your configuration, for example:
db:
url: localhost
port: 5432
format: utf8
user:
name: blubby
Then load it in your python code:
from ultra_simple_config import load_config
Then use it on your method like that:
@load_config(location="tests/example_config/db.yaml")
def test_loading(cfg: DictConfig):
# then you can use it like this:
print(cfg.db.url)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ultra_simple_config-0.1.0.tar.gz.
File metadata
- Download URL: ultra_simple_config-0.1.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/5.15.0-91-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0dc9573569cc82791081868308cbc018190bc435d1cd38c2a3670438d93186e
|
|
| MD5 |
310407738b90ba4c8496d49ed84addae
|
|
| BLAKE2b-256 |
5a871b9cc980cee002bdbd2fd3470d6522f17dc26c847cb46037a07f2c6a204a
|
File details
Details for the file ultra_simple_config-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ultra_simple_config-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/5.15.0-91-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f1d9b8f9f7bb9a5d8b725fc353465f270d8a72661ac3c941e08c028d38d7670
|
|
| MD5 |
1bcd9efcf386f4f284ef92e6f9287c3b
|
|
| BLAKE2b-256 |
9c70ee1b6f0d11dbce52c7900ec7ac45f58be4591be71006443a8ae6a5d3e3d8
|