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 Distribution

flask_cloudflared-0.0.12.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

flask_cloudflared-0.0.12-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file flask_cloudflared-0.0.12.tar.gz.

File metadata

  • Download URL: flask_cloudflared-0.0.12.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/22.3.0 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.8

File hashes

Hashes for flask_cloudflared-0.0.12.tar.gz
Algorithm Hash digest
SHA256 96eb0cb51dd66c0c377679b7431a37dd96b1e258157419c78386691b5ba3a32a
MD5 e1192c26898d3f8289dd89a05a26b8c4
BLAKE2b-256 d29ed33a8b5b287e22b06d8545790bfdf890c95d7ac55d729db8c42e3e9c7e96

See more details on using hashes here.

File details

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

File metadata

  • Download URL: flask_cloudflared-0.0.12-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/22.3.0 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.8

File hashes

Hashes for flask_cloudflared-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 a233549f98711775ed3e78c3b400d5b8871f769fa37d20300038beb4297cded8
MD5 df5e4b1628339c0a626e1351ad120d98
BLAKE2b-256 002bab0a589aa8df52036d54daed73059b9438e5b0a5ddc06803f2c5f461ea7f

See more details on using hashes here.

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