Skip to content

[FEA] .env file loader for native running #109

@lmeyerov

Description

@lmeyerov

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

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