Skip to content

Allow to provide the initial Iter substitution map #149

@noirbizarre

Description

@noirbizarre

Hi 👋🏼

Would it be possible to allow providing the initial Iter.substitution_data ?

As of today, fields are private and it's not possible to provide some initial substitution.

Use case: Sometimes you need to parse a dotenv file, but you need some substitution to be considered without modifying the environment. I had this case multiple times, sometimes it was to set the environment variables before load the dotenv file, but I have cases where I can't.

If this feature is acceptable to you, I might give a try to implementing it.

(Unless there is already this capability or another alternative I am not aware of)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions