Skip to content

Feature: Add interpolate keyword to as_dict() and as_attrdict() #33

@chinghwayu

Description

@chinghwayu
from config import config
DICT = {"var": "1", "var1": "{var}"}
cfg = config(DICT, interpolate=True)
print(cfg.as_dict())
print(cfg.as_attrdict())

Results is:

{'var': '1', 'var1': '{var}'}
{'var': '1', 'var1': '{var}'}

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