How to send messages to TTN via python?

My plan: Use python to send messages to TTN over tcp or udp.
I have a wifi router(WRT54GS) that I can run python on.
I can use python to receive serial messages from a radio(lora32u4).

I want to pack the messages from the radio into a packet to send to the TTN.
The radio connected to router will be receiving messages from my temperature nodes that run on various mcu’s.

Ive been searching and searching but can’t find any examples of just sending data to TTN over tcp/udp ip networking.
Thanks in advance.

Welcome to the forum.

Are these nodes you have running the TTN node software or are they something bespoke ?

What is the reason for wanting to use TTN as the backend in particular, in preference to other IOT platforms that are already setup to accept sensor data over the Internet ?

indeed, have a look at, for example, BLYNK

Nodes are not running TTN node software unless that can be made to work rf95/duino->rf95/duino->serial->python.

I for whatever reason did not consider even searching for other Iot platforms, just figured since using lora, possibly lorawan gateway in future I would look into TTN.
But you have made me think there are probably tons of tutorials for simple rest data to cloud communication.

Thanks.