Skip to main content

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


Download files

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

Source Distribution

domus-0.0.0.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file domus-0.0.0.tar.gz.

File metadata

  • Download URL: domus-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

Hashes for domus-0.0.0.tar.gz
Algorithm Hash digest
SHA256 b70a8b62f3e9562ea4b553b6665bc3a97fad82c26c40f61f77d95d595cd6e5af
MD5 e3a1f92bb2bdc959c6c505e26129f66c
BLAKE2b-256 2ef640420783c8d28e2d0b89f93131f031429b22f484dc783a01b2f64f758ee7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page