Skip to main content

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"

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="raihe@cisco.com", 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


Download files

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

Source Distribution

webexpythonsdk_async-0.1.2.tar.gz (62.3 kB view details)

Uploaded Source

Built Distribution

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

webexpythonsdk_async-0.1.2-py3-none-any.whl (104.9 kB view details)

Uploaded Python 3

File details

Details for the file webexpythonsdk_async-0.1.2.tar.gz.

File metadata

  • Download URL: webexpythonsdk_async-0.1.2.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

Hashes for webexpythonsdk_async-0.1.2.tar.gz
Algorithm Hash digest
SHA256 cdb5399a8b79a235bcf042035ae30ae2e1f7fef69d0de9e8575786f580e2e9f1
MD5 2a923fce4d418f7b23dbe65b68d02a16
BLAKE2b-256 aa0e6bb978707c9db1b31b34ab297e57f3de3332c487f7e9e9c5c5c01718e9f4

See more details on using hashes here.

File details

Details for the file webexpythonsdk_async-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for webexpythonsdk_async-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1e01e4dcfb1fef593e28061146d2bea008b92e0603cc79ecf7af76762d88d55d
MD5 cf366a0e95c03c01577421d187da8a35
BLAKE2b-256 0fccd7848e1fb163fd8abaef3e27a96f9e5de697b524f77b21f7a9a06b9f66b7

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