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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: sitri-0.10.9.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.9.tar.gz
Algorithm Hash digest
SHA256 98395a703566fa499cf0da3ca7cfe4cc6ae231323b424eafce474b41720585b8
MD5 eaf01c2efc4001ba078931821b6afb71
BLAKE2b-256 645e15f5a3af8ddcbdea6f7f40148212dbe46200e8e5feb9234f5899381d8c49

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sitri-0.10.9-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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 65ad617dcd86597451d492c9dd811fab3b75991ffc28b4d30defb17c937ffe7f
MD5 226631846d69ff55f9b3aaa5b6ba07ee
BLAKE2b-256 21ef5c4c4dfeef75cfa515ebc771049c9d23c31b38a5dbdaaca03ddac5307758

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