Open mereacre opened 2 years ago
Thanks for this, if the scripts build the YAML to CSV it should be straightforward to read in Python using the built-in file IO, and sqlite3 will cover updating the database. I don't think we'll need to install any extra packages on the Turris.
python3-jsonschema - 3.2.0-3.7-2
Nice, the Turris even comes with the jsonschema
package pre-installed. That's great.
I don't think we'll need to install any extra packages on the Turris.
100% agree. YAML parsing is probably the only extra package we need, but if we have json
/csv
D3 claims, that can be removed.
(although, PyYAML is pretty heavy since it's a C-compiled Python lib, but even then, it's probably only around 1 MB in size https://pypi.org/project/PyYAML/#files)
I'm guessing it's probably worth splitting up the Python code into 3 different packages, d3-importer
, d3-convert
, d3-lint
(names not set it stone).
The d3-lint
and d3-convert
can be designed to run on CI/server and use almost any dependencies, while the d3-importer
will be the one that must run on the Turris Omnia.
Below is the list of default python3 packages installed on Turris Omnia:
Ideally for code running on Turris we should use the packages that come with the device. We could use other packages but it creates complication with the disk space, etc.