Gundi Client
Introduction
Gundi, a.k.a "The Portal" is a platform to manage integrations. The gundi-client is an async python client to interact with Gundi's REST API.
Installation
pip install gundi-client
Usage
from gundi_client import PortalApi
import httpx
# You can use it as an async context-managed client
async with PortalApi() as portal:
try:
response = await portal.get_outbound_integration_list(
session=session, inbound_id=str(inbound_id), device_id=str(device_id)
)
except httpx.RequestError as e:
logger.exception("Request Error")
...
except httpx.TimeoutException as e:
logger.exception("Request timed out")
...
except httpx.HTTPStatusError as e:
logger.exception("Response returned error")
else:
# response contains a list configs as dicts
for integration in response:
...
...
# Or create an instance and close the client explicitly later
portal = PortalApi()
try:
response = await portal.get_outbound_integration_list(
session=session, inbound_id=str(inbound_id), device_id=str(device_id)
)
except httpx.RequestError as e:
logger.exception("Request Error")
...
except httpx.TimeoutException as e:
logger.exception("Request timed out")
...
except httpx.HTTPStatusError as e:
logger.exception("Response returned error")
else:
# response contains a list configs as dicts
for integration in response:
...
...
await portal.close() # Close the session used to send requests to ER API
Metadata
Release files for gundi-client 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gundi_client-1.1.0.tar.gz | 8.4 kB | Without provenance | Details for gundi_client-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gundi_client-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for gundi_client-1.1.0-py3-none-any.whl |
Total release size: 18.0 kB
Release files / gundi_client-1.1.0.tar.gz
| Download URL | gundi_client-1.1.0.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b2db5b0e3f0e08cf0bb78ae79d2a47dc7e93fb3d22a95c42d31efc361a44986c
|
|
BLAKE2b-256 checksum How to use checksums |
c844f829d88520c424660652eec9bf7f370c678cb4bd070e115ca2e2c0cea7ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.10
|
Release files / gundi_client-1.1.0-py3-none-any.whl
| Download URL | gundi_client-1.1.0-py3-none-any.whl |
|---|---|
| Size | 9.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6b04fd57e2a119f7428e4cb2f78caaa5e2085533c92b0f4415cb54672e443f14
|
|
BLAKE2b-256 checksum How to use checksums |
e15302633103c8054fc804adddf5c19dc6067604a3032ef390c4003775a0b45b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.10
|
Security for gundi-client 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.