All Projects → Elastoo-Team → sitri

Elastoo-Team / sitri

Licence: MIT license
Sitri - powerful settings & configs for python

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to sitri

climatecontrol
Python library for loading settings and config data from files and environment variables
Stars: ✭ 20 (+0%)
Mutual labels:  config, configuration, environment-variables, configuration-management, app-config, pydantic
Dynaconf
Configuration Management for Python ⚙
Stars: ✭ 2,082 (+10310%)
Mutual labels:  config, vault, configuration, environment-variables, configuration-management, app-config
Node Convict
Featureful configuration management library for Node.js
Stars: ✭ 1,855 (+9175%)
Mutual labels:  config, configuration, environment-variables, configuration-management
parse it
A python library for parsing multiple types of config files, envvars & command line arguments that takes the headache out of setting app configurations.
Stars: ✭ 86 (+330%)
Mutual labels:  config, configuration, environment-variables, configuration-management
superconfig
Access environment variables. Also includes presence validation, type coercion and default values.
Stars: ✭ 33 (+65%)
Mutual labels:  config, configuration, environment-variables, configuration-management
goodconf
Transparently load variables from environment or JSON/YAML file.
Stars: ✭ 80 (+300%)
Mutual labels:  config, configuration, environment-variables, pydantic
Konfig
Composable, observable and performant config handling for Go for the distributed processing era
Stars: ✭ 597 (+2885%)
Mutual labels:  config, vault, configuration
Ini Parser
Read/Write an INI file the easy way!
Stars: ✭ 643 (+3115%)
Mutual labels:  config, configuration, configuration-management
Aconfig
Simple, useful and opinionated config loader.
Stars: ✭ 187 (+835%)
Mutual labels:  config, configuration, environment-variables
Simple Settings
A simple way to manage your project settings.
Stars: ✭ 165 (+725%)
Mutual labels:  config, configuration, configuration-management
Env
Simple lib to parse environment variables to structs
Stars: ✭ 2,164 (+10720%)
Mutual labels:  config, configuration, environment-variables
Strictyaml
Type-safe YAML parser and validator.
Stars: ✭ 836 (+4080%)
Mutual labels:  config, configuration, configuration-management
Config
🛠 A configuration library for Go that parses environment variables, JSON files, and reloads automatically on SIGHUP
Stars: ✭ 203 (+915%)
Mutual labels:  config, configuration, environment-variables
Koanf
Light weight, extensible configuration management library for Go. Built in support for JSON, TOML, YAML, env, command line, file, S3 etc. Alternative to viper.
Stars: ✭ 450 (+2150%)
Mutual labels:  config, configuration, configuration-management
Config
Easiest way to add multi-environment yaml settings to Rails, Sinatra, Pandrino and other Ruby projects.
Stars: ✭ 1,821 (+9005%)
Mutual labels:  config, configuration, configuration-management
Centraldogma
Highly-available version-controlled service configuration repository based on Git, ZooKeeper and HTTP/2
Stars: ✭ 378 (+1790%)
Mutual labels:  config, configuration, configuration-management
Config Rs
⚙️ Layered configuration system for Rust applications (with strong support for 12-factor applications).
Stars: ✭ 915 (+4475%)
Mutual labels:  config, configuration, configuration-management
Node No Config
Config and resource loader
Stars: ✭ 45 (+125%)
Mutual labels:  config, configuration, configuration-management
Environ Config
Python Application Configuration With Environment Variables
Stars: ✭ 210 (+950%)
Mutual labels:  config, configuration, environment-variables
Config
A lightweight yet powerful config package for Go projects
Stars: ✭ 126 (+530%)
Mutual labels:  config, configuration, environment-variables

Sitri - powerful settings & configs for python

PyPI codecov Maintainability Code Climate technical debt Build Status Read the Docs

Sitri - library for managing authorization and configuration data from a single object with possibly different or identical providers

Installation

poetry add sitri -E "all"

or

pip3 install sitri[all]

Extras packs and providers:

1. all - all providers and settings module.
2. settings - pydantic, providers with settings-support.
3. redis - for redis provider.
4. hvac - for HashiCorp Vault provider.
5. vedis - for vedis provider.
6. pyyaml - for YAML provider.
7. orjson - speed-up your json provider (optional).

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/

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].