graph-app-kit icon indicating copy to clipboard operation
graph-app-kit copied to clipboard

[FEA] .env file loader for native running

Open lmeyerov opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe.

When using the experimental native loading support (cd src/python && streamlit ...), the .env is not used. It'd be helpful if it was -- currently a non-obvious workaround like env $(cat .env | xargs) streamlit ... is required .

Describe the solution you'd like

If a .env is locally available, or passed in (ENV_FILE=... streamlit), it should be recognized

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context

The pydantic env package has a convenient abstraction that we use elsewhere for this

lmeyerov avatar Oct 19 '23 16:10 lmeyerov

cc @DataBoyTX

lmeyerov avatar Oct 19 '23 16:10 lmeyerov