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 yoursrc
. If not defined the whole :path:`src` will be searched for suitable services containing amanifest.yaml
and arun.py
path (
Optional
[str
]) – Optional, specify a search path, usesos.getcwd()
as defaultservices (
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 includedpath (
str
) – Optional, specify a search path, usesos.getcwd()
as default
- Return type:
Dict
[str
,DeploymentConfig
]