flask-tor-1.0.3
توضیحات
A simple way to run Flask apps on tor from your machine.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | flask-tor-1.0.3 |
| نام | flask-tor |
| نسخه کتابخانه | 1.0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Jak Bin |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/jakbin/flask-tor |
| آدرس اینترنتی | https://pypi.org/project/flask-tor/ |
| مجوز | MIT License |
# 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.
[](https://badge.fury.io/py/flask-tor)
[](https://pepy.tech/project/flask-tor)
[](https://pepy.tech/project/flask-tor)

### Disclaimer:-
Use it only for educational purpose.
## Features
- No need root permission
- Multiple instances
## Compatability
Python 3.6+ is required.
## Installation
```bash
pip install flask-tor
```
## Quickstart
1. Import with ```from flask_tor import run_with_tor``` .
2. call function `run_with_tor()` , store as variable and give it as port argument in flask app.
```python
# 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:
```bash
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>/
```
### Credit :- [onionshare](https://github.com/onionshare/onionshare)
نیازمندی
| مقدار | نام |
|---|---|
| - | Flask |
| - | stem |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3 | Python |
نحوه نصب
نصب پکیج whl flask-tor-1.0.3:
pip install flask-tor-1.0.3.whl
نصب پکیج tar.gz flask-tor-1.0.3:
pip install flask-tor-1.0.3.tar.gz