<div><div>Hello all,</div><div> </div><div>Recently I finished a pure python implementation of the Tor client. It's called torpy (https://github.com/torpyorg/torpy).</div><div> </div><div>It offers handy API, supports v2 hidden services with "basic" and "stealth" authorization protocol. Works with python 3.6+.</div><div>It has no dependencies on the original C Tor client and Stem. For more information please take a look at README on github.</div> <div><div>Here is a quick example of how to use the library:</div></div><div>```python</div><div>from torpy import TorClient</div><div> </div><div>hostname = 'ifconfig.me' # or onion-services as well, for example 'http://facebookcorewwwi.onion'</div><div>tor = TorClient()</div><div> </div><div># Choose random guard node and create 3-hops circuit</div><div>with tor.create_circuit(3) as circuit:</div><div>   # Create tor stream to host</div><div>   with circuit.create_stream((hostname, 80)) as stream:</div><div>       # Now we can communicate with host</div><div>       stream.send(b'GET / HTTP/1.0\r\nHost: %s\r\n\r\n' % hostname.encode())</div><div>       recv = stream.recv(1024)</div><div>```</div><div> </div><div>Please list torpy project at https://trac.torproject.org/projects/tor/wiki/doc/ListOfTorImplementations</div><div> </div><div>It would be nice if you try the client. I look forward to any feedback.</div><div> </div><div>Cheers.</div><div> </div><div> </div></div>