Skip to content

Allow setting any config item by environment variable #2740

@fubuloubu

Description

@fubuloubu

Describe

For cloud use it's sometimes very handy to be able to set Ape config via environment variables, instead of requiring the file. Some plugins manually ship a version of this by adding extra config settings, but this should probably just be the default for how it works

Specification

All ape core config settings would be under the namespace APE_.
All ape plugin config settings would be under the namespace APE_{plugin_name.upper()}_.

May require some slight breaking change behavior for config items that do not support this type of functionality

https://github.com/ApeWorX/ape/blob/main/src/ape/api/config.py#L72

Dependencies

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions