materials_commons.cli.subcommands.init module

materials_commons.cli.subcommands.init.init_project(name, description='', prefix=None, remote_config=None)[source]

Initialize directory prefix/name as a new project

name: str, Project name. If prefix/name does not exist it will be created. description: str, Project description. prefix: str, The project directory will be created at prefix/name. remote_config: RemoteConfig, The remote where the project will be created.

proj: mcapi.Project

MCCLIException: If any of the following occur:
  • prefix does not exist

  • prefix/name is a file

  • prefix/name/.mc already exists

materials_commons.cli.subcommands.init.init_subcommand(argv, working_dir)[source]

Initialize a new project

mc init [–remote <remote>] [–desc <description>]

materials_commons.cli.subcommands.init.make_parser()[source]

Make argparse.ArgumentParser for mc init