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
# 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
You might also see this,
You can copy the ngrok URL also from here.
As shown in the above image ngrok has a web-interface which can be accessed at localhost:4040
Here is a sample image of the web interface,
Release files for quick-flask-server 1.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| quick-flask-server-1.1.2.tar.gz | 3.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| quick_flask_server-1.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.3 kB
Release files / quick-flask-server-1.1.2.tar.gz
| Download URL | quick-flask-server-1.1.2.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
decb1f3ea670fa8ef3a31237d7bf94f1badf9b1f1d643b9b7482231a0af47420
|
|
BLAKE2b-256 checksum How to use checksums |
3f9f1bdaded81c575bb72517bbd771f9338f5dd93a05c21975ff91551a718880
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
|
Release files / quick_flask_server-1.1.2-py3-none-any.whl
| Download URL | quick_flask_server-1.1.2-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8180cf90dfd094638eaf7af558c8616572595f1e307ccbe1c3ac5d41928463ea
|
|
BLAKE2b-256 checksum How to use checksums |
946e594cc028afd01ccfd554efe2b623e870b89a9577af7b8d138cfd3a9fb774
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
|