Quickly serve your flask apps using ngrok
Project description
Quick Flask Server
A simple way to acess your Flask apps on the internet while running it on localhost.
Compatability
Python 3.6+ is required.
Installation
pip install quick-flask-server
Quickstart
- Import with
from quick_flask_server import run_with_ngrok
- Add
run_with_ngrok(app)
to make your Flask app available upon running
# flask_ngrok_example.py
from flask import Flask
from quick_flask_server import run_with_ngrok
app = Flask(__name__)
run_with_ngrok(app) # Start ngrok when app is run
@app.route("/")
def hello():
return "Hello World!"
if __name__ == '__main__':
app.run()
Running the example:
python quick_flask_server/example.py
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
* Running on http://<random-address>.ngrok.io
* Traffic stats available on http://127.0.0.1:4040
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
quick-flask-server-1.1.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for quick_flask_server-1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a8985549adcb28d1c7fd81ac675d253e6742d754c80d952a56bb2927d0e78d2 |
|
MD5 | 683b24ed4ee1313ac2a0310d52b0db2d |
|
BLAKE2b-256 | 86c0df0256a83ce3bb3654efca9707388fc846463b3ba783f8f3219f183cd7b4 |