Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

knobs

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

knobs

Environment variable manager

  • 2.1.1
  • PyPI
  • Socket score

Maintainers
1

============================================================= Knobs (Version 2.1.1 ) are used to tune environment variables

.. image:: https://badge.fury.io/py/knobs.svg :target: https://badge.fury.io/py/knobs

.. image:: https://readthedocs.org/projects/knobs/badge/?version=latest :target: http://knobs.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status

.. image:: https://github.com/sthysel/knobs/blob/master/docs/knob.jpg?raw=true

.. code:: python

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

Use knobs if you worship at the church of the 12 Factor App <http://www.12factor.net/>_

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

Install from pypi

.. code::

$ pip install knobs

Install from source

.. code::

$ pip install .

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc