structcast
by f6ra07nk14
StructCast converts YAML/JSON configuration into live Python objects with three core capabilities - (1) pattern-based instantiation that builds objects from dict/list patterns without writing factory code, (2) dot-notation data access and reshaping for navigating nested structures, and (3) Jinja2 template rendering embedded in data structures for dynamic config generation. Use this when working with config-driven pipelines, object instantiation patterns (obj, addr, call, bind, attr), specifier-based data extraction (FlexSpec, RawSpec, convert_spec, construct), or template expansion (jinja, _jinja_yaml_, _jinja_json_). All operations run through a mandatory security layer with module allowlists/blocklists.