Skip to main content

A Python tool for running multiple Tor services on local ports

Project description


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

For Linux and Windows.


pip install torloc

Or download the tarball / git clone and...

python install

Or include torloc directory in your project (PySocks required).

Or simply copy the torloc directory to your Python's lib/site-packages directory (PySocks required).


import torloc

ports_data = torloc.start(6, threads=3)
for port in ports_data:
Output example
STARTING: 49152... 
STARTING: 49153... 
STARTING: 49154... 
READY: 49152 (
STARTING: 49155... 
READY: 49153 (
STARTING: 49156... 
READY: 49154 (
STARTING: 49157... 
READY: 49155 (
READY: 49156 (
READY: 49157 (

Stooping 49152, 49153, 49154, 49155, 49156, 491537 ... OK

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for torloc, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size torloc-1.0.0-py3-none-any.whl (10.4 MB) File type Wheel Python version py3 Upload date Hashes View
Filename, size torloc-1.0.0.tar.gz (10.4 MB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page