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

Interpolate bash-style variable expansion in .env files #99

Open
publicmatt opened this issue Apr 10, 2024 · 1 comment
Open

Interpolate bash-style variable expansion in .env files #99

publicmatt opened this issue Apr 10, 2024 · 1 comment

Comments

@publicmatt
Copy link
Contributor

It would be nice if the behavior when loading dotenv files matched what's possible with the python-dotenv package:

The syntax of .env files supported by python-dotenv is similar to that of Bash:

# Development settings
DOMAIN=example.org
ADMIN_EMAIL=admin@${DOMAIN}
ROOT_URL=${DOMAIN}/app
@tr11
Copy link
Owner

tr11 commented Apr 11, 2024

Maybe this could be added if we specify a different interpolation type. Right now we use the str.format specifications: https://github.com/tr11/python-configuration?tab=readme-ov-file#string-interpolation

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

2 participants