makeprov.config
Functions
|
Add dunder methods based on the fields defined in the class. |
|
Return a tuple describing the fields of this dataclass. |
|
Returns True if obj is a dataclass or an instance of a dataclass. |
|
Entry point for running registered CLI subcommands. |
|
Return a new object replacing specified fields with new values. |
Classes
|
Base configuration container with TOML application helpers. |
|
Runtime configuration for provenance generation. |
- class makeprov.config.Config
Bases:
objectBase configuration container with TOML application helpers.
- class makeprov.config.ProvenanceConfig(base_iri=None, prov_dir='prov', prov_path=None, force=False, merge=True, stream=False, dry_run=False, out_fmt='json', frame='provenance', context=False, context_url='https://w3id.org/makeprov/context', strict=True, run_id=None, record_user=False, record_environment=False, forge_profiles=None, emit_plan_graph=False)
Bases:
ConfigRuntime configuration for provenance generation.
- frame: Frame = 'provenance'
- out_fmt: ProvFormat = 'json'
- makeprov.config.main(subcommands=None, conf_obj=None, argparse_kwargs={}, *, session=None, **kwargs)
Entry point for running registered CLI subcommands.
Requires the
defoptpackage (install withpip install "makeprov[cli]"), imported lazily here so thatimport makeprovdoes not require it.