How to write into a text file with a panel plugin

Hey,
I want to write a line into a text file for another python script to read and do stuff depending on the text.
So far I have not found a way to write into a text file, only in the web console.
Is there an easy way to do so?
Thanks

Panel plugins only run in the browser, so they don’t have access to the file system. You can however build a backend data source that calls a Python script, since it runs on the server.

1 Like

Thank you very much for this info.
Do you have a good tutorial for this?
I have currently no experience with backend data sources, I only built panels so far.

I do! You can get started by checking out the tutorial on how to Build a data source backend plugin.

1 Like