Skip to main content

Python settings for cloud environments

Project description

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.

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

settings_vial-0.5.0.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

settings_vial-0.5.0-py2.py3-none-any.whl (5.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file settings_vial-0.5.0.tar.gz.

File metadata

  • Download URL: settings_vial-0.5.0.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for settings_vial-0.5.0.tar.gz
Algorithm Hash digest
SHA256 80b66c2d43ca69c9317a80ad50b5fb22cac67a5a6e8f25356f117a1d77ecca2c
MD5 e78ebdf8e637e7dd6dd684ad12677e9c
BLAKE2b-256 d54564c0ac3e1a6ef8704beb11dbb2c5f613e8af38c9b34f55b1a0be6b81c139

See more details on using hashes here.

File details

Details for the file settings_vial-0.5.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for settings_vial-0.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 bf10559b8b498d17b60e158c863bad70b8ee3e6587e6a07d4c5c342549f8ec0f
MD5 7219af89d1fcc28bfdf8aa5305c2218f
BLAKE2b-256 82c5639bcc76d1f06ede4318aa617949d10664f370799adb224f9938c02bdc76

See more details on using hashes here.

Supported by

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