Skip to content

Files

Latest commit

2cecef4 · Mar 25, 2019

History

History
This branch is 1 commit ahead of, 15 commits behind bestlibre/hassio-addons:master.

python_exec

Simple python executor

Build Status

This addon is mainly for devlopment purpose. It will install, if needed, the given requirements with pip and then launch the python script.

Since json config string cannot hold python code (with multilines and indents) the script code source must be present in a file accessible from the addon. It can be put in /share.

Options

clean (bool)

If set to true the virtualenv holding the requirements is deleted on start.

requirements (list of string)

List of requirements to install with pip

code (string)

Path to the python source file.