mastodown.cli module

mastodown.cli.add_query_arguments(parser, output_flags)[source]

Add query options to a command parser.

Return type:

None

mastodown.cli.authenticate(args)[source]

Authenticate with MAST from the environment or an interactive prompt.

Return type:

None

mastodown.cli.configure_logging()[source]

Configure the Mastodown CLI logger without changing root logging.

Return type:

None

mastodown.cli.confirm_download(dry_run=False)[source]

Return whether the user confirms a download.

Return type:

bool

mastodown.cli.create_parser()[source]

Create the mastodown command-line argument parser.

Return type:

ArgumentParser

mastodown.cli.main()[source]

Run the mastodown command-line interface.

Return type:

None

mastodown.cli.run_query(args)[source]

Query products, print the result, and optionally save it as CSV.

Return type:

DataFrame