Skip to main content
https://secure.travis-ci.org/kpn-digital/etcd_config.svg?branch=master https://img.shields.io/codecov/c/github/kpn-digital/etcd_config/master.svg https://img.shields.io/pypi/v/etcd_config.svg https://readthedocs.org/projects/etcd_config/badge/?version=latest

Features

This library allows Python applications load configuration from ETCD:

  • Environment dependent values

  • Values in different config sets, identified by name

Backends

  • ETCD 2.2.1

Installation

$ pip install etcd-config

Usage

import etcd_config.loader
config = etcd_config.loader.get_overwrites(
    env='test',
    dev_params='main.params',
    etcd_details=dict(
        protocol=getattr(params, 'ETCD_PROTOCOL', 'http'),
        host=getattr(params, 'ETCD_HOST', 'localhost'),
        port=getattr(params, 'ETCD_PORT', 2379),
        username=getattr(params, 'ETCD_USERNAME', None),
        password=getattr(params, 'ETCD_PASSWORD', None),
        prefix='/config/your_project'
    )
)

Metadata

Release files for etcd-config 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for etcd-config 1.0.4
File Size Uploaded Provenance
etcd-config-1.0.4.tar.gz 12.7 kB Without provenance Details

Release files / etcd-config-1.0.4.tar.gz

Download URL etcd-config-1.0.4.tar.gz
Size 12.7 kB
Tags Source
SHA-256 checksum
How to use checksums
0f26d94dcd23827328feab4566d04ab709c857f11c0a32afb71798bbad0d8d19
BLAKE2b-256 checksum
How to use checksums
0a44a79d2c6280c68009874083e8f69c41febd3dd29e4ecf3c4eb5986fae3530
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for etcd-config 1.0.4

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.

Release history Release notifications | RSS feed

This release

1.0.4 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page