Connecting linux device to Openwrt router via ethernet

Hi, I am new to openwrt and luci.
I have connceted a linux system to openwrt router with ethernet cable. What I am trying to do is, run a python script in linux system then transfer that output to openwrt so that further i can display it on luci page. Any suggestions kindly let me know.

use scp, perhaps ?

many ways! for example, your router running a mqtt server, your python running as a mqtt client, wifi also work.