Skip to main content

Library for one endpoint config and credentials 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.2.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: sitri-0.10.2.tar.gz
  • Upload date:
  • Size: 9.2 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.2.tar.gz
Algorithm Hash digest
SHA256 0a631783384c1378fa2b26249e2359e195dd84e897d6fdad5093a675ccca47b0
MD5 a6ae10227b940eef48232f641d20284f
BLAKE2b-256 f7016b13e0325edc9ce2e6aad3d8c9a5c8ddcc9c5de4f85e59d5bf3f90aadbf9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sitri-0.10.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 08c2ec341ac8f2143a088d9f5a30d7be468b76fa3bf29b8a42f05a5425e07c1c
MD5 ea41fb1870b39914ef0e4f4a1463a8a9
BLAKE2b-256 fefa1c680b733ad2d89dd25e3b538d47d0b4792ea3105605cd92288244466035

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page