Conflow
Project in early beta. Work in progress!
Conflow organizes layered configurations for Python applications. Conflow allows you to use default settings and extend or override it via merging settings from different sources: - Python dictionaries - Files: yaml, json, ini - Environment variables
Quickstart
pip install conflow
Usage
import os
from conflow import Config, from_env
DEFAULT_SETTINGS = {
'db': {
'master': {
'host': 'localhost',
'port': 5432,
},
'slave': {
'host': 'localhost',
'port': 5433,
}
}
}
config = Config().merge(DEFAULT_SETTINGS)
assert config.db.master.host() == 'localhost'
os.environ['APP_DB__MASTER__HOST'] = 'remote_host'
env_settings = from_env('APP')
config = Config().merge(DEFAULT_SETTINGS).merge(env_settings)
assert config.db.master.host() == 'remote_host'
Motivation
If you are tired of making local, test, stage and production profiles in each project, then Conflow is for you. Conflow allows you to fetch and merge configs from different places - yaml files, environment variables etc.
Metadata
Release files for conflow 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| conflow-0.0.2.tar.gz | 7.7 kB | Without provenance | Details for conflow-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| conflow-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for conflow-0.0.2-py3-none-any.whl |
Total release size: 16.6 kB
Release files / conflow-0.0.2.tar.gz
| Download URL | conflow-0.0.2.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6073f3d13ebabe0848a61f0889d6fe29ccc663c36d759776787bfa314f125a4d
|
|
BLAKE2b-256 checksum How to use checksums |
37c853f5889ae86ac42d3b05ffdbb77fac72f9dd9e5c001057f0f07a645f9a7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.12.15 CPython/3.7.4 Darwin/19.2.0
|
Release files / conflow-0.0.2-py3-none-any.whl
| Download URL | conflow-0.0.2-py3-none-any.whl |
|---|---|
| Size | 8.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8705f804523ad0fc6ec87f23f3f607024b7488d08258e7a9b719be580b635fc0
|
|
BLAKE2b-256 checksum How to use checksums |
b435e7b6518ce5c6dfd0377e2588160a218ef55558fff7e1f9fa134bc035ba9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.12.15 CPython/3.7.4 Darwin/19.2.0
|
Security for conflow 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.