3.1. wc_cli package

3.1.2. Submodules

3.1.3. wc_cli.__main__ module

Whole-cell modeling command line interface

Author

Jonathan Karr <jonrkarr@gmail.com>

Date

2018-05-15

Copyright

2018, Karr Lab

License

MIT

class wc_cli.__main__.App(argv=None, config=None)[source]

Bases: cement.core.foundation.App

Command line application

class Meta[source]

Bases: object

base_controller = 'base'[source]
handlers = [][source]
label = 'wc-cli'[source]
classmethod add_package_handlers(argv, stacked_on, package_name, label, description)[source]

Add a package to an application by adding its handlers

Parameters
  • argv (list of str) – command line arguments

  • stacked_on (str) – where the handlers for the package should be stacked

  • package_name (str) – name of the package whose handlers should be added the application

  • label (str) – root label for the handlers within the application

  • description (str) – root descipription for the handlers within the application

Raises

SystemExit – if a handler is not a base or stacked on a base

class wc_cli.__main__.BaseController(*args, **kw)[source]

Bases: cement.ext.ext_argparse.ArgparseController

Base controller for command line application

class Meta[source]

Bases: object

arguments = [(['-v', '--version'], {'action': 'version', 'version': '0.0.1'})][source]
description = 'Whole-cell models and whole-cell modeling tools'[source]
help = 'Whole-cell models and whole-cell modeling tools'[source]
label = 'base'[source]
class wc_cli.__main__.ModelController(*args, **kw)[source]

Bases: cement.ext.ext_argparse.ArgparseController

Model controller

class Meta[source]

Bases: object

description = 'Whole-cell models'[source]
help = 'Whole-cell models'[source]
label = 'model'[source]
stacked_on = 'base'[source]
stacked_type = 'nested'[source]
class wc_cli.__main__.ToolController(*args, **kw)[source]

Bases: cement.ext.ext_argparse.ArgparseController

Tool controller

class Meta[source]

Bases: object

description = 'Whole-cell modeling tools'[source]
help = 'Whole-cell modeling tools'[source]
label = 'tool'[source]
stacked_on = 'base'[source]
stacked_type = 'nested'[source]
wc_cli.__main__.main()[source]

3.1.4. wc_cli._version module

3.1.5. Module contents