Change Log ========== The following is a log of all user-facing changes to Stem, both released and unreleased. For a monthly report on work being done see my `development log `_. * :ref:`versioning` * :ref:`unreleased` * :ref:`version_1.8` * :ref:`version_1.7` * :ref:`version_1.6` * :ref:`version_1.5` * :ref:`version_1.4` * :ref:`version_1.3` * :ref:`version_1.2` * :ref:`version_1.1` * :ref:`version_1.0` .. _versioning: Versioning ---------- Stem uses `semantic versioning `_, which means that **versions consist of three numbers** (such as '**1.2.4**'). These are used to convey the kind of backward compatibility you can expect... * The first value is the **major version**. This changes infrequently, and indicates that backward incompatible changes have been made (such as the removal of deprecated functions). * The second value is the **minor version**. This is the most common kind of release, and denotes that the improvements are backward compatible. * The third value is the **patch version**. When a Stem release has a major issue another release is made which fixes just that problem. These do not contain substantial improvements or new features. This value is sometimes left off to indicate all releases with a given major/minor version. .. _unreleased: Unreleased ---------- The following are only available within Stem's `git repository `_. .. _version_1.8: Version 1.8 (December 29th, 2019) --------------------------------- `Stem 1.8 `_ is the final release in Stem’s 1.x series and with it `Python 2.x support `_. Over a year in the making, this introduces `CollecTor `_, `bandwidth metric `_, and `HSv3 descriptor support `_. * **Controller** * Added :func:`~stem.control.Controller.get_start_time` method to the :class:`~stem.control.Controller` * Added :func:`~stem.control.Controller.get_uptime` method to the :class:`~stem.control.Controller` * Controller events could fail to be delivered in a timely fashion (:trac:`27173`) * Adjusted :func:`~stem.control.Controller.get_microdescriptors` fallback to also use '.new' cache files (:trac:`28508`) * ExitPolicies could raise TypeError when read concurrently (:trac:`29899`) * Moved the *arrived_at* attribute from :class:`~stem.response.event.Event` to :class:`~stem.response.__init__.ControlMessage` * **STALE_DESC** :data:`~stem.Flag` (:spec:`d14164d`) * **DORMANT** and **ACTIVE** :data:`~stem.Signal` (:spec:`4421149`) * **QUERY_RATE_LIMITED** :data:`~stem.HSDescReason` (:spec:`bd80679`) * **EXTOR** and **HTTPTUNNEL** :data:`~stem.control.Listener` * **Descriptors** * Added the `stem.descriptor.collector `_ module (:trac:`17979`) * Added `v3 hidden service descriptor support `_ (:trac:`31369`) * `Bandwidth file support `_ (:trac:`29056`) * `stem.descriptor.remote `_ methods now raise :class:`stem.DownloadFailed` * Check Ed25519 validity though the cryptography module rather than PyNaCl (:trac:`22022`) * Download compressed descriptors by default (:trac:`29186`) * Added :class:`~stem.descriptor.Compression` class * Added :func:`stem.descriptor.remote.get_microdescriptors` * Added :func:`stem.descriptor.remote.get_bandwidth_file` (:trac:`26902`) * Added :class:`~stem.descriptor.networkstatus.DetachedSignature` parsing (:trac:`28495`) * Added :func:`~stem.descriptor.__init__.Descriptor.from_str` method (:trac:`28450`) * Added :func:`~stem.descriptor.__init__.Descriptor.type_annotation` method (:trac:`28397`) * Added :func:`~stem.descriptor.networkstatus.NetworkStatusDocument.digest` method (:trac:`28398`) * Added the **hash_type** and **encoding** arguments to `ServerDescriptor `_ and `ExtraInfo's `_ digest methods (:trac:`28398`) * Added the network status vote's new bandwidth_file_digest attribute (:spec:`1b686ef`) * Added :func:`~stem.descriptor.networkstatus.NetworkStatusDocumentV3.is_valid` and :func:`~stem.descriptor.networkstatus.NetworkStatusDocumentV3.is_fresh` methods (:trac:`28448`) * Replaced :func:`~stem.descriptor.router_status_entry.RouterStatusEntryMicroV3` hex encoded **digest** attribute with a base64 encoded **microdescriptor_digest** * Replaced the **digest** attribute of :class:`~stem.descriptor.microdescriptor.Microdescriptor` with a method by the same name (:trac:`28398`) * Default the **version_flavor** attribute of :class:`~stem.descriptor.networkstatus.NetworkStatusDocumentV3` to 'ns' (:spec:`d97f8d9`) * DescriptorDownloader crashed if **use_mirrors** is set (:trac:`28393`) * Renamed stem.descriptor.hidden_service_descriptor to stem.descriptor.hidden_service * Don't download from Serge, a bridge authority that frequently timeout * Updated dizum authority's address (:trac:`31406`) * **Client** * Sockets with ORPorts errored if responses exceeded a hardcoded buffer size (:trac:`28961`) * **Utilities** * :func:`~stem.util.tor_tools.is_valid_hidden_service_address` now provides *true* if a v3 hidden servie address * Fixed 'invalid escape sequence' python 3.6 warnings (:trac:`27270`) * **Website** * `Migrated to GitHub's issue tracker `_ * Added NetBSD to our `download page `_ * Describe `advanced listener usage `_ * Exemplify `manual SAFECOOKIE authentication `_ * `Update PyPI links `_ (:trac:`30137`) * **Interpreter** * tor-prompt is now ~34% faster when used to non-interactively invoke commands .. _version_1.7: Version 1.7 (October 7th, 2018) ------------------------------- `Stem 1.7 `_ is a full year of improments. Most notably this adds the ability to `download descriptors through ORPorts `_ and the `stem.directory module `_. * **Controller** * Listener exceptions and malformed events no longer break further event processing (:trac:`27053`) * Documented v3 hidden service support (:trac:`25124`, :spec:`6bd0a69`) * Added the stem.control.MALFORMED_EVENTS event listener constant * Added support for limiting the maximum number of streams for :func:`~stem.control.Controller.create_ephemeral_hidden_service` (:spec:`2fcb1c2`) * Added a timeout argument to :class:`~stem.control.Controller` methods that could await a response (:trac:`26056`) * Added a close_output argument to :class:`~stem.process.launch_tor` * :func:`stem.connection.connect` crashed if its port argument was a string * More reliable ExitPolicy resolution (:trac:`25739`) * Fixed cache invalidation when another contorller calls SETCONF (:trac:`25821`) * :func:`~stem.control.COntroller.create_hidden_service` failed when creating services with v2 options (:trac:`27446`) * :func:`~stem.control.Controller.get_info` commonly raised :class:`stem.ProtocolError` when it should provide a :class:`stem.OperationFailed` * :func:`~stem.control.Controller.get_microdescriptors` now reads microdescriptors from the control port rather than disk when available (:spec:`b5396d5`) * Added the delivered_read, delivered_written, overhead_read, and overhead_written attributes to :class:`~stem.response.events.CircuitBandwidthEvent` (:spec:`fbb38ec`) * The *config* attribute of :class:`~stem.response.events.ConfChangedEvent` couldn't represent tor configuration options with multiple values. It has been replaced with new *changed* and *unset* attributes. * Replaced socket's :func:`~stem.socket.ControlPort.get_address`, :func:`~stem.socket.ControlPort.get_port`, and :func:`~stem.socket.ControlSocketFile.get_socket_path` with attributes * :class:`~stem.response.ControlMessage` is now comparable and hashable * Removed the 'raw' argument from :func:`~stem.socket.ControlSocket.send` * **Descriptors** * `stem.descriptor.remote `_ can now download from relay ORPorts * Zstd and lzma compression support (:spec:`1cb56af`) * Moved the Directory classes into their own `stem.directory `_ module * Added :func:`~stem.descriptor.remote.Directory.from_cache` and :func:`~stem.descriptor.remote.Directory.from_remote` to the :class:`~stem.descriptor.remote.DirectoryAuthority` subclass * `Tor rearranged its files `_, adjusted :func:`stem.descriptor.remote.Directory.from_remote` and :func:`stem.manual.Manual.from_remote` to account for this * `Fallback directory v2 support `_, which adds *nickname* and *extrainfo* * Added the *orport_v6* attribute to the :class:`~stem.directory.Authority` class * Added server descriptor's new is_hidden_service_dir attribute * Added the network status vote's new bandwidth_file_headers attribute (:spec:`84591df`) * Added the microdescriptor router status entry's new or_addresses attribute (:trac:`26405`, :spec:`fdc8f3e`) * Don't retry downloading descriptors when we've timed out * Don't download from tor26, an authority that frequently timeout * Replaced Bifroest bridge authority with Serge (:trac:`26771`) * `stem.descriptor.remote `_ now consistently defaults **fall_back_to_authority** to false * Deprecated `stem.descriptor.export `_. If you use it please `let us know `_. * Added :func:`~stem.descriptor.remote.their_server_descriptor` * Added the reply_headers attribute to :class:`~stem.descriptor.remote.Query` * Supplying a User-Agent when downloading descriptors * Reduced maximum descriptors fetched by the remote module to match tor's new limit (:trac:`24743`) * Consensus **shared_randomness_*_reveal_count** attributes undocumented, and unavailable if retrieved before their corresponding shared_randomness_*_value attribute (:trac:`25046`) * Allow 'proto' line to have blank values (:spec:`a8455f4`) * **Utilities** * Fixed PyPy compatibility (:trac:`26207`) * Python 3.6+ syntax error if test_tools.py imported (:trac:`26739`) * Connection information from proc limited to 10,000 results * Include attribute types in most equality checks and hashes * Cache hash values of immutable classes * More performant string concatenation `via bytearrays `_ * Functions using lru_cache could fail with a KeyError on Python 3.5 (:trac:`26412`) * **Website** * Added `terminal styling `_ to our utilities tutorial * Added `multiprocessing `_ to our utilities tutorial * Added a `descriptor download example `_ * Added a `relay connection summary example `_ * **Version 1.7.1** (December 26th, 2018) - :func:`~stem.process.launch_tor` compatibility with an upcoming log format change (:trac:`28731`) .. _version_1.6: Version 1.6 (November 5th, 2017) -------------------------------- Year long accumulation of fixes and improvements in support of the `Nyx 2.0 release `_. * **Controller** * :func:`~stem.process.launch_tor` raised a ValueError if invoked when outside the main thread * Failure to authenticate could raise an improper response or hang (:trac:`22679`) * Renamed :class:`~stem.response.events.ConnectionBandwidthEvent` type attribute to conn_type to avoid conflict with parent class (:trac:`21774`) * Added 'force' argument to :func:`~stem.control.Controller.save_conf` (:spec:`5c82d5e`) * Added the QUERY_NO_HSDIR :data:`~stem.HSDescReason` and recognizing unknown HSDir results (:spec:`1412d79`) * Added the GUARD_WAIT :data:`~stem.CircStatus` (:spec:`6446210`) * Unable to use cookie auth when path includes wide characters (chinese, japanese, etc) * Tor change caused :func:`~stem.control.Controller.list_ephemeral_hidden_services` to provide empty strings if unset (:trac:`21329`) * Better error message when :func:`~stem.control.Controller.set_conf` fails due to an option being immutable * :func:`~stem.control.Controller.get_ports` didn't provide ports for many representations of localhost (:trac:`24085`) * :func:`~stem.control.Controller.is_geoip_unavailable` now determines if database is available right away * Added the time attribute to :class:`~stem.response.events.StreamBwEvent` and :class:`~stem.response.events.CircuitBandwidthEvent` (:spec:`00b9daf`) * Added the consensus_content attribute to :class:`~stem.response.events.NewConsensusEvent` and deprecated its 'desc' * Deprecated :func:`~stem.control.Controller.is_geoip_unavailable`, this is now available via getinfo instead (:trac:`23237`, :spec:`dc973f8`) * Deprecated :class:`~stem.respose.events.AuthDirNewDescEvent` (:trac:`22377`, :spec:`6e887ba`) * Caching manual information as sqlite rather than stem.util.conf, making :func:`stem.manual.Manual.from_cache` about ~8x faster * Added :func:`~stem.manual.database` to get a cursor for the manual cache * Failed to parse torrcs without a port on ipv6 exit policy entries * Resilient to 'Tor' prefix in 'GETINFO version' result (:spec:`c5ff1b1`) * Added a **all_extra** parameter to :class:`stem.version.Version` and support for multiple parenthetical entries (:trac:`22110`, :spec:`b50917d`) * Setting 'UseMicrodescriptors 1' in your torrc caused :func:`~stem.control.Controller.get_network_statuses` to error (:trac:`24110`) * Closing controller connection faster when under heavy event load * Better messaging when unable to connect to tor on FreeBSD * More succinct trace level logging * **Descriptors** * Supporting `descriptor creation `_ (:trac:`10227`) * Support and validation for `ed25519 certificates `_ (`spec `_, :trac:`21558`) * Added :func:`~stem.descriptor.networkstatus.NetworkStatusDocumentV3.validate_signatures` to check our key certificate signatures (:trac:`11045`) * Moved from the deprecated `pycrypto `_ module to `cryptography `_ for validating signatures (:trac:`21086`) * Sped descriptor reading by ~25% by deferring defaulting when validating * Added server descriptor's new extra_info_sha256_digest attribute (:spec:`0f03581`) * Added server descriptor's new protocol attribute (:spec:`eb4fb3c`) * Added server descriptor's new bridge_distribution attribute (:trac:`21177`) * Added extrainfo descriptor's new padding_counts attributes (:spec:`0803997`) * Shared randomness properties weren't being read in votes (:trac:`21102`) * Added bastet as a new authority (:trac:`23912`) * Updated longclaw authority's address (:trac:`23592`) * **Utilities** * Support connection resolution on OpenBSD using fstat (:trac:`13807`) * Added :func:`~stem.util.system.size_of` * Added :func:`~stem.util.log.is_tracing` * Added timeout argument to :func:`~stem.util.system.call` * Added cwd argument to :func:`~stem.util.system.call` * Added round argument to :func:`~stem.util.str_tools.size_label` * Added :class:`~stem.util.test_tools.TimedTestRunner` and :func:`~stem.util.test_tools.test_runtimes` * Supporting pid arguments in :func:`~stem.util.system.is_running` * Made connection resolution via proc about 5x faster * Normalized :func:`~stem.util.term.format` to return unicode * Don't load vim swap files as configurations * **Interpreter** * Added a `'--run [command or path]' argument `_ to invoke specific commands (:trac:`21541`) * Allowing interpreter to continue after tor shuts down (:trac:`22374`) * Interpreter buffered an unbounded number of events, leaking memory over time * **Website** * Source code served by '[source]' links perpetually stale (:trac:`19521`) .. _version_1.5: Version 1.5 (November 20th, 2016) --------------------------------- `Stem 1.5 `_ is a long overdue accumulation of seventeen months of improvements including dramatically improved python 3.x performance, `tor manual information `_, and much more. * **Controller** * Dramatic, 300x performance improvement for reading from the control port with python 3 * Added `stem.manual `_, which provides information available about Tor from `its manual `_ (:trac:`8251`) * :func:`~stem.connection.connect` and :func:`~stem.control.Controller.from_port` now connect to both port 9051 (relay's default) and 9151 (Tor Browser's default) (:trac:`16075`) * :class:`~stem.exit_policy.ExitPolicy` support for *accept6/reject6* and *\*4/6* wildcards (:trac:`16053`) * Added `support for NETWORK_LIVENESS events `_ (:spec:`44aac63`) * Added support for basic authentication to :func:`~stem.control.Controller.create_ephemeral_hidden_service` (:spec:`c2865d9`) * Added support for non-anonymous services to :func:`~stem.control.Controller.create_ephemeral_hidden_service` (:spec:`b8fe774`) * Added :func:`~stem.control.event_description` for getting human-friendly descriptions of tor events (:trac:`19061`) * Added :func:`~stem.control.Controller.reconnect` to the :class:`~stem.control.Controller` * Added :func:`~stem.control.Controller.is_set` to the :class:`~stem.control.Controller` * Added :func:`~stem.control.Controller.is_user_traffic_allowed` to the :class:`~stem.control.Controller` * Added the replica attribute to :class:`~stem.response.events.HSDescEvent` (:spec:`4989e73`) * Added the NoEdConsensus :data:`~stem.Flag` (:spec:`dc99160`) * Recognize listeners with IPv6 addresses in :func:`~stem.control.Controller.get_listeners` * :func:`~stem.process.launch_tor` could leave a lingering process during an unexpected exception (:trac:`17946`) * IPv6 addresses could trigger errors in :func:`~stem.control.Controller.get_listeners`, :class:`~stem.response.events.ORConnEvent`, and quite a few other things (:trac:`16174`) * Don't obscure stacktraces, most notably :class:`~stem.control.Controller` getter methods with default values * Classes with custom equality checks didn't provide a corresponding inequality method * **Descriptors** * `Shorthand functions for stem.descriptor.remote `_ * Added `fallback directory information `_. * Support for ed25519 descriptor fields (:spec:`5a79d67`) * Support downloading microdescriptor consensus with :func:~stem.descriptor.remote.DescriptorDownloader.get_consensus` (:spec`e788b8f`) * Added consensus and vote's new shared randomness attributes (:spec:`9949f64`) * Added server descriptor's new allow_tunneled_dir_requests attribute (:spec:`8bc30d6`) * Server descriptor validation fails with 'extra-info-digest line had an invalid value' from additions in proposal 228 (:trac:`16227`) * :class:`~stem.descriptor.server_descriptor.BridgeDescriptor` now has 'ntor_onion_key' like its unsanitized counterparts * Replaced the :class:`~stem.descriptor.microdescriptor.Microdescriptor` identifier and identifier_type attributes with an identifiers hash since it can now appear multiple times (:spec:`09ff9e2`) * Unable to read descriptors from data directories on Windows due to their CRLF newlines (:trac:`17051`) * TypeError under python3 when using 'use_mirrors = True' (:trac:`17083`) * Deprecated hidden service descriptor's *introduction_points_auth* field, which was never implemented in tor (:trac:`15190`, :spec:`9c218f9`) * Deprecated :func:`~stem.descriptor.remote.DescriptorDownloader.get_microdescriptors` as it was never implemented in tor (:trac:`9271`) * :func:`~stem.control.Controller.get_hidden_service_descriptor` errored when provided a *servers* argument (:trac:`18401`) * Fixed parsing of server descriptor's *allow-single-hop-exits* and *caches-extra-info* lines * Bracketed IPv6 addresses were mistreated as being invalid content * Better validation for non-ascii descriptor content * Updated dannenberg's v3ident (:trac:`17906`) * Removed urras as a directory authority (:trac:`19271`) * **Utilities** * IPv6 support in :func:`~stem.util.connection.get_connections` when resolving with proc, netstat, lsof, or ss (:trac:`18079`) * The 'ss' connection resolver didn't work on Gentoo (:trac:`18079`) * Recognize IPv4-mapped IPv6 addresses in our utils (:trac:`18079`) * Allow :func:`stem.util.conf.Config.set` to remove values when provided with a **None** value * Support prefix and suffix issue strings in :func:`~stem.util.test_tools.pyflakes_issues` * Additional information when :func:`~stem.util.system.call` fails through a :class:`~stem.util.system.CallError` * Added **stem.util.system.SYSTEM_CALL_TIME** with the total time spent on system calls * Added an **is_ipv6** value to :class:`~stem.util.connection.Connection` instances * Added LINES attribute to :data:`~stem.util.term.Attr` * Added :func:`~stem.util.system.pids_by_user` * Added :func:`~stem.util.connection.address_to_int` * Added :func:`~stem.util.term.encoding` * Added :func:`~stem.util.__init__.datetime_to_unix` * **Interpreter** * Added a '--tor [path]' argument to specify the tor binary to run. * **Website** * `Comparison of our descriptor parsing libraries `_ * Example for `custom path selection for circuits `_ (:trac:`8728`) * Example for `persisting ephemeral hidden service keys `_ * **Version 1.5.3** (December 5th, 2016) - including tests and site in the release tarball * **Version 1.5.4** (January 4th, 2017) - drop validation of the order of fields in the tor consensus (:trac:`21059`) .. _version_1.4: Version 1.4 (May 13th, 2015) ---------------------------- `Stem's 1.4 release `_ brings with it new hidden service capabilities. Most notably, `ephemeral hidden services `_ and the ability to `read hidden service descriptors `_. This release also changes descriptor validation to now be opt-in rather than opt-out. When unvalidated content is lazy-loaded, `greatly improving our performance `_. And last, Stem also now runs directly under both python2 and python3 without a 2to3 conversion (:trac:`14075`)! * **Controller** * Added :class:`~stem.control.Controller` methods for a new style of hidden services that don't touch disk: :func:`~stem.control.Controller.list_ephemeral_hidden_services`, :func:`~stem.control.Controller.create_ephemeral_hidden_service`, and :func:`~stem.control.Controller.remove_ephemeral_hidden_service` (:spec:`f5ff369`) * Added :func:`~stem.control.Controller.get_hidden_service_descriptor` and `support for HS_DESC_CONTENT events `_ (:trac:`14847`, :spec:`aaf2434`) * :func:`~stem.process.launch_tor_with_config` avoids writing a temporary torrc to disk if able (:trac:`13865`) * :class:`~stem.response.events.CircuitEvent` support for the new SOCKS_USERNAME and SOCKS_PASSWORD arguments (:trac:`14555`, :spec:`2975974`) * The 'strict' argument of :func:`~stem.exit_policy.ExitPolicy.can_exit_to` didn't behave as documented (:trac:`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 :func:`~stem.control.Controller.create_hidden_service` (:trac:`14320`) * **Descriptors** * Lazy-loading descriptors, improving performance by 25-70% depending on what type it is (:trac:`14011`) * Added `support for hidden service descriptors `_ (:trac:`15004`) * When reading sanitised bridge descriptors (server or extrainfo), :func:`~stem.descriptor.__init__.parse_file` treated the whole file as a single descriptor * The :class:`~stem.descriptor.networkstatus.DirectoryAuthority` 'fingerprint' attribute was actually its 'v3ident' * Added consensus' new package attribute (:spec:`ab64534`) * 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:`ddb630d`) * Updating Faravahar's address (:trac:`14487`) * **Utilities** * Windows support for connection resolution (:trac:`14844`) * :func:`stem.util.connection.port_usage` always returned None (:trac:`14046`) * :func:`~stem.util.test_tools.stylistic_issues` and :func:`~stem.util.test_tools.pyflakes_issues` now provide namedtuples that also includes the line * Added :func:`stem.util.system.tail` * Proc connection resolution could fail on especially busy systems (:trac:`14048`) * **Website** * Added support and `instructions for tox `_ (:trac:`14091`) * Added OSX to our `download page `_ (:trac:`8588`) * Updated our twitter example to work with the service's 1.1 API (:trac:`9003`) * **Version 1.4.1** (May 18th, 2015) - fixed issue where descriptors couldn't be unpickled (:trac:`16054`) and a parsing issue for router status entry bandwidth lines (:trac:`16048`) .. _version_1.3: Version 1.3 (December 22nd, 2014) --------------------------------- With `Stem's 1.3 release `_ it's now much easier to `work with hidden services `_, 40% faster to read decriptors, and includes a myriad of other improvements. For a nice description of the changes this brings see `Nathan Willis' LWN article `_. * **Controller** * Added :class:`~stem.control.Controller` methods to more easily work with hidden service configurations: :func:`~stem.control.Controller.get_hidden_service_conf`, :func:`~stem.control.Controller.set_hidden_service_conf`, :func:`~stem.control.Controller.create_hidden_service`, and :func:`~stem.control.Controller.remove_hidden_service` (:trac:`12533`) * Added :func:`~stem.control.Controller.get_accounting_stats` to the :class:`~stem.control.Controller` * Added :func:`~stem.control.Controller.get_effective_rate` to the :class:`~stem.control.Controller` * Added :func:`~stem.control.BaseController.connection_time` to the :class:`~stem.control.BaseController` * Changed :func:`~stem.control.Controller.get_microdescriptor`, :func:`~stem.control.Controller.get_server_descriptor`, and :func:`~stem.control.Controller.get_network_status` to get our own descriptor if no fingerprint or nickname is provided. * Added :class:`~stem.exit_policy.ExitPolicy` methods for more easily handling 'private' policies (the `default prefix `_) and the defaultly appended suffix. This includes :func:`~stem.exit_policy.ExitPolicy.has_private`, :func:`~stem.exit_policy.ExitPolicy.strip_private`, :func:`~stem.exit_policy.ExitPolicy.has_default`, and :func:`~stem.exit_policy.ExitPolicy.strip_default` :class:`~stem.exit_policy.ExitPolicy` methods in addition to :func:`~stem.exit_policy.ExitPolicyRule.is_private` and :func:`~stem.exit_policy.ExitPolicyRule.is_default` for the :class:`~stem.exit_policy.ExitPolicyRule`. (:trac:`10107`) * Added the reason attribute to :class:`~stem.response.events.HSDescEvent` (:spec:`7908c8d`) * :func:`~stem.process.launch_tor_with_config` could cause a "Too many open files" OSError if called too many times (:trac:`13141`) * The :func:`~stem.control.Controller.get_exit_policy` method errored if tor couldn't determine our external address * The Controller's methods for retrieving descriptors could raise unexpected ValueErrors if tor didn't have any descriptors available * Throwing a new :class:`~stem.DescriptorUnavailable` exception type when the :class:`~stem.control.Controller` can't provide the descriptor for a relay (:trac:`13879`) * **Descriptors** * Improved speed for parsing consensus documents by around 40% (:trac:`12859` and :trac:`13821`) * Don't fail if consensus method 1 is not present, as it is no longer required (:spec:`fc8a6f0`) * Include '\*.new' files when reading from a Tor data directory (:trac:`13756`) * Updated the authorities we list, `replacing turtles with longclaw `_ and `updating gabelmoo's address `_ * Noting if authorities are also a bandwidth authority or not * Microdescriptor validation issues could result in an AttributeError (:trac:`13904`) * **Utilities** * Added support for directories to :func:`stem.util.conf.Config.load` * Changed :func:`stem.util.conf.uses_settings` to only provide a 'config' keyword arument if the decorated function would accept it * Added :func:`stem.util.str_tools.crop` * Added :func:`stem.util.proc.file_descriptors_used` * Dropped the 'get_*' prefix from most function names. Old names will still work, but are a deprecated alias. * **Interpreter** * The /info command errored for relays without contact information * **Website** * Tutorial for `hidden services `_ * Example for `writing descriptors to disk and reading them back `_ (:trac:`13774`) * Added Gentoo to our `download page `_ and handful of testing revisions for that platform (:trac:`13904`) * Tests for our tutorial examples (:trac:`11335`) * Revised `GitWeb `_ urls to work after its upgrade .. _version_1.2: Version 1.2 (June 1st, 2014) ---------------------------- `Stem release 1.2 `_ added our `interactive Tor interpreter `_ among numerous other improvements and fixes. * **Controller** * New, better :func:`~stem.connection.connect` function that deprecates :func:`~stem.connection.connect_port` and :func:`~stem.connection.connect_socket_file` * Added :func:`~stem.control.Controller.is_newnym_available` and :func:`~stem.control.Controller.get_newnym_wait` methods to the :class:`~stem.control.Controller` * Added :func:`~stem.control.Controller.get_ports` and :func:`~stem.control.Controller.get_listeners` methods to the :class:`~stem.control.Controller` * Added :func:`~stem.control.Controller.drop_guards` (:trac:`10032`, :spec:`7c6c7fc`) * Added the id attribute to :class:`~stem.response.events.ORConnEvent` (:spec:`6f2919a`) * Added `support for CONN_BW events `_ (:spec:`6f2919a`) * Added `support for CIRC_BW events `_ (:spec:`6f2919a`) * Added `support for CELL_STATS events `_ (:spec:`6f2919a`) * Added `support for TB_EMPTY events `_ (:spec:`6f2919a`) * Added `support for HS_DESC events `_ (:trac:`10807`, :spec:`a67ac4d`) * Changed :func:`~stem.control.Controller.get_network_status` and :func:`~stem.control.Controller.get_network_statuses` to provide :class:`~stem.descriptor.router_status_entry.RouterStatusEntryMicroV3` if Tor is using microdescriptors (:trac:`7646`) * The :func:`~stem.connection.connect_port` and :func:`~stem.connection.connect_socket_file` didn't properly mark the Controller it returned as being authenticated, causing event listening among other things to fail * The :func:`~stem.control.Controller.add_event_listener` method couldn't accept event types that Stem didn't already recognize * The :class:`~stem.exit_policy.ExitPolicy` class couldn't be pickled * Tor instances spawned with :func:`~stem.process.launch_tor` and :func:`~stem.process.launch_tor_with_config` could hang due to unread stdout content, we now close stdout and stderr once tor finishes bootstrapping (:trac:`9862`) * **Descriptors** * Added tarfile support to :func:`~stem.descriptor.__init__.parse_file` (:trac:`10977`) * Added microdescriptor's new identifier and identifier_type attributes (:spec:`22cda72`) * **Utilities** * Added the `stem.util.test_tools `_ module * Started vending the `stem.util.tor_tools `_ module * Added :func:`stem.util.connection.port_usage` * Added :func:`stem.util.system.files_with_suffix` * **Interpreter** * Initial release of our `interactive Tor interpreter `_! * **Website** * Added a section with `example scripts `_. * Made FAQ and other sections quite a bit more succinct. * **Version 1.2.2** (June 7th, 2014) - fixed an issue where the stem.util.conf module would fail under Python 2.6 with an AttributeError (:trac:`12223`) * **Version 1.2.1** (June 3rd, 2014) - fixed an issue where descriptor parsersing would fail under Python 3.x with a TypeError (:trac:`12185`) .. _version_1.1: Version 1.1 (October 14th, 2013) -------------------------------- `Stem release 1.1 `_ introduced `remote descriptor fetching `_, `connection resolution `_ and a myriad of smaller improvements and fixes. * **Controller** * :func:`~stem.control.Controller.get_network_status` and :func:`~stem.control.Controller.get_network_statuses` now provide v3 rather than v2 directory information (:trac:`7953`, :spec:`d2b7ebb`) * :class:`~stem.response.events.AddrMapEvent` support for the new CACHED argument (:trac:`8596`, :spec:`25b0d43`) * :func:`~stem.control.Controller.attach_stream` could encounter an undocumented 555 response (:trac:`8701`, :spec:`7286576`) * :class:`~stem.descriptor.server_descriptor.RelayDescriptor` digest validation was broken when dealing with non-unicode content with Python 3 (:trac:`8755`) * The :class:`~stem.control.Controller` use of cached content wasn't thread safe (:trac:`8607`) * Added :func:`~stem.control.Controller.get_user` method to the :class:`~stem.control.Controller` * Added :func:`~stem.control.Controller.get_pid` method to the :class:`~stem.control.Controller` * :class:`~stem.response.events.StreamEvent` didn't recognize IPv6 addresses (:trac:`9181`) * :func:`~stem.control.Controller.get_conf` mistakenly cached hidden service related options (:trac:`9792`) * Added `support for TRANSPORT_LAUNCHED events `_ (:spec:`48f6dd0`) * **Descriptors** * Added the `stem.descriptor.remote `_ module. * Added support for `TorDNSEL exit lists `_ (:trac:`8255`) * The :class:`~stem.descriptor.reader.DescriptorReader` mishandled relative paths (:trac:`8815`) * **Utilities** * Connection resolution via the :func:`~stem.util.connection.get_connections` function (:trac:`7910`) * :func:`~stem.util.system.set_process_name` inserted spaces between characters (:trac:`8631`) * :func:`~stem.util.system.pid_by_name` can now pull for all processes with a given name * :func:`~stem.util.system.call` ignored the subprocess' exit status * Added :func:`stem.util.system.name_by_pid` * Added :func:`stem.util.system.user` * Added :func:`stem.util.system.start_time` * Added :func:`stem.util.system.bsd_jail_path` * Added :func:`stem.util.system.is_tarfile` * Added :func:`stem.util.connection.is_private_address` * **Website** * Overhaul of Stem's `download page `_. This included several improvements, most notably the addition of PyPI, Ubuntu, Fedora, Slackware, and FreeBSD. * Replaced default sphinx header with a navbar menu. * Added this change log. * Added the `FAQ page `_. * Settled on a `logo `_ for Stem. * Expanded the `client usage tutorial `_ to cover SocksiPy and include an example for polling Twitter. * Subtler buttons for the frontpage (`before `_ and `after `_). * **Version 1.1.1** (November 9th, 2013) - fixed an issue where imports of stem.util.system would fail with an ImportError for pwd under Windows (:trac:`10072`) .. _version_1.0: Version 1.0 (March 26th, 2013) ------------------------------ This was the `initial release of Stem `_. * **Version 1.0.1** (March 27th, 2013) - fixed an issue where installing with Python 3.x (python3 setup.py install) resulted in a stacktrace