7 weeks agoPY_EXT: fix exception with CSV loading.
Edouard Tisserant <edouard@beremiz.fr> [Tue, 11 Feb 2025 15:59:23 +0100] rev 4110
PY_EXT: fix exception with CSV loading.

7 weeks agomerge
Edouard Tisserant <edouard.tisserant@gmail.com> [Fri, 07 Feb 2025 18:42:43 +0100] rev 4109
merge

7 weeks agoFix csv_by_string example
Edouard Tisserant <edouard@beremiz.fr> [Fri, 07 Feb 2025 15:05:50 +0100] rev 4108
Fix csv_by_string example

7 weeks agoPY_EXT: fix wrong column header produced by csv_write_by_string.
Edouard Tisserant <edouard@beremiz.fr> [Fri, 07 Feb 2025 14:29:11 +0100] rev 4107
PY_EXT: fix wrong column header produced by csv_write_by_string.

7 weeks agoAdd example for CSV_WRITE_BY_STRING
Edouard Tisserant <edouard@beremiz.fr> [Fri, 07 Feb 2025 11:22:53 +0100] rev 4106
Add example for CSV_WRITE_BY_STRING

7 weeks agoPy_ext: add CSV write by String FB + refactoring
Edouard Tisserant <edouard@beremiz.fr> [Fri, 07 Feb 2025 11:21:15 +0100] rev 4105
Py_ext: add CSV write by String FB + refactoring

- CSV_WRITE_BY_STR can create file from scratch
- Moved python runtime code from a string to a separate file.

7 weeks agoPython runtime: call "OnIdle" tasks when py_eval FBs execution queue is empty.
Edouard Tisserant <edouard@beremiz.fr> [Fri, 07 Feb 2025 10:52:09 +0100] rev 4104
Python runtime: call "OnIdle" tasks when py_eval FBs execution queue is empty.

This is usefull to execute slow operations that can be deffered from functions called by py_eval FBs.
User python code add a callable to "OnIdle" list made available in global scope.