Skip to main content

Python package to manage configuration from environment variables.

This package is designed to be used to help in configuration management with python docker containers.

Defining configuration

econfig provides simple data types to define configuration with:

import econfig
econfig.register(
  name='MY_CONFIGURATION_NUMBER',
  type=econfig.types.int,
  destination='foo.bar')
econfig.register(
    name='MY_CONFIGURATION_NUMBER',
    type=econfig.types.json,
    destination='foo.json')
errors, settings = econfig.parse()
settings == {
  "foo": {
    "bar": 5
  },
  "json": {
    "some": "value"
  }
}

Types

  • int

  • float

  • bool

  • exists

  • json

  • when_exists: callable type that will provide value when env variable exists

Destination types

  • foo.bar: automatic key value dictionary creation

  • foo[]: append value to list

  • foo[0]: address item in list

  • foo[0].bar: address dictionary item in list

1.0.1 (2017-12-27)

  • Fix release [vangheem]

1.0.0 (2017-12-27)

Release files for econfig 1.0.1

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

Source distribution (sdist)

Source distribution for econfig 1.0.1
File Size Uploaded
econfig-1.0.1.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for econfig 1.0.1
File Interpreter ABI Platform
econfig-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.2 kB

Release files / econfig-1.0.1.tar.gz

Download URL econfig-1.0.1.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
829702fdc3510a22110941ad9d922d1986534682e79baa6a0f51771646739b9b
BLAKE2b-256 checksum
How to use checksums
d5fbc1c79f91fb38c10c15fc98b612b40c0cbfe5804a7d1cf09d08c74a3bc709
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / econfig-1.0.1-py3-none-any.whl

Download URL econfig-1.0.1-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cfc3cf0011fe8134af48031c1bb2c3600bc815f807963bfb9da4799ea5385f05
BLAKE2b-256 checksum
How to use checksums
92d0ac56fe9888bfcfecc2be624be82c608e7e4698cd6e889724ea5dad7a5d4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

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