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.6.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

sitri-0.10.6-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sitri-0.10.6.tar.gz
  • Upload date:
  • Size: 9.3 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.6.tar.gz
Algorithm Hash digest
SHA256 a68301d3bf83ffd8de7333c85cd3112d696ec8082c5fca08a0d74e5a802f1cb7
MD5 4e5a14402d637099d50e8508e2937fca
BLAKE2b-256 837cafefd4a3a6dae1299f5610896f14a7e6f8e704756b0e321d311312b86484

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sitri-0.10.6-py3-none-any.whl
  • Upload date:
  • Size: 15.4 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 934650a2a2d221953d389df2b09b7b38cccb231f4ba9f8b09dd6a500d11ff3a4
MD5 cb3777d91d00e577f15befe0f7324e0c
BLAKE2b-256 0d1ad85a8452ce23bf60bfa7b997db23778d303ccd007d00a4120afd50461ae1

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