fastiot.cli.helper_fn module

fastiot.cli.helper_fn.get_jinja_env(template_dir='/home/docs/checkouts/readthedocs.org/user_builds/fastiot/checkouts/0.2.198/src/fastiot/cli/templates')[source]
fastiot.cli.helper_fn.find_services(package=None, path=None, services=None)[source]

Find services in a package

Parameters:
  • package (Optional[str]) – The package name within your src. If not defined the whole :path:`src` will be searched for suitable services containing a manifest.yaml and a run.py

  • path (Optional[str]) – Optional, specify a search path, uses os.getcwd() as default

  • services (Optional[List[str]]) – Optional; if specified it will only include the listed services

Return type:

List[Service]

fastiot.cli.helper_fn.find_deployments(deployments=None, path='')[source]

Creates a dict of all deployments found the projects deployments path.

Parameters:
  • deployments (Optional[List[str]]) – Optional, specify a list of deployments to be exclusively included

  • path (str) – Optional, specify a search path, uses os.getcwd() as default

Return type:

Dict[str, DeploymentConfig]