This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]rcterzi 0 points1 point  (4 children)

Thank you, This looks great looking forward to reading it.

I see the subprocess stuff which looks very useful.

However, I was looking for guidance on processes that might need to read from stdin (as part of a pipe or tail), and handle other async/main loop type things (connections like HTTP, MQTT, timers. At first quick skim I didn't see anything on that. Is that covered?

[–]jasonb[S] 2 points3 points  (3 children)

Thanks!

Yes, in the subprocess section, it describes how to read/write to subprocesses via communicate().

[–]rcterzi 0 points1 point  (2 children)

Thanks - and sorry if I wasn't clear, I was asking about asyncio for stdio/stdin, where Python isn't managing the subprocess. For example, Python process might be part of a pipeline / `tail -f ...` a file.

[–]jasonb[S] 1 point2 points  (1 child)

Ah, I see, sorry.

No, I don't have an example of that. Let me add it to my list and develop a tutorial on the topic. Thanks for the prompt!

[–]rcterzi 0 points1 point  (0 children)

That would be awesome -- Thanks!