agora-python-server-sdk 1.1.0__tar.gz → 1.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. {agora_python_server_sdk-1.1.0 → agora_python_server_sdk-1.1.1}/PKG-INFO +6 -22
  2. agora_python_server_sdk-1.1.1/README.md +37 -0
  3. {agora_python_server_sdk-1.1.0 → agora_python_server_sdk-1.1.1}/agora_python_server_sdk.egg-info/PKG-INFO +6 -22
  4. agora_python_server_sdk-1.1.1/agora_service/__init__.py +24 -0
  5. {agora_python_server_sdk-1.1.0 → agora_python_server_sdk-1.1.1}/setup.py +1 -1
  6. agora_python_server_sdk-1.1.0/README.md +0 -53
  7. agora_python_server_sdk-1.1.0/agora_service/__init__.py +0 -21
  8. {agora_python_server_sdk-1.1.0 → agora_python_server_sdk-1.1.1}/MANIFEST.in +0 -0
  9. {agora_python_server_sdk-1.1.0 → agora_python_server_sdk-1.1.1}/agora_python_server_sdk.egg-info/SOURCES.txt +0 -0
  10. {agora_python_server_sdk-1.1.0 → agora_python_server_sdk-1.1.1}/agora_python_server_sdk.egg-info/dependency_links.txt +0 -0
  11. {agora_python_server_sdk-1.1.0 → agora_python_server_sdk-1.1.1}/agora_python_server_sdk.egg-info/top_level.txt +0 -0
  12. {agora_python_server_sdk-1.1.0 → agora_python_server_sdk-1.1.1}/agora_service/agora_base.py +0 -0
  13. {agora_python_server_sdk-1.1.0 → agora_python_server_sdk-1.1.1}/agora_service/agora_service.py +0 -0
  14. {agora_python_server_sdk-1.1.0 → agora_python_server_sdk-1.1.1}/agora_service/audio_frame_observer.py +0 -0
  15. {agora_python_server_sdk-1.1.0 → agora_python_server_sdk-1.1.1}/agora_service/audio_pcm_data_sender.py +0 -0
  16. {agora_python_server_sdk-1.1.0 → agora_python_server_sdk-1.1.1}/agora_service/audio_vad.py +0 -0
  17. {agora_python_server_sdk-1.1.0 → agora_python_server_sdk-1.1.1}/agora_service/local_audio_track.py +0 -0
  18. {agora_python_server_sdk-1.1.0 → agora_python_server_sdk-1.1.1}/agora_service/local_user.py +0 -0
  19. {agora_python_server_sdk-1.1.0 → agora_python_server_sdk-1.1.1}/agora_service/media_node_factory.py +0 -0
  20. {agora_python_server_sdk-1.1.0 → agora_python_server_sdk-1.1.1}/agora_service/rtc_conn_observer.py +0 -0
  21. {agora_python_server_sdk-1.1.0 → agora_python_server_sdk-1.1.1}/agora_service/rtc_connection.py +0 -0
  22. {agora_python_server_sdk-1.1.0 → agora_python_server_sdk-1.1.1}/agora_service/video_frame_observer.py +0 -0
  23. {agora_python_server_sdk-1.1.0 → agora_python_server_sdk-1.1.1}/agora_service/video_sender.py +0 -0
  24. {agora_python_server_sdk-1.1.0 → agora_python_server_sdk-1.1.1}/pyproject.toml +0 -0
  25. {agora_python_server_sdk-1.1.0 → agora_python_server_sdk-1.1.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: agora_python_server_sdk
3
- Version: 1.1.0
3
+ Version: 1.1.1
4
4
  Summary: A Python SDK for Agora Server
5
5
  Home-page: https://github.com/AgoraIO-Extensions/Agora-Python-Server-SDK
6
6
  Classifier: Intended Audience :: Developers
@@ -38,33 +38,17 @@ Description-Content-Type: text/markdown
38
38
 
39
39
  # Test Data
40
40
  - download and unzip [test_data.zip](https://download.agora.io/demo/test/test_data_202409021506.zip)
41
- - make **test_data** directory in the same directory with **agora_service**
42
41
 
43
- # Linux debug & develop
44
- ## Prepare C version of agora rtc sdk
42
+ # Use Agora-Python-Server-SDK
43
+ ## Install 1.1.x version of Agora-Python-Server-SDK
45
44
 
46
- - make **agora_sdk** directory in the same directory with **agora_service**
47
- - download and unzip [agora_sdk.zip](https://download.agora.io/sdk/release/agora_rtc_sdk_linux_v4.0.1_202409051524_333459.zip
48
- ) to **agora_sdk**
49
- - there should be **libagora_rtc_sdk.so** and **include_c** in **agora_sdk** directory
50
-
51
- ## run example on linux
52
45
  ```
53
- export LD_LIBRARY_PATH=/path/to/agora_sdk:$LD_LIBRARY_PATH
54
- python examples/example_send_pcm.py {appid} {token} {channel_id} ./test_data/demo.pcm {userid}
46
+ pip install 'agora_python_server_sdk>=1.1,<1.2'
55
47
  ```
56
48
 
57
- # Mac debug & develop
58
- ## Prepare C version of agora rtc sdk
59
- - make **agora_sdk** directory in the same directory with **agora_service**
60
- - download and unzip [agora_sdk.zip](https://download.agora.io/sdk/release/agora_rtc_sdk_mac_20240902_320567.zip) to **agora_sdk**
61
- - there should be **libAgoraRtcKit.dylib** and **include_c** in **agora_sdk** directory
62
-
63
- ## run example on mac
64
-
65
- - add **libAgoraRtcKit.dylib** to **/usr/local/lib**
66
- - or `export DYLD_LIBRARY_PATH=/path/to/agora_sdk:$DYLD_LIBRARY_PATH`
49
+ ## run examples
67
50
 
68
51
  ```
69
52
  python examples/example_send_pcm.py {appid} {token} {channel_id} ./test_data/demo.pcm {userid}
70
53
  ```
54
+
@@ -0,0 +1,37 @@
1
+ # Notice
2
+ - this is a python sdk wrappered agora rtc sdk.
3
+ - can dev under mac, and release unde linux
4
+ - the examples is just a simple demo, it is not a good practice to use it in production
5
+ # Very import notice !!!!!!!
6
+ - It's crucial that a process can only have one instance.
7
+ - One instance can have multiple connections.
8
+ - 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.
9
+
10
+ # Required OS and python version
11
+ - supported Linux version:
12
+ - Ubuntu 18.04 LTS and above
13
+ - CentOS 7.0 and above
14
+
15
+ - supported Mac version:
16
+
17
+ - MacOS 13 and above
18
+
19
+ - python version:
20
+ - python 3.8 above
21
+
22
+ # Test Data
23
+ - download and unzip [test_data.zip](https://download.agora.io/demo/test/test_data_202409021506.zip)
24
+
25
+ # Use Agora-Python-Server-SDK
26
+ ## Install 1.1.x version of Agora-Python-Server-SDK
27
+
28
+ ```
29
+ pip install 'agora_python_server_sdk>=1.1,<1.2'
30
+ ```
31
+
32
+ ## run examples
33
+
34
+ ```
35
+ python examples/example_send_pcm.py {appid} {token} {channel_id} ./test_data/demo.pcm {userid}
36
+ ```
37
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: agora_python_server_sdk
3
- Version: 1.1.0
3
+ Version: 1.1.1
4
4
  Summary: A Python SDK for Agora Server
5
5
  Home-page: https://github.com/AgoraIO-Extensions/Agora-Python-Server-SDK
6
6
  Classifier: Intended Audience :: Developers
@@ -38,33 +38,17 @@ Description-Content-Type: text/markdown
38
38
 
39
39
  # Test Data
40
40
  - download and unzip [test_data.zip](https://download.agora.io/demo/test/test_data_202409021506.zip)
41
- - make **test_data** directory in the same directory with **agora_service**
42
41
 
43
- # Linux debug & develop
44
- ## Prepare C version of agora rtc sdk
42
+ # Use Agora-Python-Server-SDK
43
+ ## Install 1.1.x version of Agora-Python-Server-SDK
45
44
 
46
- - make **agora_sdk** directory in the same directory with **agora_service**
47
- - download and unzip [agora_sdk.zip](https://download.agora.io/sdk/release/agora_rtc_sdk_linux_v4.0.1_202409051524_333459.zip
48
- ) to **agora_sdk**
49
- - there should be **libagora_rtc_sdk.so** and **include_c** in **agora_sdk** directory
50
-
51
- ## run example on linux
52
45
  ```
53
- export LD_LIBRARY_PATH=/path/to/agora_sdk:$LD_LIBRARY_PATH
54
- python examples/example_send_pcm.py {appid} {token} {channel_id} ./test_data/demo.pcm {userid}
46
+ pip install 'agora_python_server_sdk>=1.1,<1.2'
55
47
  ```
56
48
 
57
- # Mac debug & develop
58
- ## Prepare C version of agora rtc sdk
59
- - make **agora_sdk** directory in the same directory with **agora_service**
60
- - download and unzip [agora_sdk.zip](https://download.agora.io/sdk/release/agora_rtc_sdk_mac_20240902_320567.zip) to **agora_sdk**
61
- - there should be **libAgoraRtcKit.dylib** and **include_c** in **agora_sdk** directory
62
-
63
- ## run example on mac
64
-
65
- - add **libAgoraRtcKit.dylib** to **/usr/local/lib**
66
- - or `export DYLD_LIBRARY_PATH=/path/to/agora_sdk:$DYLD_LIBRARY_PATH`
49
+ ## run examples
67
50
 
68
51
  ```
69
52
  python examples/example_send_pcm.py {appid} {token} {channel_id} ./test_data/demo.pcm {userid}
70
53
  ```
54
+
@@ -0,0 +1,24 @@
1
+ #!/usr/bin/env python
2
+
3
+ import os
4
+ import sys
5
+ import ctypes
6
+
7
+ sdk_dir = os.path.dirname(os.path.abspath(__file__))
8
+ lib_path = os.path.join(sdk_dir, 'agora_sdk')
9
+
10
+ print("sdk_dir:", lib_path)
11
+
12
+ try:
13
+ if sys.platform == 'darwin':
14
+ lib_agora_rtc_path =os.path.join(lib_path, 'libAgoraRtcKit.dylib')
15
+ agora_lib = ctypes.CDLL(lib_agora_rtc_path)
16
+ elif sys.platform == 'linux':
17
+ lib_agora_rtc_path =os.path.join(lib_path, 'libagora_rtc_sdk.so')
18
+ ctypes.CDLL(os.path.join(lib_path, 'libagora-fdkaac.so'))
19
+ ctypes.CDLL(os.path.join(lib_path, 'libaosl.so'))
20
+ agora_lib = ctypes.CDLL(lib_agora_rtc_path)
21
+ except OSError as e:
22
+ print(f"Error loading the library: {e}")
23
+ print(f"Attempted to load from: {lib_agora_rtc_path}")
24
+ sys.exit(1)
@@ -46,7 +46,7 @@ class CustomInstallCommand(install):
46
46
 
47
47
  setup(
48
48
  name='agora_python_server_sdk',
49
- version='1.1.0',
49
+ version='1.1.1',
50
50
  description='A Python SDK for Agora Server',
51
51
  long_description=open('README.md').read(),
52
52
  long_description_content_type='text/markdown',
@@ -1,53 +0,0 @@
1
- # Notice
2
- - this is a python sdk wrappered agora rtc sdk.
3
- - can dev under mac, and release unde linux
4
- - the examples is just a simple demo, it is not a good practice to use it in production
5
- # Very import notice !!!!!!!
6
- - It's crucial that a process can only have one instance.
7
- - One instance can have multiple connections.
8
- - 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.
9
-
10
- # Required OS and python version
11
- - supported Linux version:
12
- - Ubuntu 18.04 LTS and above
13
- - CentOS 7.0 and above
14
-
15
- - supported Mac version:
16
-
17
- - MacOS 13 and above
18
-
19
- - python version:
20
- - python 3.8 above
21
-
22
- # Test Data
23
- - download and unzip [test_data.zip](https://download.agora.io/demo/test/test_data_202409021506.zip)
24
- - make **test_data** directory in the same directory with **agora_service**
25
-
26
- # Linux debug & develop
27
- ## Prepare C version of agora rtc sdk
28
-
29
- - make **agora_sdk** directory in the same directory with **agora_service**
30
- - download and unzip [agora_sdk.zip](https://download.agora.io/sdk/release/agora_rtc_sdk_linux_v4.0.1_202409051524_333459.zip
31
- ) to **agora_sdk**
32
- - there should be **libagora_rtc_sdk.so** and **include_c** in **agora_sdk** directory
33
-
34
- ## run example on linux
35
- ```
36
- export LD_LIBRARY_PATH=/path/to/agora_sdk:$LD_LIBRARY_PATH
37
- python examples/example_send_pcm.py {appid} {token} {channel_id} ./test_data/demo.pcm {userid}
38
- ```
39
-
40
- # Mac debug & develop
41
- ## Prepare C version of agora rtc sdk
42
- - make **agora_sdk** directory in the same directory with **agora_service**
43
- - download and unzip [agora_sdk.zip](https://download.agora.io/sdk/release/agora_rtc_sdk_mac_20240902_320567.zip) to **agora_sdk**
44
- - there should be **libAgoraRtcKit.dylib** and **include_c** in **agora_sdk** directory
45
-
46
- ## run example on mac
47
-
48
- - add **libAgoraRtcKit.dylib** to **/usr/local/lib**
49
- - or `export DYLD_LIBRARY_PATH=/path/to/agora_sdk:$DYLD_LIBRARY_PATH`
50
-
51
- ```
52
- python examples/example_send_pcm.py {appid} {token} {channel_id} ./test_data/demo.pcm {userid}
53
- ```
@@ -1,21 +0,0 @@
1
- #!/usr/bin/env python
2
-
3
- import os
4
- import sys
5
- import ctypes
6
-
7
- sdk_dir = os.path.dirname(os.path.abspath(__file__))
8
- lib_path = os.path.join(sdk_dir, 'agora_sdk')
9
-
10
- print("sdk_dir:", lib_path)
11
-
12
- if sys.platform == 'darwin':
13
- lib_agora_rtc_path =os.path.join(lib_path, 'libAgoraRtcKit.dylib')
14
- elif sys.platform == 'linux':
15
- lib_agora_rtc_path =os.path.join(lib_path, 'libagora_rtc_sdk.so')
16
- try:
17
- agora_lib = ctypes.CDLL(lib_agora_rtc_path)
18
- except OSError as e:
19
- print(f"Error loading the library: {e}")
20
- print(f"Attempted to load from: {lib_agora_rtc_path}")
21
- sys.exit(1)