Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ngrok_api-0.19.0.tar.gz (53.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ngrok_api-0.19.0-py3-none-any.whl (48.0 kB view details)

Uploaded Python 3

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

Hashes for ngrok_api-0.19.0.tar.gz
Algorithm Hash digest
SHA256 b43074b611f70e1fdc93f15155e79ace86ca4975d6ab51621ed6ea6e30915229
MD5 a371d357086cebc5891749ad473a3304
BLAKE2b-256 b54097a2d8d65a669aaed8fcaad3c41ebb2a5d503601b07f01709e321f9ffb92

See more details on using hashes here.

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

Hashes for ngrok_api-0.19.0-py3-none-any.whl
Algorithm Hash digest
SHA256 107a0cd8e8687a60723bbe0965d1ba03d4e1751014cff1e43116d79eab284e20
MD5 10ebbaf366c783f40972eb43130565bd
BLAKE2b-256 93956d17b3d8a3e02f1e06e3477d88205d19c7775e15d759ce04ded7b311bca5

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