txtorcon is a Twisted-based asynchronous Tor control protocol implementation. Twisted is an event-driven networking engine written in Python, and Tor is an onion-routing network designed to improve people’s privacy and security on the Internet. It includes unit-tests with 96%+ coverage, multiple examples, and documentation. There are abstractions to track Tor configuration and state (circuits, streams), launch private instances, support Hidden Service, and more.
|Tags||Python Tor Internet Security Library Utilities|
|Operating Systems||Unix Linux BSD Windows Mac OS X|
Release Notes: API change: ICircuitListener.circuit_failed, .circuit_closed and IStreamListener.stream_failed, .stream_closed, and .stream_detach all include any keywords in the notification method. Several cleanups + new example from lukaslueg (now pep8 clean!) launch_tor() can take a timeout (hellais); ipaddr is really optional now; TorState can create circuits without an explicit path; passwords use a password callback (possibly Deferred);
Release Notes: The config object is now hooked up correctly after launch_tor(). The data_dir provided to TCPHiddenServiceEndpoint is now handled properly. A .tac example was provided. TorConfig().hiddenservices.append(hs) now works properly with no attached protocol.
Release Notes: This release adds Debian packaging (mmaker), fully removes psutil, changes the API for launch_tor() to use TorConfig instead of args, makes TorConfig.save() work properly with no connected Tor, fixes incorrect handling of 650 immediately after connection, adds pep8 compliance, uses assertEqual in tests, makes messages with embedded keywords work properly, fixes a bug with setup.py and pip, consolidates requirements (from aagbsn), increases test coverage, adds various minor fixes, and uses https URIs for ReadTheDocs.