Skip to main content

Environment variable manager

Project description

Knobs (Version 2.0.2 ) are used to tune environment variables

.. image::

.. image::
:alt: Documentation Status


.. image::

.. code:: python

>>> pirates = Knob('JOLLY_ROGER_PIRATES', 124, description='Yar')
>>> pirates.get()
>>> pirates.get_type()
>>> <type 'int'>

Use ``knobs`` if you worship at the church of the `12 Factor App <>`_

A knob is a wrapper for an environment variable. It can:

* Read and write an environment variable
* Make sure it is of the expected type
* Validate a value is good.

``knobs`` will search for a nominated environmental file (default ``.env``) and load that
into the environment. A knob is type aware, configured from the environment and its value can be
persisted to ease the creation of configuration files.


Install from pypi

.. code::

$ pip install knobs

Install from source

.. code::

$ pip install .

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 knobs, version 2.0.2
Filename, size File type Python version Upload date Hashes
Filename, size knobs-2.0.2-py2.py3-none-any.whl (7.0 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page