Skip to content

Wolfiej-k/flask-tunnel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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 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

MIT

About

Configurable ngrok tunneling for Flask apps.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages