Skip to main content


Project description



Configurations using python annotations


Source Code:

Key Features

  • Generate a DictDaora with values parsed from environment variables.


  • Python 3.8+
  • dictdaora
  • jsondaora


$ pip install confdaora

Basic example

from typing import TypedDict

from confdaora import confdaora_env

class AppConfig(TypedDict):
    port: int
    host: str

config = confdaora_env(AppConfig)


Suposing your file calls

PORT=8080 HOST=localhost python

{'port': 8080, 'host': 'localhost'}

Complex example

from dataclasses import dataclass
from typing import List

from confdaora import confdaora_env

class DBConfig:
    __prefix__ = 'db'
    host: str
    port: int = 3306

class KeyConfig:
    __prefix__ = 'keys'
    name: str
    values: List[int]

class AppConfig:
    db: DBConfig
    keys: List[KeyConfig]
    host: str
    port: int = 8080

config = confdaora_env(AppConfig)


Suposing your file calls

HOST=localhost \
DB_HOST=localhost \
KEYS_0_NAME=test \
KEYS_0_VALUES=10,20 \
KEYS_1_NAME=test2 \
KEYS_1_VALUES=30,40 \

AppConfig(db=DBConfig(host='localhost', port=3306), keys=[KeyConfig0(name='test', values=[10, 20]), KeyConfig1(name='test2', values=[30, 40])], host='localhost', port=8080)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for confdaora, version 0.2.1
Filename, size File type Python version Upload date Hashes
Filename, size confdaora-0.2.1-py3-none-any.whl (5.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size confdaora-0.2.1.tar.gz (18.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page