An async Webex SDK for Python using httpx and JWT.
Project description
WebexPythonSDK-async
Basic functionalities are derived from WebexPythonSDK, but modified to use asynchronous HTTP calls.
Examples
from webexpythonsdk_async import AsyncWebexAPI
import asyncio
token = "YOUR_TOKEN"
persion_email = "YOUR_EMAIL"
api = AsyncWebexAPI(access_token=token)
async def main():
async for webhook in api.webhooks.list():
print(f"type: {type(webhook)}, {webhook}")
resp = await api.messages.create(toPersonEmail=persion_email, text="Hello World")
print(f"type: {type(resp)}, {resp}")
if __name__ == "__main__":
asyncio.run(main())
Installation
python -m pip install webexpythonsdk-async
Todo
- Support synchronous calls.
- Add more examples.
- Remove Python 2 style code.
- Add type annotations.
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 webexpythonsdk_async-0.1.3.tar.gz.
File metadata
- Download URL: webexpythonsdk_async-0.1.3.tar.gz
- Upload date:
- Size: 62.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c04940c528cf3697aaf0dc2c5356313bb11480f2477883614084235127301486
|
|
| MD5 |
7fc0f018b073a90fabaeb3e756011606
|
|
| BLAKE2b-256 |
d8f0b2b4a929e22f28815cac96b281d4dbcfb28c4217c88dfdd9ea38411d6a0d
|
File details
Details for the file webexpythonsdk_async-0.1.3-py3-none-any.whl.
File metadata
- Download URL: webexpythonsdk_async-0.1.3-py3-none-any.whl
- Upload date:
- Size: 104.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8597201ad04467d02d656748d1d68f3f650ecdd8946f0a2efefc2b178350cf1
|
|
| MD5 |
b25fba2707525a7bc98c8861ced6c35c
|
|
| BLAKE2b-256 |
e6c1821f7de5021e61bd1e8c490ff589501a6ba7832e9add088d65722ffff87b
|