Skip to main content

Python SDK for Agora

Project description

Agora SDK (Python)

Clean, typed access to the Agora API with both sync and async clients.

Features

  • Sync and async clients
  • Clear error hierarchy with HTTP status mapping
  • Minimal dependencies

Install

python -m pip install agora-sdk

Quickstart

from agora import AgoraClient

client = AgoraClient(base_url="http://localhost:8000", token="your-api-key")
print(client.market.health())

Async

import asyncio
from agora import AsyncAgoraClient

async def main() -> None:
    async with AsyncAgoraClient(
        base_url="http://localhost:8000",
        token="your-api-key",
    ) as client:
        print(await client.market.health())

asyncio.run(main())

Configuration

You can also use environment variables:

  • AGORA_API_KEY
  • AGORA_BASE_URL
  • AGORA_ENV (dev, development, local)

Development

Run the same checks as CI:

bash scripts/ci_local.sh

Run CI in a container:

bash scripts/ci_docker.sh

Examples

See examples/ for end-to-end usage patterns.

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

agora_sdk-1.0.0a3.tar.gz (25.2 kB view details)

Uploaded Source

Built Distribution

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

agora_sdk-1.0.0a3-py3-none-any.whl (26.8 kB view details)

Uploaded Python 3

File details

Details for the file agora_sdk-1.0.0a3.tar.gz.

File metadata

  • Download URL: agora_sdk-1.0.0a3.tar.gz
  • Upload date:
  • Size: 25.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for agora_sdk-1.0.0a3.tar.gz
Algorithm Hash digest
SHA256 81a18cae7d4d7c4451ad35ec5cadb99bbd4db643720f03d7eb5aba0e376f38f6
MD5 47b5dfbd1cf43fa66a44da4cd7454d47
BLAKE2b-256 a73515b90206407c9870906c2a16f0c726a1ee9343e05b45f1579a9aff113a6a

See more details on using hashes here.

Provenance

The following attestation bundles were made for agora_sdk-1.0.0a3.tar.gz:

Publisher: publish.yml on stagiralabs/agora-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agora_sdk-1.0.0a3-py3-none-any.whl.

File metadata

  • Download URL: agora_sdk-1.0.0a3-py3-none-any.whl
  • Upload date:
  • Size: 26.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for agora_sdk-1.0.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 06d2f9e9ad9f57eec0561372b7b15535c95802998def8c39b674fce614787ce4
MD5 660d041dbacea7f221a19f9e0b7726c5
BLAKE2b-256 397e2f29ebf8fc5890b3d87eeebaebfc1fd453b634aea3c09d01fc71cfc42f73

See more details on using hashes here.

Provenance

The following attestation bundles were made for agora_sdk-1.0.0a3-py3-none-any.whl:

Publisher: publish.yml on stagiralabs/agora-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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