Project description
flask-tor
Run your flask website in tor using flask_tor.It doesn’t interfere with other tor processes on your computer, so you can use the Tor Browser or the system tor on their own.
Disclaimer:-
Use it only for educational purpose.
Features
No need root permission
Multiple instances
Compatability
Python 3.6+ is required.
Installation
pip install flask-tor
Quickstart
Import with from flask_tor import run_with_tor
.
call function run_with_tor()
, store as variable and give it as port argument in flask app.
# flask_tor_example.py
from flask import Flask
from flask_tor import run_with_tor
app = Flask ( __name__ )
port = run_with_tor ()
@app . route ( "/" )
def hello ():
return "Hello World!"
if __name__ == '__main__' :
app . run ( port = port )
Running the example:
python flask_tor_example.py
connecting_to_tor: 100 % - Done
* Running on <random_adress>.onion
* Serving Flask app "main"
* Debug mode: off
* Running on http://127.0.0.1:<port>/
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages .
Source Distribution
Built Distribution
File details
Details for the file flask-tor-1.0.3.tar.gz
.
File metadata
Download URL:
flask-tor-1.0.3.tar.gz
Upload date: May 26, 2022
Size: 11.0 kB
Tags: Source
Uploaded using Trusted Publishing? No
Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Hashes for flask-tor-1.0.3.tar.gz
Algorithm
Hash digest
SHA256
3ebd9601a88431ac221e0ef8c73569c9c92a5cac6fba6923b57f1dbef4443cda
Copy
MD5
729175db311ae80d53c77d4d89221bf7
Copy
BLAKE2b-256
70d8a28fcb0909786fc99503a2c22d68018ef42a291d1efbf200973ac44eb82b
Copy
See more details on using hashes here.
File details
Details for the file flask_tor-1.0.3-py3-none-any.whl
.
File metadata
Download URL:
flask_tor-1.0.3-py3-none-any.whl
Upload date: May 26, 2022
Size: 16.9 kB
Tags: Python 3
Uploaded using Trusted Publishing? No
Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Hashes for flask_tor-1.0.3-py3-none-any.whl
Algorithm
Hash digest
SHA256
53aaa1e1c85e4b1bd8a5de9e5d408a0905ee8298fc207a65e5401f0ebf0fbec2
Copy
MD5
790752a7d56c52309ecc20c5a4401602
Copy
BLAKE2b-256
a81f38386944d90d7919b9697f5a3e7caf57d5a7b292362b1e2c10953b3fda43
Copy
See more details on using hashes here.