Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Async named pipes in windows using trio and python

Tags:

python-trio

Is there any way to use async named pipes in trio under windows? I have two applications that should communicate using named pipes. One is running C# (this is not a problem) and the other is running python.

I have tried to dig a little, but have not found any solution yet. The closest I have gotten to related code is this: https://github.com/python-trio/trio/blob/master/trio/tests/test_windows_pipes.py , but currently I can not figure out how to create a named pipe. Does anyone know if it is possible or have a working example?

like image 397
PetarMignon Avatar asked Oct 18 '25 19:10

PetarMignon


1 Answers

Unfortunately Trio doesn't yet expose a general-purpose interface for working with named pipes: https://github.com/python-trio/trio/issues/824

It shouldn't be terribly difficult to do; we have all the machinery, just not put together into a nice public API.

Would you up for posting on that issue with more details about your use case? The named pipes API has a lot of different pieces and it's hard to find real-world users. Having a concrete example of what a real project needs would be really helpful for figuring out what Trio's API should look like.

like image 132
Nathaniel J. Smith Avatar answered Oct 22 '25 05:10

Nathaniel J. Smith



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!