flask-cloudflared-0.0.9
توضیحات
Start a TryCloudflare Tunnel from your flask app.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | flask-cloudflared-0.0.9 |
| نام | flask-cloudflared |
| نسخه کتابخانه | 0.0.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Ralf Rademacher |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/UWUplus/flask-cloudflared |
| آدرس اینترنتی | https://pypi.org/project/flask-cloudflared/ |
| مجوز | - |
# flask-cloudflared
 [](https://colab.research.google.com/github/UWUplus/flask-cloudflared/blob/main/examples/flask_cloudflared_example.ipynb)
Start a [TryCloudflare](https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/trycloudflare) tunnel to your flask app right from code.
This requires at least `Python 3.6`
## Behavior
The Flask app will run on port 5000 by default and start the Cloudflared metrics page on a random port between 8100 and 9000.
This can be changed by passing the `port` and `metrics_port` arguments to the `app.run()` function after using the `run_with_cloudflared` decorator.
### Users on Apple Silicon
Because [cloudflared](https://github.com/cloudflare/cloudflared) doesn't support Darwin arm64 natively yet, Rosetta 2 is used to create a compatibility layer. If you don't have Rosetta 2 installed yet, please check [Apple's support page](https://support.apple.com/en-us/HT211861).
## Acknowledgements
This project is based on [flask-ngrok](https://github.com/gstaff/flask-ngrok).
نیازمندی
| مقدار | نام |
|---|---|
| >=0.8 | Flask |
| - | requests |
نحوه نصب
نصب پکیج whl flask-cloudflared-0.0.9:
pip install flask-cloudflared-0.0.9.whl
نصب پکیج tar.gz flask-cloudflared-0.0.9:
pip install flask-cloudflared-0.0.9.tar.gz