utils.rcclient.libs.dynamic_templates.generator
Module Contents
Classes
Create a collection of name/value pairs. |
|
Attributes
- utils.rcclient.libs.dynamic_templates.generator.logger
- class utils.rcclient.libs.dynamic_templates.generator.ModuleLocType(*args, **kwds)
Bases:
enum.Enum
Create a collection of name/value pairs.
Example enumeration:
>>> class Color(Enum): ... RED = 1 ... BLUE = 2 ... GREEN = 3
Access them by:
attribute access:
>>> Color.RED <Color.RED: 1>
value lookup:
>>> Color(1) <Color.RED: 1>
name lookup:
>>> Color['RED'] <Color.RED: 1>
Enumerations can be iterated over, and know how many members they have:
>>> len(Color) 3
>>> list(Color) [<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]
Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.
- REMOTE = 'REMOTE'
- LOCAL = 'LOCAL'
- class utils.rcclient.libs.dynamic_templates.generator.TemplateGenerator(modules: Dict, module_loc_type: ModuleLocType, module_remote_loc: str = None, module_local_loc: str = None)
- FUNC_TEMPLATE_REMOTE_DIR
- FUNC_TEMPLATE_DOWNLOAD_LOC
- USE_SIGNED_URL = True
- signed_url_client
- file_upload_client
- classmethod init(modules: Dict, module_loc_type: ModuleLocType = ModuleLocType.REMOTE, module_remote_loc: str = None, module_local_loc: str = None)
- generate()
- executor_notebook_path()
- classmethod __run_checks(modules: Dict, module_local_loc: str)
- __setup_module()
- __download_func_template_modules() str
- __download_file(file_path)
- __generate_for_module(module_name: str, classes: List[str])
- __generate_for_class(klass: type)