A YAML based, pluggable configuration library inspired by Aeson
Project description
Introduction
Miniscule is a library for flexible YAML-based configuration files, inspired by Clojure’s Aero.
Example
Create a file config.yaml
with the following contents:
server:
host: !or [!env HOST, localhost]
port: !or [!env PORT, 8000]
debug: !env DEBUG
database:
name: my_database
user: my_user
password: !env DB_PASSWORD
secret: !aws/sm secret
Then, in Python:
from miniscule import read_config
config = read_config('config.yaml')
Now, config
holds a dictionary with the structure of the
config.yaml
file, in which the tagged fields have been replaced.
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
descriptive-0.0.0.tar.gz
(3.0 kB
view details)
File details
Details for the file descriptive-0.0.0.tar.gz
.
File metadata
- Download URL: descriptive-0.0.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e14fd8090805611b356451b47812cd4ac9b9bcd2dd30d9531069b4a0ee09874d |
|
MD5 | 4d73ecfa8c54aa304c85fb031fafa4c2 |
|
BLAKE2b-256 | 9e72421ec5ae2f2ef52850b824363c638cf9069145c59d0dc7be9b1ab026a79f |