Hi.
Im looking for ways to communicate between node-red and python.
Sample_code.py
while True:
text = input()
print(f'input = {text}')
This python script is excuted using exec node in node-red
Normaly input() is entered from the terminal using the keyboard,
but is there a way to enter it from node-red?
If you truely need continuous connections though, you should consider running the Python script as its own microservice with MQTT as suggested by Craig. Or you can use TCP, UDP, or HTTP interconnections - but MQTT would be more robust at the expense of a 3rd service needing to run.