pyngrok
A Python wrapper for ngrok
Decision gist · record as of 2026-08-14
Yes. pyngrok is mature, actively maintained, has no known vulnerabilities, and installs with minimal friction. It solves a real problem—making ngrok accessible from Python without manual binary management—and is well-suited for both development and production use. The single dependency (PyYAML) is lightweight and widely trusted.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- The ngrok binary is downloaded and managed automatically on first use; internet connectivity is required for tunnel operation.
- Low friction: pure Python wheel with a single runtime dependency (PyYAML).
- The package is actively maintained with a recent release and no known vulnerabilities.
License · maintenance · safety
MIT (permissive) — MIT license permits unrestricted use, modification, and distribution in both open-source and commercial projects.
last release 2026-04-29 (107 days) · last repo commit 2026-06-29 · 464 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,833,876 downloads/mo, #2,872 on PyPI
Alternatives
Verify before relying
pip install pyngrok
from pyngrok import ngrok
# Open a HTTP tunnel on the default port 80
http_tunnel = ngrok.connect()
print(http_tunnel.public_url)- Whether the ngrok binary download happens at install time or at first tunnel creation.
- Storage location and size of the downloaded ngrok binary on disk.
- Whether PyYAML is used for ngrok config file parsing or for other internal purposes.
What it is and what it does
pyngrok is a Python wrapper around ngrok, a reverse proxy that creates secure tunnels from public URLs to services running on localhost. It manages the ngrok binary automatically, so you don't need to download or configure it separately. You can use it either through a Python API (calling `ngrok.connect()` to open tunnels and get public URLs) or directly from the command line (the ngrok binary is placed on your PATH).
The package supports both ngrok v2 and v3 APIs, handles tunnel configuration through Python kwargs or ngrok config files, and provides access to ngrok's local agent API for advanced operations like reserving domains or creating cloud endpoints. It's designed for rapid development workflows—testing webhooks, demoing local websites, enabling SSH access—as well as production use cases like traffic policies and load balancing.
Use it for
- Test webhook integrations locally by exposing your development server to external services without deploying.
- Demo a local web application to stakeholders or clients by sharing a public ngrok URL.
- Enable SSH or other protocol access to a machine behind a firewall or NAT.
- Set up end-to-end testing that requires external services to reach your test server.
- Create temporary public ingress to internal networks or devices for development or debugging.
- Build production APIs with traffic policies, OAuth, or load balancing using ngrok's cloud endpoints.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
pyngrok is mature, actively maintained, has no known vulnerabilities, and installs with minimal friction. It solves a real problem—making ngrok accessible from Python without manual binary management—and is well-suited for both development and production use. The single dependency (PyYAML) is lightweight and widely trusted.
Install
pyngrok on PyPI
Before you install
Low friction: pure Python wheel with a single runtime dependency (PyYAML). The package is actively maintained with a recent release and no known vulnerabilities.
The ngrok binary is downloaded and managed automatically on first use; internet connectivity is required for tunnel operation.
License in practice
MIT license permits unrestricted use, modification, and distribution in both open-source and commercial projects.
Quickstart
pip install pyngrok
from pyngrok import ngrok
# Open a HTTP tunnel on the default port 80
http_tunnel = ngrok.connect()
print(http_tunnel.public_url)
Verify before relying
- Whether the ngrok binary download happens at install time or at first tunnel creation.
- Storage location and size of the downloaded ngrok binary on disk.
- Whether PyYAML is used for ngrok config file parsing or for other internal purposes.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagePyYAML |
| Maintenance | Actively maintained 107 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,833,876 / month, #2,872 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 6 - MatureEnvironment :: ConsoleEnvironment :: Web EnvironmentIntended Audience :: DevelopersOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: OS IndependentOperating System :: POSIXOperating System :: POSIX :: BSD :: FreeBSDOperating System :: POSIX :: LinuxOperating System :: UnixProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Database :: Database Engines/ServersTopic :: Internet :: Proxy ServersTopic :: Internet :: WWW/HTTP :: Dynamic ContentTopic :: Internet :: WWW/HTTP :: HTTP ServersTopic :: Software Development :: Build ToolsTopic :: Software Development :: Libraries :: Python ModulesTopic :: Software Development :: Testing |
Evidence: pyngrok-8.1.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “ngrok python wrapper”
- pyngrokpyngrok wraps the ngrok reverse-proxy binary and exposes it through a…
- ngrokExposes ngrok's secure gateway service to Python applications,…
- flask-cloudflaredStarts a Cloudflare TryCloudflare tunnel for a Flask app, exposing it…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also flask-cloudflared · ngrok · prime-tunnel · sshtunnel · pproxy · proxy.py · sshuttle · PySocks · mitmproxy · requests-ntlm2