Skip to main content

An offshoot of flask-ngrok for demo Flask apps using ngrok.

Project description

flask-ngrok-CART

An offshoot of flask-ngrok (see also flask-ngrok2, flask-ngrok3) for making demo Flask apps from a personal machine.

Installation

pip install ngrok-flask-cart
  • app is the Flask app
  • domain is the static domain provided by ngrok
  • auth_token is the authentication token provided by ngrok

Example

from flask import Flask
from ngrok_flask_cart import run_with_ngrok

app = Flask(__name__)
run_with_ngrok(app=app, domain='--domain=<domain here>', auth_token='<token here>')

@app.route("/")
def hello():
    return "Hello World!"

if __name__ == '__main__':
    app.run()

will run

ngrok                                                           (Ctrl+C to quit)

Session Status                online                                            
Account                       <your account> (Plan: Free)                              
Version                       3.6.0                                             
Region                        United States (us)                                
Latency                       -                                                 
Web Interface                 http://127.0.0.1:4040                             
Forwarding                    <domain here> -> 
                                                                                
Connections                   ttl     opn     rt1     rt5     p50     p90       
                              0       0       0.00    0.00    0.00    0.00     * Running on http://<your domain>                       
 * 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

ngrok-flask-cart-0.0.7.tar.gz (3.6 kB view details)

Uploaded Source

File details

Details for the file ngrok-flask-cart-0.0.7.tar.gz.

File metadata

  • Download URL: ngrok-flask-cart-0.0.7.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.12

File hashes

Hashes for ngrok-flask-cart-0.0.7.tar.gz
Algorithm Hash digest
SHA256 623a160f489e5f427ad0a280a5111f218b4f6810f26919219350b43d0c54a52b
MD5 62e2b91754359e61a9c9a2ed954f0658
BLAKE2b-256 c471565e90edd9f9f12a395f4702b1643a6308a0303c97648748f31cd8536112

See more details on using hashes here.

Supported by

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