mirror of
https://github.com/torproject/stem.git
synced 2025-03-02 06:45:29 +00:00

Stem supports Python 3.6+ but asyncio.get_running_loop() was added in 3.7. The only difference between get_running_loop() and get_event_loop() is that the former raises a RuntimeError when outside an asyncio context. These calls are assured to be asyncronous so it really doesn't matter - I just picked get_running_loop() because it reads a tad better. The one exception is our is_asyncio_context() function. For that we need a fallback, which fortunately a private method provides... https://github.com/Azure/msrest-for-python/issues/136
Stem (Python Tor Library)
Stem is a Python controller library for Tor. With it you can use Tor's control protocol to script against the Tor process, or build things such as Nyx.
Documentation and tutorials available at stem.torproject.org.
Description
Languages
Python
97.5%
Roff
2.5%