Overview of txtorcon
maintxtorcon is a Python library (supporting Py2, PyPy, and Py3) that implements the Tor control-spec. It uses the Twisted networking library to provide a live view of Tor state and allow control over most aspects of Tor's operation.
Key capabilities include:
- Launching and controlling Tor instances (including Tor Browser Bundle).
- Connecting to existing Tor instances.
- Using Tor as a client (via SOCKS5) or setting up Onion services.
- Tracking live state (active circuits, streams, and routers/relays).
- Performing DNS via Tor.
- Building custom circuits and listening for Tor
EVENTs. - Providing Twisted endpoint support via
tor:andonion:plugins.