Name | gundi-client-v2 JSON |
Version |
2.3.8
JSON |
| download |
home_page | None |
Summary | An async client for Gundi's API |
upload_time | 2024-10-15 00:32:12 |
maintainer | None |
docs_url | None |
author | Chris Doehring |
requires_python | <4.0,>=3.7 |
license | Apache-2.0 |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Gundi Client
## Introduction
[Gundi](https://www.earthranger.com/), 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-v2
```
## Usage
```
from gundi_client_v2 import GundiClient
import httpx
# You can use it as an async context-managed client
async with GundiClient() as client:
try:
connection = await client.get_connection_details(
integration_id="some-integration-uuid"
)
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:
for integration in connection.destinations:
...
...
# Or create an instance and close the client explicitly later
client = GundiClient()
try:
response = await client.get_connection_details(
integration_id="some-integration-uuid"
)
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:
for integration in connection.destinations:
...
...
await client.close() # Close the session used to send requests to Gundi
```
Raw data
{
"_id": null,
"home_page": null,
"name": "gundi-client-v2",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.7",
"maintainer_email": null,
"keywords": null,
"author": "Chris Doehring",
"author_email": "chrisdo@earthranger.com",
"download_url": "https://files.pythonhosted.org/packages/a1/3b/5a359c7dcde22b58ad4fdecf5a0f69898e3deb8a75a4b39fc2dcdccf3cbe/gundi_client_v2-2.3.8.tar.gz",
"platform": null,
"description": "# Gundi Client\n## Introduction\n[Gundi](https://www.earthranger.com/), a.k.a \"The Portal\" is a platform to manage integrations.\nThe gundi-client is an async python client to interact with Gundi's REST API.\n\n## Installation\n```\npip install gundi-client-v2\n```\n\n## Usage\n\n```\nfrom gundi_client_v2 import GundiClient\nimport httpx\n\n# You can use it as an async context-managed client\nasync with GundiClient() as client:\n try:\n connection = await client.get_connection_details(\n integration_id=\"some-integration-uuid\"\n )\n except httpx.RequestError as e:\n logger.exception(\"Request Error\") \n ...\n except httpx.TimeoutException as e:\n logger.exception(\"Request timed out\")\n ...\n except httpx.HTTPStatusError as e:\n logger.exception(\"Response returned error\")\n else:\n for integration in connection.destinations: \n ...\n ...\n\n# Or create an instance and close the client explicitly later\nclient = GundiClient()\ntry:\n response = await client.get_connection_details(\n integration_id=\"some-integration-uuid\"\n )\n except httpx.RequestError as e:\n logger.exception(\"Request Error\") \n ...\n except httpx.TimeoutException as e:\n logger.exception(\"Request timed out\")\n ...\n except httpx.HTTPStatusError as e:\n logger.exception(\"Response returned error\")\n else:\n for integration in connection.destinations:\n ...\n ...\n await client.close() # Close the session used to send requests to Gundi\n```\n\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "An async client for Gundi's API",
"version": "2.3.8",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "b30c385fd14365b9a1233b61fe970727dff95d3b837ab113e3dbc493f975de08",
"md5": "677598ebb5fc26babde3eb122647f2c9",
"sha256": "653ce8768ef53c54725b5ff011d1df0d2ccc4adf10195965095ee872941adc3e"
},
"downloads": -1,
"filename": "gundi_client_v2-2.3.8-py3-none-any.whl",
"has_sig": false,
"md5_digest": "677598ebb5fc26babde3eb122647f2c9",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.7",
"size": 5460,
"upload_time": "2024-10-15T00:32:11",
"upload_time_iso_8601": "2024-10-15T00:32:11.535167Z",
"url": "https://files.pythonhosted.org/packages/b3/0c/385fd14365b9a1233b61fe970727dff95d3b837ab113e3dbc493f975de08/gundi_client_v2-2.3.8-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a13b5a359c7dcde22b58ad4fdecf5a0f69898e3deb8a75a4b39fc2dcdccf3cbe",
"md5": "a62f67fe979e80d32db4235f45acfe0a",
"sha256": "0556867c87822194058dc01c8735f58d86039d1c71540b210f9c32d63928cf20"
},
"downloads": -1,
"filename": "gundi_client_v2-2.3.8.tar.gz",
"has_sig": false,
"md5_digest": "a62f67fe979e80d32db4235f45acfe0a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.7",
"size": 4413,
"upload_time": "2024-10-15T00:32:12",
"upload_time_iso_8601": "2024-10-15T00:32:12.692779Z",
"url": "https://files.pythonhosted.org/packages/a1/3b/5a359c7dcde22b58ad4fdecf5a0f69898e3deb8a75a4b39fc2dcdccf3cbe/gundi_client_v2-2.3.8.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-15 00:32:12",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "gundi-client-v2"
}