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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: sitri-0.10.5.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.5.tar.gz
Algorithm Hash digest
SHA256 6fdef0e7b4acccfa20a78c02dab3b1f89fa83799183cc60aebc37e5b89750474
MD5 58a2e7df760c8e0cfc34361e3298a536
BLAKE2b-256 a963c7b519b37da55e606cd8a36e51d7bdb902349289106ee7303dcc39fe9cb7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sitri-0.10.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 56f128534ad686c043a1001d7989b634ca78abdd5f5079ceb84d9b8d1a8996a8
MD5 6007291559b5ed11b11dc5d1a9f25a86
BLAKE2b-256 9280cf4555ab9cf017e3d8e672def3f0bbb8028b2be4a0dbcb192689ef70f0ff

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