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.0a2.tar.gz (24.7 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.0a2-py3-none-any.whl (26.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agora_sdk-1.0.0a2.tar.gz
  • Upload date:
  • Size: 24.7 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.0a2.tar.gz
Algorithm Hash digest
SHA256 9aa2feaf0a274255175238956f50f77b8cdf8df37e9d5dcf681be3028acdc0af
MD5 175141604636f953711c7126fd81b52f
BLAKE2b-256 ed4f4986eebbc6cfab8e946fe31091dbb0cbabd2e0e9d336eacc4cd61acfb75c

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: agora_sdk-1.0.0a2-py3-none-any.whl
  • Upload date:
  • Size: 26.6 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.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 c239f5644e1cc46db807c017c249b9eb93c00e36b7775eb8ba6cea4c34c8bd13
MD5 ec332ea1f5d3b30501e9e7b8377facd3
BLAKE2b-256 edfafa616185fe3c9793dace5a0e08ed433361077ad7ab668f41ceb0a316a527

See more details on using hashes here.

Provenance

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