Skip to content

Ekumen-OS/ekumenlabs_config

Repository files navigation

ekumenlabs_config

tests codecov black poetry-managed PyPI - Python Version PyPI - Wheel PyPI

This is a very simple project to use/store configurations persisted in a database (accessed via tortoise-orm). It can be used in conjunction with tortoise-data-migration to set the default configuration values.

Examples

from ekumenlabs_config import get_bool_config


async def do_something():
    if await get_bool_config("simple.example"):
        print("Yes, it is simple!")

Installation

Pip

pip install ekumenlabs_config

Pipenv

pipenv install ekumenlabs_config

Poetry

poetry add ekumenlabs_config

PDM

pdm add ekumenlabs_config

Notes for maintainers

Release

To create a new release, create a github release and a github action will take care of building and publishing. After that, there will be a PR automatically created to bump the version in main.