Skip to main content

Start a TryCloudflare Tunnel from your flask app.

Project description

flask-cloudflared

PyPI - Downloads Run it button

Start a 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 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.

Acknowledgements

This project is based on flask-ngrok.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

flask_cloudflared-0.0.13-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file flask_cloudflared-0.0.13-py3-none-any.whl.

File metadata

File hashes

Hashes for flask_cloudflared-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 a24167386cb555c84a2c8e85888c4b732e914068b5272cdbe4cf33ce66692158
MD5 c26e6847dac691349fc03953644f257e
BLAKE2b-256 5f9f312100cc4d2b5447b065b898f718a8a6d6fcd3a13810647810cf3bdf2a79

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page