Skip to main content

Library for one endpoint config managment

Project description

Sitri Configuration Library

Build Status codecov PyPI Read the Docs CodeFactor

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

Uploaded Source

Built Distribution

sitri-0.10.19-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sitri-0.10.19.tar.gz
  • Upload date:
  • Size: 9.8 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.19.tar.gz
Algorithm Hash digest
SHA256 dfdfd36a7f4b7c8e016a6dd490a7b013360f646d60e0a8273e8a5c1f404fa485
MD5 b57d69ed53623bcbbff4b03f38589e2d
BLAKE2b-256 15fcd4fbb1ade40f0d3b13d134c968affef30446b84139dd3c22bde41bc68da1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sitri-0.10.19-py3-none-any.whl
  • Upload date:
  • Size: 16.8 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.19-py3-none-any.whl
Algorithm Hash digest
SHA256 169f9c415bc29be33718a51b89476fd9c9f018a4e4fc090361f6a24adc62afd7
MD5 20a2b0d0afbae4469015b891b72ae387
BLAKE2b-256 54d74af3ae17233f923cf7017ccf54355881a3fd8622c11a4dcece3b9cc0154f

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