collective.transmute.commands#
The collective.transmute.commands module provides the following interfaces.
collective.transmute.commands.info#
collective.transmute.commands.report#
- collective.transmute.commands.report._create_state(app_layout: ApplicationLayout, files: Iterator) ReportState[source]#
Initialize a ReportState object.
- async collective.transmute.commands.report._write_type_report(dst: Path, type_: str, state: ReportState) Path[source]#
Write a CSV report for a specific content type.
- collective.transmute.commands.report.report(ctx: ~typer.models.Context, src: ~typing.Annotated[~pathlib.Path, <typer.models.ArgumentInfo object at 0x7f8c1d8692b0>], dst: ~typing.Annotated[~pathlib.Path | None, <typer.models.ArgumentInfo object at 0x7f8c1d869370>] = None, report_types_: ~typing.Annotated[str, <typer.models.OptionInfo object at 0x7f8c1d8693d0>] = '')[source]#
Generates a JSON file with a report of export data in src directory.
collective.transmute.commands.sanity#
collective.transmute.commands.settings#
- collective.transmute.commands.settings.dump_settings(settings: TransmuteSettings) str[source]#
Dump settings as TOML string.
collective.transmute.commands.transmute#
- collective.transmute.commands.transmute._create_state(app_layout: ApplicationLayout, total: int, metadata: MetadataInfo | None = None, write_report: bool = True) PipelineState[source]#
Initialize a PipelineState object.
- collective.transmute.commands.transmute.run(ctx: ~typer.models.Context, src: ~typing.Annotated[~pathlib.Path, <typer.models.ArgumentInfo object at 0x7f8c1d869b20>], dst: ~typing.Annotated[~pathlib.Path, <typer.models.ArgumentInfo object at 0x7f8c1d869a00>], write_report: ~typing.Annotated[bool, <typer.models.OptionInfo object at 0x7f8c1d869ca0>] = False, clean_up: ~typing.Annotated[bool, <typer.models.OptionInfo object at 0x7f8c1d869d00>] = False, ui: ~typing.Annotated[bool, <typer.models.OptionInfo object at 0x7f8c1d869d90>] = True)[source]#
Transmutes data from
srcfolder (incollective.exportimportformat) toplone.exportimportformat in thedstfolder.