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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: sitri-0.10.17.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.17.tar.gz
Algorithm Hash digest
SHA256 dd76073032b5b10f7721e0c922c22f45e60ecffc0de7efe67fb3d4579f568883
MD5 38a948e0109ad2bfe62c7c5507719dd5
BLAKE2b-256 35e46f90e9884cbaa55b724187e03849e626172675e9130b879f831cd039d777

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sitri-0.10.17-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.17-py3-none-any.whl
Algorithm Hash digest
SHA256 19097d9b14b1c4eb9421de819b4a1db40178e97942cf58ae305c64f98bc0c26f
MD5 986e6e15a323477c45c25510871cd735
BLAKE2b-256 95ac6d3a90a307e489965160601a0bbf199d4ed1bf64e4a8d3a78cba29eb7cb9

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