Reference#

Extensible Python package to resolve references and apply patches in JSON and TOML configurations.

It uses json and tomllib to decode, handles local and remote reference URLs using urllib, and resolves document fragments specified through pointers, optionally applying patches.

  • References follow the JSON Reference draft.

  • Reference patches are based on RFC 6902, extended with shorthand notations, an assign and a merge operation.

  • JSON pointers follow RFC 6901.

  • TOML pointers are TOML keys extended with array indices.