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_KEYAGORA_BASE_URLAGORA_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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d21766e17720f7e04d93fe065e7ca500bc70c0c284d02623beb0abf81d15a1b3
|
|
| MD5 |
8c6b81a296d23a9334a0a8507e784c8b
|
|
| BLAKE2b-256 |
6335ecc6b53938e914fedde50bdc1886f9c876222ad9efe2b2ed5e9214f728a1
|
Provenance
The following attestation bundles were made for agora_sdk-1.0.0a4.tar.gz:
Publisher:
publish.yml on stagiralabs/agora-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agora_sdk-1.0.0a4.tar.gz -
Subject digest:
d21766e17720f7e04d93fe065e7ca500bc70c0c284d02623beb0abf81d15a1b3 - Sigstore transparency entry: 814215424
- Sigstore integration time:
-
Permalink:
stagiralabs/agora-python@539665d9d913f0210fb7f69dc92a067301c5e6a8 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/stagiralabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@539665d9d913f0210fb7f69dc92a067301c5e6a8 -
Trigger Event:
workflow_dispatch
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c450c1d8aecc4f24f4f54d960bfc176d3fbea466599d89fd93534c63eef11ab
|
|
| MD5 |
b089d46bab18e9fdff128ed6f214a3b0
|
|
| BLAKE2b-256 |
291420bc44befc8792d63b4036474139671aad55bad10ac8d366470d1a873ce1
|
Provenance
The following attestation bundles were made for agora_sdk-1.0.0a4-py3-none-any.whl:
Publisher:
publish.yml on stagiralabs/agora-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agora_sdk-1.0.0a4-py3-none-any.whl -
Subject digest:
9c450c1d8aecc4f24f4f54d960bfc176d3fbea466599d89fd93534c63eef11ab - Sigstore transparency entry: 814215425
- Sigstore integration time:
-
Permalink:
stagiralabs/agora-python@539665d9d913f0210fb7f69dc92a067301c5e6a8 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/stagiralabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@539665d9d913f0210fb7f69dc92a067301c5e6a8 -
Trigger Event:
workflow_dispatch
-
Statement type: