A Python SDK for Agora Server
Project description
Notice
- this is a python sdk wrappered agora rtc sdk.
- can dev under mac, and release unde linux
- the examples is just a simple demo, it is not a good practice to use it in production
Very import notice !!!!!!!
- It's crucial that a process can only have one instance.
- One instance can have multiple connections.
- In all observers or callbacks, it is not allowed to call the SDK's own APIs, nor is it permitted to perform CPU-intensive tasks within the callbacks. However, data copying is allowed.
Required OS and python version
-
supported Linux version:
- Ubuntu 18.04 LTS and above
- CentOS 7.0 and above
-
supported Mac version:
- MacOS 13 and above
-
python version:
- python 3.8 above
Test Data
- download and unzip test_data.zip
- make test_data directory in the same directory with agora_service
Linux debug & develop
Prepare C version of agora rtc sdk
- make agora_sdk directory in the same directory with agora_service
- download and unzip agora_sdk.zip to agora_sdk
- there should be libagora_rtc_sdk.so and include_c in agora_sdk directory
run example on linux
export LD_LIBRARY_PATH=/path/to/agora_sdk:$LD_LIBRARY_PATH
python examples/example_send_pcm.py {appid} {token} {channel_id} ./test_data/demo.pcm {userid}
Mac debug & develop
Prepare C version of agora rtc sdk
- make agora_sdk directory in the same directory with agora_service
- download and unzip agora_sdk.zip to agora_sdk
- there should be libAgoraRtcKit.dylib and include_c in agora_sdk directory
run example on mac
- add libAgoraRtcKit.dylib to /usr/local/lib
- or
export DYLD_LIBRARY_PATH=/path/to/agora_sdk:$DYLD_LIBRARY_PATH
python examples/example_send_pcm.py {appid} {token} {channel_id} ./test_data/demo.pcm {userid}
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
File details
Details for the file agora_python_server_sdk-1.1.0.tar.gz
.
File metadata
- Download URL: agora_python_server_sdk-1.1.0.tar.gz
- Upload date:
- Size: 14.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d7fc5ad01c429c227bd6d6d8b62594bd7f6e985859d8570562624a6a60d4cd3 |
|
MD5 | 3026f2af085ae9f8dad3128b21a559ea |
|
BLAKE2b-256 | 3f5f16a3af43e84f4bd36c58cbbc86793a97b91d7f01c31e079015d98d50f633 |