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
miniscule-0.15.3.tar.gz
(5.4 kB
view details)
File details
Details for the file miniscule-0.15.3.tar.gz
.
File metadata
- Download URL: miniscule-0.15.3.tar.gz
- Upload date:
- Size: 5.4 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 | c5fe05e94496cbd5621b27ef72e433edd6fe0cd6bff82ed1015a6e161d7b2be5 |
|
MD5 | 0ca106a93b02c6f872980b6b93f73794 |
|
BLAKE2b-256 | 5c61dceb19942da5691fde48bdd40e64d2f85b5d683645d10529c55838fd0456 |