Giter Site home page Giter Site logo

settings-vial's Introduction

Settings Vial

Python settings for cloud environments

image image image image image

Settings Vial is a Python package providing an abstraction to read settings from environment variables. Such settings are then available as regular Python variables, making it easily integrated with configuration mechanisms provided by framworks like Django or others.

This package uses pkgsettings, so it can be used in configuration chains.

On demand setting overrides (dynamic settings), with subtrees of alternative configurations, are also possible.

Usage

$ export MY_APP_TEST_VAR=42
>>> from settings_vial import Settings
>>> settings = Settings(env_prefix="MY_APP_")
>>> settings.load_env()
>>> settings.TEST_VAR
42

Features

  • Loads prefixed environment variables (json encoded)
  • Dynamic settings support (loads keys from callable instead)

Installation

$ pip install settings_vial

Running tests

$ make test

Contributing

If you'd like to contribute, please follow this workflow:

  1. Fork this repository
  2. Clone your fork
  3. Create and test your changes
  4. Create a pull-request
  5. Wait for review and approval from the repository collaborators

Contributions are always welcome.

Support

If you need help or have bug reports, please file an issue in our Issue Tracker.

Versioning

This project uses SemVer 2 for versioning. For the versions available, see the tags on this repository.

settings-vial's People

Contributors

kammala avatar ricardosantosalves avatar streeck avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.