API === Controller ---------- * **Core** * `stem.control `_ - **Controller used to talk with Tor**. * `stem.connection `_ - Connection and authentication to the Tor control socket. * `stem.socket `_ - Low level control socket used to talk with Tor. * `stem.process `_ - Launcher for the Tor process. * `stem.response `_ - Messages that Tor may provide the controller. * **Types** * `stem.exit_policy `_ - Relay policy for the destinations it will or won't allow traffic to. * `stem.manual `_ - Information available about Tor from `its manual `_. * `stem.version `_ - Tor versions that can be compared to determine Tor's capabilities. Descriptors ----------- To read descriptors from disk use :func:`~stem.descriptor.__init__.parse_file` for individual files and `stem.descriptor.reader `_ for batches. You can also use `stem.descriptor.remote `_ to download descriptors remotely like Tor does. * **Classes** * `stem.descriptor `_ - Base class for descriptors. * `stem.descriptor.server_descriptor `_ - Relay and bridge server descriptors. * `stem.descriptor.extrainfo_descriptor `_ - Relay and bridge extrainfo descriptors. * `stem.descriptor.microdescriptor `_ - Minimalistic counterpart for server descriptors. * `stem.descriptor.networkstatus `_ - Network status documents which make up the Tor consensus. * `stem.descriptor.router_status_entry `_ - Relay entries within a network status document. * `stem.descriptor.hidden_service `_ - Descriptors generated for hidden services. * `stem.descriptor.bandwidth_file `_ - Bandwidth authority metrics. * `stem.descriptor.tordnsel `_ - `TorDNSEL `_ exit lists. * `stem.descriptor.certificate `_ - `Ed25519 certificates `_. * `stem.directory `_ - Directory authority and fallback directory information. * `stem.descriptor.reader `_ - Reads and parses descriptor files from disk. * `stem.descriptor.remote `_ - Downloads descriptors from directory mirrors and authorities. * `stem.descriptor.collector `_ - Downloads past descriptors from `CollecTor `_. * `stem.descriptor.export `_ - Exports descriptors to other formats. Utilities --------- * `stem.util.conf `_ - Configuration file handling. * `stem.util.connection `_ - Connection and IP related utilities. * `stem.util.enum `_ - Enumeration class. * `stem.util.proc `_ - Resource and connection usage via proc contents. * `stem.util.str_tools `_ - String utilities. * `stem.util.system `_ - Tools related to the local system. * `stem.util.term `_ - Tools for interacting with the terminal. * `stem.util.test_tools `_ - Static analysis checks and tools to help with test runs. * `stem.util.tor_tools `_ - Miscellaneous toolkit for working with tor.