Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve env variable interpolation #675

Open
nbrinckm opened this issue May 26, 2023 · 0 comments
Open

Improve env variable interpolation #675

nbrinckm opened this issue May 26, 2023 · 0 comments

Comments

@nbrinckm
Copy link
Contributor

Description

While searching for a nice way to set configuration settings with env variables I searched a little bit in the documentation and struggled somehow with the current limitations.

While it is possible to read some (so far for the default configuration unspecified) values directly from the env variables, it doesn't allow us to set variables like the server:url from the env variables due to some default value that is set here https://github.com/geopython/pywps/blob/main/pywps/configuration.py#L76

However, the documentation also pointed at some point to the pycsw project that allows some basic env variable interpolation https://docs.pycsw.org/en/latest/configuration.html#using-environment-variables-in-configuration-files

My idea now is to copy this functionality & use its EnvInterpolation class for the config parser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant