ngrok HTTP API client library
Project description
ngrok API client library for Python
This library wraps the ngrok HTTP API to make it easier to consume in Python.
Installation
This library is published on PyPi:
pip install ngrok-api
Support
The best place to get support using this library is through the ngrok Slack Community. If you find any bugs, please contribute by opening a new GitHub issue.
Documentation
A quickstart guide and a full API reference are included in the ngrok python API documentation.
Quickstart
Please consult the documentation for additional examples.
import ngrok
# Construct the API client
client = ngrok.Client("<API KEY>")
# List all online tunnels
for t in client.tunnels.list():
print(t)
# Create an IP policy that allows traffic from some subnets
policy = client.ip_policies.create()
for cidr in ["24.0.0.0/8", "12.0.0.0/8"]:
client.ip_policy_rules.create(cidr=cidr, ip_policy_id=policy.id, action="allow")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ngrok_api-0.19.0.tar.gz.
File metadata
- Download URL: ngrok_api-0.19.0.tar.gz
- Upload date:
- Size: 53.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b43074b611f70e1fdc93f15155e79ace86ca4975d6ab51621ed6ea6e30915229
|
|
| MD5 |
a371d357086cebc5891749ad473a3304
|
|
| BLAKE2b-256 |
b54097a2d8d65a669aaed8fcaad3c41ebb2a5d503601b07f01709e321f9ffb92
|
File details
Details for the file ngrok_api-0.19.0-py3-none-any.whl.
File metadata
- Download URL: ngrok_api-0.19.0-py3-none-any.whl
- Upload date:
- Size: 48.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
107a0cd8e8687a60723bbe0965d1ba03d4e1751014cff1e43116d79eab284e20
|
|
| MD5 |
10ebbaf366c783f40972eb43130565bd
|
|
| BLAKE2b-256 |
93956d17b3d8a3e02f1e06e3477d88205d19c7775e15d759ce04ded7b311bca5
|