Skip to content

Support binding from/to environment variables #33

@mthuurne

Description

@mthuurne

For simple configurations, environment variables can be an easy and flexible mechanism. Therefore it would be useful to support binding from/to environment variables.

More complex configurations, in particular nested dataclasses, don't map to environment variables very well. In fact, that was one of the motivations for creating this library in the first place, as TOML can deal with complex configurations. But that shouldn't prevent us from supporting simple configurations.

I think the implementation shouldn't be hardcoded for environment variables and instead operate with any Mapping[str, str] data structure, with either a convenience method or a default that uses the environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions