extended_data.cli¶
Top-level command line interface for Extended Data.
Module Contents¶
Functions¶
Write one CLI output line. |
|
Write one CLI error line. |
|
Decode an inline payload or file path into a DataFile artifact. |
|
Decode structured data and write it through the shared export boundary. |
|
Decode structured data and write its DataFile metadata. |
|
Return common JSON formatting options for CLI export commands. |
|
Build a layered merge workflow from CLI arguments. |
|
Merge structured files through DataWorkflow and write or print the result. |
|
Build a workflow that applies named Tier 2 transforms. |
|
Apply named Tier 2 transforms through DataWorkflow. |
|
Build the top-level Extended Data argument parser. |
|
Run the Extended Data CLI. |
Data¶
API¶
- extended_data.cli.OUTPUT_ENCODINGS = ('json', 'yaml', 'toml', 'hcl', 'raw')¶
- extended_data.cli._decode_artifact(args: argparse.Namespace) extended_data.io.DataFile¶
Decode an inline payload or file path into a DataFile artifact.
- extended_data.cli.cmd_decode(args: argparse.Namespace) int¶
Decode structured data and write it through the shared export boundary.
- extended_data.cli.cmd_inspect(args: argparse.Namespace) int¶
Decode structured data and write its DataFile metadata.
- extended_data.cli._json_format_opts(args: argparse.Namespace) dict[str, Any]¶
Return common JSON formatting options for CLI export commands.
- extended_data.cli._merge_workflow(args: argparse.Namespace) extended_data.workflows.DataWorkflow¶
Build a layered merge workflow from CLI arguments.
- extended_data.cli.cmd_merge(args: argparse.Namespace) int¶
Merge structured files through DataWorkflow and write or print the result.
- extended_data.cli._transform_workflow(args: argparse.Namespace) extended_data.workflows.DataWorkflow¶
Build a workflow that applies named Tier 2 transforms.
- extended_data.cli.cmd_transform(args: argparse.Namespace) int¶
Apply named Tier 2 transforms through DataWorkflow.
- extended_data.cli._build_parser() argparse.ArgumentParser¶
Build the top-level Extended Data argument parser.
- extended_data.cli.main(argv: collections.abc.Sequence[str] | None = None) int¶
Run the Extended Data CLI.