anod.sandbox.main¶
Main entry point for e3-sandbox command.
Module Contents¶
Functions¶
|
Manipulate an Anod sandbox. |
Attributes¶
- anod.sandbox.main.logger¶
- anod.sandbox.main.main(get_argument_parser: Literal[True]) argparse.ArgumentParser¶
- anod.sandbox.main.main(get_argument_parser: Literal[False] = False) None
Manipulate an Anod sandbox.
This function creates the main code for the entry-point e3-sandbox. To create new actions it is possible to create new sandbox plugins. e.g. to add a new plugin
foofrom a packagee3-contrib, derives the class py:class:SandBoxAction and register the extension by adding in py:file:e3-contrib/setup.py:entry_points={ 'e3.anod.sandbox.sandbox_action': [ 'foo = e3_contrib.sandbox_actions.SandBoxFoo'] }
- Parameters:
get_argument_parser – if True, return the argument parser instead of running the action
- Returns:
the argument parser if get_argument_parser is True, None otherwise