Skip to main content

Torloc

Torloc runs Tor services on local ports. So you can use many different ip addresses without having to start each service manually.

For Linux, Windows and MacOS.

Installation

pip install torloc

Or download the tarball / git clone and...

python setup.py install

Usage

import torloc

# Several ports
processes = torloc.CreateMany(16)  # threads is 8 by default
ports = processes.ports            # {port: TorProcess}
while not processes.ready:         # Waiting for all ports to be ready
    pass
processes.stop(list(ports.keys())[0])
processes.stop_all()

# One port
process = torloc.TorProcess(49152)
stdout = process.stdout            # file object
stderr = process.stderr            # file object
while not process.ip:              # Waiting for the port to be ready
    pass
process.stop()

Metadata

Release files for torloc 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for torloc 1.0.1
File Size Uploaded
torloc-1.0.1.tar.gz 3.5 kB Details

Release files / torloc-1.0.1.tar.gz

Download URL torloc-1.0.1.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
18c66a7eb8e27ed1cbbadd07cc565b7e5cf618f3b05e2c6a52810e07aa55ed6e
BLAKE2b-256 checksum
How to use checksums
737ba0f155833c95f9917e96523a7658682ce3b87055a1478e8ff42e364bd583
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.9

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page