Configurable ngrok tunneling for Flask apps.
Project description
Flask-Tunnel
A minor improvement on the flask-ngrok tool for tunneling Flask web apps to public URLs. Added support for ngrok configs, such as authentication, custom domains, and logging; can run on Jupyter clients such as Google Colab.
Installation
pip install flask-tunnel
Example
from flask import Flask
from flask_tunnel import FlaskTunnel
app = Flask(__name__)
FlaskTunnel(app, auth="#####", subdomain="flask-tunnel")
@app.route("/")
def hello():
return "Hello World"
app.run(port=5000)
For details on using the config parameter of FlaskTunnel, see pyngrok's documentation on PyngrokConfig.
License
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-tunnel-0.1.5.tar.gz
(2.6 kB
view details)
File details
Details for the file flask-tunnel-0.1.5.tar.gz.
File metadata
- Download URL: flask-tunnel-0.1.5.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb185a4cd2d312cea0cc9aa2a1708f1019cd4eae77727ad5b659af8596bcd786
|
|
| MD5 |
d48e60e78d5cd8d0d39e14f2c0659225
|
|
| BLAKE2b-256 |
2cade3c40cf1df0c20ae03b0b1235ae9759cd19fcd3d0643ff0feaad197d3241
|