extended_data.cli

Top-level command line interface for Extended Data.

Module Contents

Functions

_write_stdout

Write one CLI output line.

_write_stderr

Write one CLI error line.

_decode_artifact

Decode an inline payload or file path into a DataFile artifact.

cmd_decode

Decode structured data and write it through the shared export boundary.

cmd_inspect

Decode structured data and write its DataFile metadata.

_json_format_opts

Return common JSON formatting options for CLI export commands.

_merge_workflow

Build a layered merge workflow from CLI arguments.

cmd_merge

Merge structured files through DataWorkflow and write or print the result.

_transform_workflow

Build a workflow that applies named Tier 2 transforms.

cmd_transform

Apply named Tier 2 transforms through DataWorkflow.

_build_parser

Build the top-level Extended Data argument parser.

main

Run the Extended Data CLI.

Data

API

extended_data.cli.OUTPUT_ENCODINGS = ('json', 'yaml', 'toml', 'hcl', 'raw')
extended_data.cli._write_stdout(message: str) None

Write one CLI output line.

extended_data.cli._write_stderr(message: str) None

Write one CLI error line.

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.