docktor
manage and run multiple tor containers
how to…
…install
curl -sSL https://raw.githubusercontent.com/smthnspcl/docktor/master/install.sh | bash
# or
git clone https://github.com/smthnspcl/docktor
cd docktor
sudo python3 setup.py install
…use from cli
$docktor --help
usage: docktor [-h] [--host HOST] [--port PORT] [-i INSTANCES]
[--control-password CONTROL_PASSWORD]
optional arguments:
-h, --help show this help message and exit
--host HOST
--port PORT
-i INSTANCES, --instances INSTANCES
--control-password CONTROL_PASSWORD
ex:
$docktor -i 2
# runs 2 tor containers
$curl http://127.0.0.1:1337/api/instances
# should ouput something like this
[
{
"id":"64b0cd480f6a9e1653d10556cf6c99138a2607b18f52415b0b60c6b7f75cdc4e",
"short_id":"64b0cd480f",
"name":"docktor-0",
"status":"running",
"ports":[
{"8118\/tcp":"33038"},
{"8123\/tcp":"33037"},
{"9050\/tcp":"33036"},
{"9051\/tcp":"33035"}
]
},
{
"id":"5c0955a0f20c2b92e8bc2d3adcb663f8142a3878f5ba83657462c0bd4d430ff8",
"short_id":"5c0955a0f2",
"name":"docktor-1",
"status":"running",
"ports":[
{"8118\/tcp":"33042"},
{"8123\/tcp":"33041"},
{"9050\/tcp":"33040"},
{"9051\/tcp":"33039"}
]
}
]
# renew ip addresses for all containers
curl http://127.0.0.1:1337/api/renew
# renew ip address for one container
curl http://127.0.0.1:1337/api/renew/docktor-0
…use from code
from docktor import Manager
manager = Manager(2)
manager.start()
manager.wait_until_ready()
print(manager.get_containers())
manager.stop()
notice:
if your code crashes you might need to stop the containers by hand
Metadata
Release files for docktor 0.42
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| docktor-0.42.tar.gz | 7.7 kB | Without provenance | Details for docktor-0.42.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| docktor-0.42-py3.8.egg | Legacy Egg format | - | - | Details for docktor-0.42-py3.8.egg |
| docktor-0.42-py3-none-any.whl | Python 3 | none | any | Details for docktor-0.42-py3-none-any.whl |
Total release size: 23.6 kB
Release files / docktor-0.42.tar.gz
| Download URL | docktor-0.42.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a6017ae53e069f1ff1bb8b43de4e04e3055ce3397d714aa4e7873db612478c38
|
|
BLAKE2b-256 checksum How to use checksums |
dfa8f29155d1094832c75720dbd70056df98c8da5d0624eb9b5bb9911e00a545
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
|
Release files / docktor-0.42-py3.8.egg
| Download URL | docktor-0.42-py3.8.egg |
|---|---|
| Size | 6.9 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
bdf2a942efbc5fc5aa9df2209db5e7a30be0d6f0334f4225a946185bf7077c03
|
|
BLAKE2b-256 checksum How to use checksums |
99846301d0d47e32eacbd8a00859ec6028e7a666b01669a430868012ba89639c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
|
Release files / docktor-0.42-py3-none-any.whl
| Download URL | docktor-0.42-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2659df663c314d028a3e1e04e1f5644ea1736c9abcddea9bedaf51b21babe3e3
|
|
BLAKE2b-256 checksum How to use checksums |
200025e6f5682c6abcaaab10e8e3ec0bdb67748c78ceb87bee43b2fa9ea0889c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
|
Security for docktor 0.42
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.