Stem 1.4 發布,此版本帶來了新的隱藏服務能力,並且可以直接在 Python 2 和 Python 3 的環境下運行,不需要進行轉換,詳細更新情況如下:
Controller
Added Controller methods for a new style of hidden services that don't touch disk:
list_ephemeral_hidden_services(), create_ephemeral_hidden_service(), and
remove_ephemeral_hidden_service() (spec)
Added get_hidden_service_descriptor() and support for HS_DESC_CONTENT events (ticket 14847, spec)
launch_tor_with_config() avoids writing a temporary torrc to disk if able (ticket 13865)
CircuitEvent support for the new SOCKS_USERNAME and SOCKS_PASSWORD arguments (ticket 14555, spec)
The 'strict' argument of can_exit_to() didn't behave as documented (ticket 14314)
Threads spawned for status change listeners were never joined on, potentially causing noise during interpreter shutdown
Added support for specifying the authentication type and client names in create_hidden_service() (ticket 14320)
Descriptors
Lazy-loading descriptors, improving performance by 25-70% depending on what type it is (ticket 14011)
Added support for hidden service descriptors (ticket 15004)
When reading sanitised bridge descriptors (server or extrainfo), parse_file() treated the whole file as a single descriptor
The DirectoryAuthority 'fingerprint' attribute was actually its 'v3ident'
Added consensus' new package attribute (spec)
Added extra info' new hs_stats_end, hs_rend_cells, hs_rend_cells_attr, hs_dir_onions_seen, and hs_dir_onions_seen_attr attributes (spec)
Updating Faravahar's address (ticket 14487)
Utilities
Windows support for connection resolution (ticket 14844)
stem.util.connection.port_usage() always returned None (ticket 14046)
stylistic_issues() and pyflakes_issues() now provide namedtuples that also includes the line
Added stem.util.system.tail()
Proc connection resolution could fail on especially busy systems (ticket 14048)
Website
Added support and instructions for tox (ticket 14091)
Added OSX to our download page (ticket 8588)
Updated our twitter example to work with the service's 1.1 API (ticket 9003)
詳細信息請查看更新日誌。
Stem 是基於 Tor 的 Python 控制器庫,可以使用 Tor 的控制協議來對 Tor 進程進行腳本處理或者構建。