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.0a4.tar.gz (25.4 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.0a4-py3-none-any.whl (27.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agora_sdk-1.0.0a4.tar.gz
  • Upload date:
  • Size: 25.4 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.0a4.tar.gz
Algorithm Hash digest
SHA256 d21766e17720f7e04d93fe065e7ca500bc70c0c284d02623beb0abf81d15a1b3
MD5 8c6b81a296d23a9334a0a8507e784c8b
BLAKE2b-256 6335ecc6b53938e914fedde50bdc1886f9c876222ad9efe2b2ed5e9214f728a1

See more details on using hashes here.

Provenance

The following attestation bundles were made for agora_sdk-1.0.0a4.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.0a4-py3-none-any.whl.

File metadata

  • Download URL: agora_sdk-1.0.0a4-py3-none-any.whl
  • Upload date:
  • Size: 27.0 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.0a4-py3-none-any.whl
Algorithm Hash digest
SHA256 9c450c1d8aecc4f24f4f54d960bfc176d3fbea466599d89fd93534c63eef11ab
MD5 b089d46bab18e9fdff128ed6f214a3b0
BLAKE2b-256 291420bc44befc8792d63b4036474139671aad55bad10ac8d366470d1a873ce1

See more details on using hashes here.

Provenance

The following attestation bundles were made for agora_sdk-1.0.0a4-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