materials_commons.cli.subcommands.globus module
- class materials_commons.cli.subcommands.globus.GlobusDownloadTaskSubcommand[source]
Bases:
ListObjects
- Parameters:
cmdname – List[str] Names to use for ‘mc X Y …’, for instance: [“casm”, “prim”] for “mc casm prim”
typename – str With capitalization, for instance: “Process”
typename_plural – str With capitalization, for instance: “Processes”
desc – str Used for help command description
requires_project – bool If True and not in current project, raise MCCLIException
non_proj_member – bool Enable get_all_from_remote. If non_proj_member and proj_member, enable –all option to query all projects.
proj_member – bool Enable get_all_from_project. Restrict queries to current project by default
expt_member – bool Enable get_all_from_experiment. Include –expt option to restrict queries to current experiment
dataset_member – bool Enable get_all_from_dataset. Includes –dataset option to restrict queries to specified dataset
list_columns – List[str] List of column names
headers – List[str] List of column header names, use list_columns if None
deletable – bool If true, enable –delete
dry_runable – bool If true, enable –dry-run
has_owner – bool If true, enable –owner
creatable – bool If true, object can be created via derived class ‘create’ function
custom_actions –
List of str Custom action names which are called via:
<name>(self, args, outout=sys.stdout)
custom_selection_actions –
List of str Custom action names which are called via:
<name>(self, objects, args, outout=sys.stdout)
request_confirmation_actions – Dict of name:msg Dictionary of names of custom_selection_actions which require prompting the user for confirmation before executing. The value is the message shown at the prompt. Delete is always confirmed and is not included here.
- create(args, out=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>)[source]
Create new globus download
- Using:
mc globus download <download_name> –create mc globus download –name <download_name> –create
- delete(objects, args, dry_run, out=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>)[source]
Delete globus downloads
- Using:
mc globus download –id <download_id> –delete mc globus download <download_name_search> –delete
- desc = 'List, create, and delete Globus downloads. By default lists current project downloads. With `--all` lists all Globus downloads.'
- goto(objects, args, out=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>)[source]
Open Globus File Manager in a web browser
- class materials_commons.cli.subcommands.globus.GlobusUploadTaskSubcommand[source]
Bases:
ListObjects
- Parameters:
cmdname – List[str] Names to use for ‘mc X Y …’, for instance: [“casm”, “prim”] for “mc casm prim”
typename – str With capitalization, for instance: “Process”
typename_plural – str With capitalization, for instance: “Processes”
desc – str Used for help command description
requires_project – bool If True and not in current project, raise MCCLIException
non_proj_member – bool Enable get_all_from_remote. If non_proj_member and proj_member, enable –all option to query all projects.
proj_member – bool Enable get_all_from_project. Restrict queries to current project by default
expt_member – bool Enable get_all_from_experiment. Include –expt option to restrict queries to current experiment
dataset_member – bool Enable get_all_from_dataset. Includes –dataset option to restrict queries to specified dataset
list_columns – List[str] List of column names
headers – List[str] List of column header names, use list_columns if None
deletable – bool If true, enable –delete
dry_runable – bool If true, enable –dry-run
has_owner – bool If true, enable –owner
creatable – bool If true, object can be created via derived class ‘create’ function
custom_actions –
List of str Custom action names which are called via:
<name>(self, args, outout=sys.stdout)
custom_selection_actions –
List of str Custom action names which are called via:
<name>(self, objects, args, outout=sys.stdout)
request_confirmation_actions – Dict of name:msg Dictionary of names of custom_selection_actions which require prompting the user for confirmation before executing. The value is the message shown at the prompt. Delete is always confirmed and is not included here.
- create(args, out=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>)[source]
Create new globus upload
- Using:
mc globus upload <upload_name> –create mc globus upload –name <upload_name> –create
- delete(objects, args, dry_run, out=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>)[source]
Delete globus uploads
- Using:
mc globus upload –id <upload_id> –delete mc globus upload <upload_name_search> –delete
- desc = 'List, create, finish, and delete Globus uploads. By default lists current project uploads. With `--all` lists all Globus uploads.'
- finish(objects, args, out=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>)[source]
Finish Globus upload, –finish
- goto(objects, args, out=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>)[source]
Open Globus File Manager in a web browser
- materials_commons.cli.subcommands.globus.globus_subcommand(argv, working_dir)[source]
Manage Globus uploads, downloads, and configuration.
mc globus download [… download options …] mc globus upload [… upload options …] mc globus –set-globus-endpoint-id <id> mc globus –clear-globus-endpoint-id <id> mc globus
- materials_commons.cli.subcommands.globus.make_globus_download_parser()[source]
Make argparse.ArgumentParser for mc globus download
- materials_commons.cli.subcommands.globus.make_globus_parser()[source]
Make argparse.ArgumentParser for mc globus
- materials_commons.cli.subcommands.globus.make_globus_upload_parser()[source]
Make argparse.ArgumentParser for mc globus download