Skip to main content

A YAML based, pluggable configuration library inspired by Aeson

Project description


Miniscule is a library for flexible YAML-based configuration files, inspired by Clojure’s Aero.


Create a file config.yaml with the following contents:

  host: !or [!env HOST, localhost]
  port: !or [!env PORT, 8000]
debug: !env DEBUG
  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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for domus, version 0.0.0
Filename, size File type Python version Upload date Hashes
Filename, size domus-0.0.0.tar.gz (3.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page