API Reference

cc_pyscript_sample_repo.cc_pyscript_sample_repo

Add verbose script description.

REQUIREMENTS:

  • Python>=3.7

  • Only the Python Standard Library is required.

NOTES:

  • This script can be run directly using python cc_pyscript_sample_repo.py

  • Alternatively, if the tech_grant package is installed locally, it can be accessed directly via the CLI entry-point cc-pyscript-sample-repo (see the cc_pyscript_sample_repo project’s README for more detail at https://github.com/sedelmeyer/cc-pyscript-sample-repo)

class cc_pyscript_sample_repo.cc_pyscript_sample_repo.ArgparseUserOptions(description, args_dict_list=None, epilog=None)

Generate argparse user options for script CLI

add_args(parser, args_dict_list)

Executes parser.add_argument for all args_dicts in an args_dict_list

add_args_dict(parser, args_dict)

Executes parser.add_argument for all args in and args_dict

generate_parser(description, args_dict_list=None, epilog=None)

Generates parser with all input arguments

parse_args(args)

Parses arguments based on CLI input

cc_pyscript_sample_repo.cc_pyscript_sample_repo.main()

Operations executed when calling this script from the command line