Skip to main content

Store your configurations for applications in JSON.

Project description

Wasserstoff - is a library that help you store your configurations for applications in JSON files. The configuration will be easily loaded to the scope of configuration object. The library was written with the use of tools from the standard Python library, and therefore, it does not have any side dependencies.


➜  ~ pip install wasserstoff

or (when the project has been cloned):

➜  make test
➜  make install


Content of dev.json:

  "smtp server": [
  "port": 456,
  "ssl": true,
  "secret_key": "SECRET_KEY_HERE"

Content of test.json:

  "ssl": false,
  "secret_key": "001110110100101100101010100010111010"

Loading configurations from the file:

>>> from wasserstoff import (
...     Config,
...     Environment,
... )

>>> env = Environment()

>>> dev = Config(
...     filename='dev',
...     scope='dev',
... )

>>> test = Config(
...     filename='test',
...     scope='test',
... )

>>> env.patch(dev, test)
>>> env.commit()

Now you can access to your configurations:

['', '']




>>> env.test.SSL

>>> env.test.SECRET_KEY


Wasserstoff is licensed under the MIT License. See LICENSE for more information.

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 wasserstoff, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size wasserstoff-0.0.3.tar.gz (4.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