Skip to main content

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

  1. Import with from flask_ngrok import run_with_ngrok
  2. 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 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


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-0.0.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

quick_flask_server-0.0.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file quick-flask-server-0.0.1.tar.gz.

File metadata

  • Download URL: quick-flask-server-0.0.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for quick-flask-server-0.0.1.tar.gz
Algorithm Hash digest
SHA256 3e693481c26f6b3918f253e0d430947c88d9801df9734cc9298e8fd2af811ea9
MD5 c52e901803fb70dd15b3435d65c06180
BLAKE2b-256 dc15ce8f17fcf1d1f449d1466ac1302a762c874025e3ce8423a3be2c473169ef

See more details on using hashes here.

File details

Details for the file quick_flask_server-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: quick_flask_server-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for quick_flask_server-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 100bc95a0693036341e7a506cd9a536c6e5bbefc4dfc9476d52932d4db949a4f
MD5 c358058f20245def6ff2fbabc8a2a937
BLAKE2b-256 efbeeac98a24f19700ee55572df5568e273be0bf94aa46c2d3e1ff49310fe5d5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page