mirror of
https://github.com/ngrok/ngrok-api-python.git
synced 2026-06-16 16:54:33 +00:00
remove egg-info
This commit is contained in:
@@ -1,49 +0,0 @@
|
||||
Metadata-Version: 2.1
|
||||
Name: ngrok-api
|
||||
Version: 0.1.2
|
||||
Summary: ngrok HTTP API client library
|
||||
Home-page: https://github.com/ngrok/ngrok-api-python
|
||||
Author: Alan Shreve
|
||||
Author-email: alan@ngrok.com
|
||||
License: UNKNOWN
|
||||
Description: # ngrok API client library
|
||||
|
||||
This library wraps the [ngrok HTTP API](https://ngrok.com/docs/api) to make it
|
||||
easier to consume in Python.
|
||||
|
||||
## Installation
|
||||
|
||||
This library is published on [PyPi](https://pypi.org/project/ngrok-api/)
|
||||
|
||||
pip install ngrok-api
|
||||
|
||||
## Documentation
|
||||
|
||||
A quickstart guide and a full API reference are included in the [ngrok python API documentation](https://python-api.docs.ngrok.com)
|
||||
|
||||
## Quickstart
|
||||
|
||||
Please consult the [documentation](https://python-api.docs.ngrok.com) for additional examples.
|
||||
|
||||
import ngrok
|
||||
|
||||
# construct the api client
|
||||
ng = ngrok.Client("<API KEY>")
|
||||
|
||||
# list all online tunnels
|
||||
for t in ng.tunnels():
|
||||
print(t)
|
||||
|
||||
# create an ip policy the allows traffic from some subnets
|
||||
policy = ng.ip_policies.create(action="allow")
|
||||
for cidr in ["24.0.0.0/8", "12.0.0.0/8"]:
|
||||
ng.ip_policy_rules.create(cidr=cidr, ip_policy_id=policy.id)
|
||||
|
||||
Platform: UNKNOWN
|
||||
Classifier: Programming Language :: Python :: 3
|
||||
Classifier: License :: OSI Approved :: MIT License
|
||||
Classifier: Operating System :: OS Independent
|
||||
Requires-Python: >=3.8
|
||||
Description-Content-Type: text/markdown
|
||||
Provides-Extra: tox
|
||||
Provides-Extra: doc
|
||||
@@ -1,16 +0,0 @@
|
||||
LICENSE
|
||||
README.md
|
||||
pyproject.toml
|
||||
setup.py
|
||||
ngrok/__init__.py
|
||||
ngrok/api_client.py
|
||||
ngrok/client.py
|
||||
ngrok/error.py
|
||||
ngrok/iterator.py
|
||||
ngrok/objects.py
|
||||
ngrok/services.py
|
||||
ngrok_api.egg-info/PKG-INFO
|
||||
ngrok_api.egg-info/SOURCES.txt
|
||||
ngrok_api.egg-info/dependency_links.txt
|
||||
ngrok_api.egg-info/requires.txt
|
||||
ngrok_api.egg-info/top_level.txt
|
||||
@@ -1 +0,0 @@
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
requests==2.25.1
|
||||
|
||||
[doc]
|
||||
black==21.5b1
|
||||
furo==2021.4.11b34
|
||||
sphinx==3.5.4
|
||||
sphinx-autodoc-typehints==1.12.0
|
||||
sphinx-readable-theme==1.3.0
|
||||
|
||||
[tox]
|
||||
tox==3.23.0
|
||||
@@ -1 +0,0 @@
|
||||
ngrok
|
||||
Reference in New Issue
Block a user