title: Python and Windows Named Pipes
body: <p>What is the proper way of communicating with named pipes on Windows from Python? I've googled it, and can't find any packages that wrap this communication.</p>
  
  <p>There are: </p>
  
  <ul>
  <li>some descriptions of how to do it with pywin32 (I could not find how to connect to an existing pipe with it, though).</li>
  <li>This package: <a href="https://pypi.python.org/pypi/PyWPipe/" rel="noreferrer">https://pypi.python.org/pypi/PyWPipe/</a> (had no luck with it either)</li>
  <li>A piece of code here, that I haven't yet tested: <a href="http://jonathonreinhart.blogspot.ru/2012/12/named-pipes-between-c-and-python.html" rel="noreferrer">http://jonathonreinhart.blogspot.ru/2012/12/named-pipes-between-c-and-python.html</a></li>
  </ul>
  
  <p>I need just to connect to an existing named pipe and read/write to it. I previously had only tried communication with serial port (using pySerial), and I'm surprised how little info I could find on named pipes in comparison to it. There's usually tons of guides for any purpose for Python.</p>
  
  <p>I'll appreciate any help.</p>