A simple way to demo Flask apps from your machine.
Project description
flask-ngrok
A simple way to demo Flask apps from your machine. Makes your Flask apps running on localhost available over the internet via the excellent ngrok tool.
Compatability
Python 3.6+ is required.
Installation
pip install flask flask-ngrok
Quickstart
- Import with
from flask_ngrok 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 flask_ngrok 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()
python flask_ngrok_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
flask-ngrok-0.0.10.tar.gz
(2.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flask-ngrok-0.0.10.tar.gz.
File metadata
- Download URL: flask-ngrok-0.0.10.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a93a8a6c4a412467643b71cba32e9d1c334e2df7fbf9a81dbeb9308f8ea37151
|
|
| MD5 |
424f82d939921e608d6cd4a8d631111c
|
|
| BLAKE2b-256 |
50139109ad40c933c71f500f238c635b772607fdc9264d79dd7aa51364950f49
|
File details
Details for the file flask_ngrok-0.0.10-py3-none-any.whl.
File metadata
- Download URL: flask_ngrok-0.0.10-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d24e1bd3252d81abcda2b6fe81c1624b472cc640707cbf688bbc8ff7c1c34753
|
|
| MD5 |
9901673463486910258eaf2838c142ca
|
|
| BLAKE2b-256 |
cd6b6e3ed815becba0c6391925d12db679eec5515f480e6f5ec63410f87dce1e
|