The complete ngrok agent for Python: programmatic tunnels for ingress, inspection, webhooks, demos, and APIs
https://pyngrok.readthedocs.io β HEALTH ? 94 / Healthy
// readme
pyngrok gives Python the complete ngrok agent, with programmatic tunnels for
ingress, inspection, webhooks, demos, and APIs. ngrok is a reverse proxy that opens secure
tunnels from public URLs to localhost, and because pyngrok runs the real agent, you get everything it offers, from
traffic policies and OAuth to its web inspector and request replay, all callable from Python.
Installation
pyngrok is available on PyPI and can be installed
using pip:
pip install pyngrok
or conda:
conda install -c conda-forge pyngrok
Thatβs it! pyngrok is now available as a package to your Python projects, and ngrok is now available from
the command line.
Basic Usage
Open a Tunnel
To open a tunnel, use the connect method,
which returns a NgrokTunnel, and this
returned object has a reference to the public URL generated by ngrok in itsβ¦