Skip to main content

Library for one endpoint config managment

Project description

Sitri Configuration Library

Build Status codecov PyPI Read the Docs CodeFactor Join the chat at https://gitter.im/lemegetonx/sitri

Sitri - library for managing authorization and configuration data from a single object with possibly different or identical providers

Installation

poetry add sitri

or

pip3 install sitri

Basics with SystemProvider

from sitri.providers.contrib import SystemConfigProvider
from sitri import Sitri

conf = Sitri(
    config_provider=SystemConfigProvider(prefix="basics"),
)

System provider use system environment for get config data. For unique - sitri lookup to "namespace" by prefix.

Example:

In console:

export BASICS_NAME=Huey

In code:

name = conf.get_config("name")

print(name)  # output: Huey

Docs

Read base API references and other part documentation on https://sitri.readthedocs.io/

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sitri-0.10.16.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

sitri-0.10.16-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file sitri-0.10.16.tar.gz.

File metadata

  • Download URL: sitri-0.10.16.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.8.6 Linux/5.4.0-1031-azure

File hashes

Hashes for sitri-0.10.16.tar.gz
Algorithm Hash digest
SHA256 3da11e0a221b72750a9cecde1b767f95cc09571db1ef68eb55c37414c4a13d10
MD5 b1d32bd99b8a1779a67bd089f6b352c1
BLAKE2b-256 a4fea846ad97ba4997eb17356e8a78f835be31b4d37b2cd5536f28ccdd7a924a

See more details on using hashes here.

File details

Details for the file sitri-0.10.16-py3-none-any.whl.

File metadata

  • Download URL: sitri-0.10.16-py3-none-any.whl
  • Upload date:
  • Size: 15.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.8.6 Linux/5.4.0-1031-azure

File hashes

Hashes for sitri-0.10.16-py3-none-any.whl
Algorithm Hash digest
SHA256 000c6a50110047397a1a9187d308e61145251f92fae8e7935edb928b585bfe35
MD5 8af1d981da50d47ef62018127d43f499
BLAKE2b-256 22527003aeddb0073a9fe45d23fd337dce5452cdde0fa9044b9cd6232d635508

See more details on using hashes here.

Supported by

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