volcengine-python-sdk-aicc 0.0.41__py3-none-any.whl

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 (60) hide show
  1. bytedance/__init__.py +4 -0
  2. bytedance/jeddak_secure_channel/__init__.py +28 -0
  3. bytedance/jeddak_secure_channel/client.py +305 -0
  4. bytedance/jeddak_secure_channel/config.py +171 -0
  5. bytedance/jeddak_secure_channel/consts.py +5 -0
  6. bytedance/jeddak_secure_channel/crypto/__init__.py +14 -0
  7. bytedance/jeddak_secure_channel/crypto/aes.py +174 -0
  8. bytedance/jeddak_secure_channel/crypto/envelope.py +395 -0
  9. bytedance/jeddak_secure_channel/crypto/rsa.py +164 -0
  10. bytedance/jeddak_secure_channel/error.py +131 -0
  11. bytedance/jeddak_secure_channel/log/__init__.py +23 -0
  12. bytedance/jeddak_secure_channel/log/config.py +31 -0
  13. bytedance/jeddak_secure_channel/log/logger.py +88 -0
  14. bytedance/jeddak_secure_channel/logger_factory.py +134 -0
  15. bytedance/jeddak_secure_channel/ra.py +772 -0
  16. bytedance/jeddak_secure_channel/server.py +745 -0
  17. bytedance/jeddak_secure_channel/service/__init__.py +16 -0
  18. bytedance/jeddak_secure_channel/service/eps.py +133 -0
  19. bytedance/jeddak_secure_channel/service/eps_models.py +47 -0
  20. bytedance/jeddak_secure_channel/service/ras.py +88 -0
  21. bytedance/jeddak_secure_channel/service/tks.py +51 -0
  22. bytedance/jeddak_secure_channel/service/tks_models.py +334 -0
  23. bytedance/jeddak_secure_channel/utils.py +469 -0
  24. bytedance/jeddak_secure_model/model_automation_tool.py +181 -0
  25. bytedance/jeddak_secure_model/model_encryption.py +416 -0
  26. bytedance/jeddak_secure_model/model_hub_admin.py +116 -0
  27. bytedance/jeddak_secure_model/pcc_utils.py +279 -0
  28. bytedance/jeddak_secure_model/rds_utils.py +63 -0
  29. bytedance/tks/attester.py +41 -0
  30. bytedance/tks/client.py +629 -0
  31. bytedance/tks/consts.py +122 -0
  32. bytedance/tks/crypto/aes.py +47 -0
  33. bytedance/tks/crypto/ec.py +39 -0
  34. bytedance/tks/exceptions.py +22 -0
  35. bytedance/volcengine_aicc_sdk/__init__.py +14 -0
  36. bytedance/volcengine_aicc_sdk/aicc_client.py +277 -0
  37. bytedance/volcengine_aicc_sdk/aicc_inference.py +64 -0
  38. bytedance/volcengine_aicc_sdk/ark_inference_client.py +343 -0
  39. bytedance/volcengine_aicc_sdk/asr_inference_client.py +158 -0
  40. bytedance/volcengine_aicc_sdk/asr_websocket_client.py +705 -0
  41. bytedance/volcengine_aicc_sdk/auc_inference_client.py +305 -0
  42. bytedance/volcengine_aicc_sdk/common/__init__.py +0 -0
  43. bytedance/volcengine_aicc_sdk/common/aes.py +136 -0
  44. bytedance/volcengine_aicc_sdk/common/constant.py +4 -0
  45. bytedance/volcengine_aicc_sdk/common/error.py +21 -0
  46. bytedance/volcengine_aicc_sdk/common/log/__init__.py +24 -0
  47. bytedance/volcengine_aicc_sdk/common/log/config.py +31 -0
  48. bytedance/volcengine_aicc_sdk/common/log/logger.py +88 -0
  49. bytedance/volcengine_aicc_sdk/common/tos_utils.py +341 -0
  50. bytedance/volcengine_aicc_sdk/common/utils.py +45 -0
  51. bytedance/volcengine_aicc_sdk/cu_inference_client.py +292 -0
  52. bytedance/volcengine_aicc_sdk/deepseek_inference_client.py +501 -0
  53. bytedance/volcengine_aicc_sdk/secure_http_client.py +406 -0
  54. bytedance/volcengine_aicc_sdk/seedance_inference_client.py +500 -0
  55. bytedance/volcengine_aicc_sdk/seedream_inference_client.py +213 -0
  56. volcengine_python_sdk_aicc-0.0.41.dist-info/METADATA +79 -0
  57. volcengine_python_sdk_aicc-0.0.41.dist-info/RECORD +60 -0
  58. volcengine_python_sdk_aicc-0.0.41.dist-info/WHEEL +5 -0
  59. volcengine_python_sdk_aicc-0.0.41.dist-info/licenses/LICENSE +202 -0
  60. volcengine_python_sdk_aicc-0.0.41.dist-info/top_level.txt +1 -0
@@ -0,0 +1,213 @@
1
+ """
2
+ seedream机密推理客户端
3
+ """
4
+ __all__ = ["SeedreamClient"]
5
+
6
+ import os
7
+ import uuid
8
+ import base64
9
+ import traceback
10
+ from urllib.parse import unquote
11
+ from cryptography.hazmat.primitives import serialization as crypto_serialization
12
+ from cryptography.hazmat.primitives.asymmetric import rsa
13
+ from cryptography.hazmat.backends import default_backend as crypto_default_backend
14
+ from bytedance.jeddak_secure_channel.crypto import PrivateKey
15
+ from .secure_http_client import SecureHttpClient
16
+ from .common.error import AICCException
17
+ from .common.log import logger
18
+ from .secure_http_client import AICCConfig
19
+ from .common.aes import decrypt_file
20
+
21
+
22
+ class SeedreamClient:
23
+
24
+ def __init__(self,
25
+ base_url: str = "",
26
+ api_key: str = "",
27
+ endpoint: str = "",
28
+ aicc_config: AICCConfig = None,
29
+ **kwargs):
30
+ self.base_url = base_url
31
+ self.api_key = api_key
32
+ self.endpoint = endpoint
33
+ self.aicc_config = aicc_config
34
+ self.kwargs = kwargs
35
+ self.is_secure = self.kwargs.get("is_secure", True)
36
+
37
+ if aicc_config:
38
+ self.secure_http_client = SecureHttpClient(aicc_config=aicc_config)
39
+ else:
40
+ if self.is_secure:
41
+ aicc_config = AICCConfig(ra_url=base_url, auth_token=api_key)
42
+ self.secure_http_client = SecureHttpClient(aicc_config=aicc_config)
43
+ else:
44
+ self.secure_http_client = SecureHttpClient()
45
+
46
+ self.is_enable_image_encrypt = str(self.kwargs.get("is_enable_image_encrypt", True)).lower() == "true"
47
+
48
+ self.image_file_encrypt_pub_key_content = None
49
+ self.image_file_encrypt_priv_key_content = None
50
+
51
+ self.image_file_encrypt_priv_key: PrivateKey = None
52
+
53
+ self.timeout = self.kwargs.get("timeout", 120.0)
54
+
55
+ self.CREATE_IMAGE_URL = "/images/generations"
56
+
57
+ def _get_base_url(self):
58
+ return self.base_url.rstrip("/")
59
+
60
+ def _build_common_headers(self, request_id: str = "") -> dict[str, str]:
61
+ if not request_id:
62
+ request_id = str(uuid.uuid4())
63
+
64
+ return {
65
+ "Content-Type": "application/json",
66
+ "X-Api-App-Key": self.endpoint,
67
+ "Authorization": f"Bearer {self.api_key}",
68
+ "X-Request-Id": request_id,
69
+ }
70
+
71
+ def generate_key_pair(self, pub_key_path: str = "", priv_key_path: str = ""):
72
+ try:
73
+ key = rsa.generate_private_key(
74
+ backend=crypto_default_backend(),
75
+ public_exponent=65537,
76
+ key_size=4096
77
+ )
78
+
79
+ private_key = key.private_bytes(
80
+ crypto_serialization.Encoding.PEM,
81
+ crypto_serialization.PrivateFormat.PKCS8,
82
+ crypto_serialization.NoEncryption()
83
+ )
84
+ with open(priv_key_path, 'wb') as f:
85
+ f.write(private_key)
86
+
87
+ public_key = key.public_key().public_bytes(
88
+ crypto_serialization.Encoding.PEM,
89
+ crypto_serialization.PublicFormat.SubjectPublicKeyInfo
90
+ )
91
+ with open(pub_key_path, 'wb') as f:
92
+ f.write(public_key)
93
+ except Exception as e:
94
+ logger.error(f"[Error] Failed to generate key pair: {e}")
95
+ raise AICCException("Failed to generate RSA key pair") from e
96
+
97
+ def set_image_encrypt_key(self, pub_key_path: str = "", priv_key_path: str = ""):
98
+ if os.path.exists(pub_key_path):
99
+ with open(pub_key_path, 'r') as f:
100
+ content = f.read()
101
+ if '-----BEGIN' in content and '-----END' in content:
102
+ self.image_file_encrypt_pub_key_content = content
103
+
104
+ if os.path.exists(priv_key_path):
105
+ with open(priv_key_path, 'r') as f:
106
+ content = f.read()
107
+ if '-----BEGIN' in content and '-----END' in content:
108
+ self.image_file_encrypt_priv_key_content = content
109
+ self.image_file_encrypt_priv_key = \
110
+ PrivateKey.from_private_pem(self.image_file_encrypt_priv_key_content)
111
+
112
+ def create_image(self, data: dict, custom_header: dict = None, request_id: str = ""):
113
+ if not data:
114
+ raise AICCException("data must be provided")
115
+
116
+ if "model" not in data:
117
+ data["model"] = self.endpoint
118
+
119
+ base_url = self._get_base_url()
120
+ url = f"{base_url}{self.CREATE_IMAGE_URL}"
121
+
122
+ headers = self._build_common_headers(request_id)
123
+ if custom_header:
124
+ headers.update(custom_header)
125
+
126
+ if self.is_enable_image_encrypt:
127
+ if not self.image_file_encrypt_pub_key_content or not self.image_file_encrypt_priv_key_content:
128
+ raise AICCException("pub_key and priv_key must be provided when Is-Enable-Encrypt is 'true'")
129
+
130
+ headers["Enable-TOS-Content-Result-Encryption"] = str(self.is_enable_image_encrypt).lower()
131
+ headers["X-Encryption-Algorithm"] = "RSA_OAEP_4096_AES_256"
132
+ if self.image_file_encrypt_pub_key_content:
133
+ pk_base64 = base64.b64encode(self.image_file_encrypt_pub_key_content.encode()).decode()
134
+ headers["PK"] = pk_base64
135
+
136
+ stream = data.get("stream", False)
137
+ if stream:
138
+ return self.secure_http_client.send(
139
+ self.secure_http_client.build_request("POST", url, headers=headers, json=data, timeout=self.timeout),
140
+ stream=True,
141
+ )
142
+
143
+ response = self.secure_http_client.post(url, headers=headers, json=data, timeout=self.timeout)
144
+ if response.status_code == 200:
145
+ return response.json()
146
+ else:
147
+ logger.error(f"[Error] url: {url}, response: {response.text}")
148
+ try:
149
+ return response.json()
150
+ except Exception:
151
+ raise AICCException(f"Failed to create image, status_code={response.status_code}")
152
+
153
+ def create_image_by_prompt(self, prompt: str, custom_header: dict = None, request_id: str = "",
154
+ size: str = "1024x1024", n: int = 1, response_format: str = "url",
155
+ stream: bool = False, extra_body: dict = None):
156
+ if not prompt:
157
+ raise AICCException("prompt must be provided")
158
+
159
+ data = {
160
+ "model": self.endpoint,
161
+ "prompt": prompt,
162
+ "size": size,
163
+ "n": n,
164
+ "response_format": response_format,
165
+ }
166
+ if stream:
167
+ data["stream"] = True
168
+ if extra_body:
169
+ data.update(extra_body)
170
+ return self.create_image(data, custom_header, request_id)
171
+
172
+ def download_image(self, image_url: str, local_file_path: str) -> bool:
173
+ if not image_url:
174
+ raise AICCException("image_url must be provided")
175
+
176
+ if not local_file_path:
177
+ raise AICCException("local_file_path must be provided")
178
+
179
+ if os.path.exists(local_file_path) and os.path.getsize(local_file_path) > 0:
180
+ logger.error(f"[Error] File {local_file_path} already exists and is not empty")
181
+ return False
182
+
183
+ try:
184
+ import requests as req
185
+ response = req.get(image_url, stream=True)
186
+ with open(local_file_path, "wb") as f:
187
+ for chunk in response.iter_content(chunk_size=8192):
188
+ f.write(chunk)
189
+
190
+ if self.is_enable_image_encrypt:
191
+ if not self.image_file_encrypt_priv_key:
192
+ logger.error("[Error] No private key set, cannot decrypt encrypted image")
193
+ return False
194
+
195
+ headers = response.headers
196
+ encrypted_key = headers.get("x-tos-meta-enc-dek")
197
+ if encrypted_key:
198
+ try:
199
+ encrypted_key_bytes = base64.b64decode(unquote(encrypted_key))
200
+ encrypted_key = self.image_file_encrypt_priv_key.decrypt(encrypted_key_bytes)
201
+ tmp_file_path = local_file_path + ".tmp"
202
+ decrypt_file(encrypted_key, local_file_path, tmp_file_path, 'b')
203
+ os.remove(local_file_path)
204
+ os.rename(tmp_file_path, local_file_path)
205
+ except Exception as e:
206
+ logger.error(f"[Error] Failed to decode encrypted_key: {e}")
207
+ traceback.print_exc()
208
+ return False
209
+ except Exception as e:
210
+ logger.error(f"[Error] Download failed: {e}")
211
+ traceback.print_exc()
212
+ return False
213
+ return True
@@ -0,0 +1,79 @@
1
+ Metadata-Version: 2.4
2
+ Name: volcengine-python-sdk-aicc
3
+ Version: 0.0.41
4
+ Summary: Volcengine AICC Python SDK for confidential and secure AI inference
5
+ Author-email: Volcengine AICC SDK Team <volcengine@bytedance.com>
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://pypi.org/project/volcengine-python-sdk-aicc/
8
+ Classifier: Development Status :: 4 - Beta
9
+ Classifier: Operating System :: OS Independent
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3.9
12
+ Classifier: Programming Language :: Python :: 3.10
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
17
+ Classifier: Topic :: Security
18
+ Classifier: Topic :: Security :: Cryptography
19
+ Requires-Python: >=3.9
20
+ Description-Content-Type: text/markdown
21
+ License-File: LICENSE
22
+ Requires-Dist: cryptography<100,>=38.0.0
23
+ Requires-Dist: httpx<1,>=0.28
24
+ Requires-Dist: requests<100,>=2.22
25
+ Requires-Dist: typing_extensions~=4.12
26
+ Requires-Dist: tos~=2.8.1
27
+ Requires-Dist: msgpack~=1.0.8
28
+ Requires-Dist: huggingface_hub<1,>=0.23
29
+ Requires-Dist: loguru~=0.7.3
30
+ Requires-Dist: volcengine-python-sdk<=100,>=4.0.4
31
+ Requires-Dist: jwcrypto~=1.5.6
32
+ Requires-Dist: PyJWT>=2.9.0
33
+ Requires-Dist: pymerkle~=6.1.0
34
+ Requires-Dist: openai<=100,>=2.0.0
35
+ Requires-Dist: wget~=3.2
36
+ Requires-Dist: websocket-client<=100,>=1.8.0
37
+ Requires-Dist: anthropic<=100,>=0.100.0
38
+ Provides-Extra: test
39
+ Requires-Dist: coverage~=7.6; extra == "test"
40
+ Requires-Dist: pytest~=8.3; extra == "test"
41
+ Requires-Dist: pytest-mock~=3.14; extra == "test"
42
+ Requires-Dist: responses~=0.25; extra == "test"
43
+ Dynamic: license-file
44
+
45
+ # Volcengine AICC SDK for Python
46
+
47
+ The official Python SDK for Volcengine AICC, providing confidential and secure
48
+ AI inference clients (chat, vision, video generation, ASR, etc.) with remote
49
+ attestation verification.
50
+
51
+ ## Installation
52
+
53
+ ```bash
54
+ pip install volcengine-python-sdk-aicc
55
+ ```
56
+
57
+ The distribution name is `volcengine-python-sdk-aicc`; the Python import
58
+ package is `bytedance.volcengine_aicc_sdk`.
59
+
60
+ ## Quick start
61
+
62
+ ```python
63
+ from bytedance.volcengine_aicc_sdk import AICCClient
64
+ from bytedance.volcengine_aicc_sdk.secure_http_client import AICCConfig
65
+
66
+ client = AICCClient(config=AICCConfig(base_url="<YOUR_BASE_URL>", api_key="<YOUR_API_KEY>"))
67
+ ```
68
+
69
+ ## Project layout
70
+
71
+ - `bytedance.volcengine_aicc_sdk`: AICC inference clients.
72
+ - `bytedance.jeddak_secure_channel`: confidential-computing secure channel and
73
+ remote attestation report verification.
74
+ - `bytedance.jeddak_secure_model`: secure model helpers.
75
+ - `bytedance.tks`: trusted key service helpers.
76
+
77
+ ## License
78
+
79
+ Licensed under the Apache License, Version 2.0. See [LICENSE](LICENSE).
@@ -0,0 +1,60 @@
1
+ bytedance/__init__.py,sha256=YNTAYS9-pIBNK2CA3iQGNI8k7WouCJwVoBXbBmnSzZw,115
2
+ bytedance/jeddak_secure_channel/__init__.py,sha256=Lueonsvbv_6WXaPCDmvEjesS6NysGKLRwY87V_GAdjE,630
3
+ bytedance/jeddak_secure_channel/client.py,sha256=0phJWaG9Fa3u7miI3YvomiXC178iBVL6V7UiQ_xUYYw,10666
4
+ bytedance/jeddak_secure_channel/config.py,sha256=WmME7dLNF9Gq681a90Oa4f6Fjs3QDa5X1SDeN2xArsM,3875
5
+ bytedance/jeddak_secure_channel/consts.py,sha256=1t4RmV_RJJckYZimzwJAS-ti2M91DWi-GbGI_qNQ9Is,286
6
+ bytedance/jeddak_secure_channel/error.py,sha256=CqNSL3NffCwKU3ITl-XKwhGCrS47o2-lQK4TBK6xkaM,3095
7
+ bytedance/jeddak_secure_channel/logger_factory.py,sha256=iQokqThh_egahsg0xrNcJbeXK3L5Bhh1kUEEMxq6YHI,3938
8
+ bytedance/jeddak_secure_channel/ra.py,sha256=llgwjLU3bJEbaOuoYd6ZIpNY-HhVIkh18fVJegptXHU,26314
9
+ bytedance/jeddak_secure_channel/server.py,sha256=bkJO6rqnxbs00W6OYI5JI4EkkxBPgMXIxKbz6ExlAkk,25991
10
+ bytedance/jeddak_secure_channel/utils.py,sha256=3iLHRiJXFbu4Hc7kk7CjwGLq1DfEM6Dx4OkbBFbH1QA,13936
11
+ bytedance/jeddak_secure_channel/crypto/__init__.py,sha256=CIQ5pveYogLd-dbEOZnzLT5QONTZ-uFbPJZgMYfIoEQ,332
12
+ bytedance/jeddak_secure_channel/crypto/aes.py,sha256=zJdiqegnt7m3t5zvkgs6PKDm8wCcwli1MmOAMh7NreQ,4654
13
+ bytedance/jeddak_secure_channel/crypto/envelope.py,sha256=Yp4tONXDR_v_Nk_e0qBf9bkBOTUEPqeYO6z_5m8jQ5Q,11345
14
+ bytedance/jeddak_secure_channel/crypto/rsa.py,sha256=lZXvzJzfHn6p6uolUB6eM_npjL_rQP9EW8q_k2JrRkg,4802
15
+ bytedance/jeddak_secure_channel/log/__init__.py,sha256=Pn78rqp-V48_8FxT4z8TRGJjU3zbl62C2uMqwQlojgs,478
16
+ bytedance/jeddak_secure_channel/log/config.py,sha256=eVoXlwiyz-CNcDa3IP1_a6p2wvKBg1KVYotQDVNeOw8,672
17
+ bytedance/jeddak_secure_channel/log/logger.py,sha256=N7xfxWygGo0M8BmOEZqSBc2PQXr3KYpb5_YJouKgWd4,2273
18
+ bytedance/jeddak_secure_channel/service/__init__.py,sha256=_ThivJOYU3W4QMAW5v9KC-AO1EXZNbIjfxd1ZEpNfjc,338
19
+ bytedance/jeddak_secure_channel/service/eps.py,sha256=xyKyuwNs7VEdNc68G6yz36aAOPD7L_o0Fl7AbB785ho,4323
20
+ bytedance/jeddak_secure_channel/service/eps_models.py,sha256=Z-GD7EeE8q09K5ljz_L0f_T6BRQ2c4gAWr7PQUnLCY8,934
21
+ bytedance/jeddak_secure_channel/service/ras.py,sha256=CxjFd6kO13-swPAEoP2rGHxOu_v7ewmyeUWjfy7WMV0,2609
22
+ bytedance/jeddak_secure_channel/service/tks.py,sha256=5AYUAI27bTiUHa1jrOVYBgJL6SxWWYOjyheR1GZql3Y,1175
23
+ bytedance/jeddak_secure_channel/service/tks_models.py,sha256=4IeuNRVITjzN_9zj8NXSXnrtieXbJKCsHkRLlh33O08,8079
24
+ bytedance/jeddak_secure_model/model_automation_tool.py,sha256=gslRhLfPxzmnvSuH5TpsG9I5z0X_PzPoQSpBNsxHIQo,7748
25
+ bytedance/jeddak_secure_model/model_encryption.py,sha256=86iwIfrzYdlTJ4j1K6edzNlcUz2Zta9k_qBY0WhgXmM,17344
26
+ bytedance/jeddak_secure_model/model_hub_admin.py,sha256=W4ePUlVnsJQ13B-hZ_2VxKZuCtn_QZMylGYhtVF7uSs,4171
27
+ bytedance/jeddak_secure_model/pcc_utils.py,sha256=rz9_VUh1iXJJJIrzCi5M6YsbyIQ-pbVPvWsyVUllq30,10251
28
+ bytedance/jeddak_secure_model/rds_utils.py,sha256=VPueoU3qlz-mCiVhhhqvRAN1j8hpQoZ4gXJvyOj4dDo,2432
29
+ bytedance/tks/attester.py,sha256=r0ekOCyy9x67r6FYPNfCKhwNLtfTThmMXzOne3FA_VY,1144
30
+ bytedance/tks/client.py,sha256=0eLTv4MhI4a0oa_6ks_s0swB_GQZrpmZLTGEfeU8NVE,20547
31
+ bytedance/tks/consts.py,sha256=ts7FndgxMme7znyUtxQn8pAPt_7Up3by07sX1Tw3FG8,4748
32
+ bytedance/tks/exceptions.py,sha256=RjHyptXNp5bjorn4H7pfzmSF3i2y3R-TjHltQE1Kdzo,548
33
+ bytedance/tks/crypto/aes.py,sha256=CnYGzqp--fB_1rtSZU7Tq1ZTzdWRjJYOpW1rtwwj6uE,1338
34
+ bytedance/tks/crypto/ec.py,sha256=7P4yqTgM4PBvR9uvJkL3XNh5FaF1t_VHqMQX9NY7m9k,1382
35
+ bytedance/volcengine_aicc_sdk/__init__.py,sha256=dHcAQi8Qr2z4x1cSgkMqMLoWgYEQHuazy24g8NRK-64,283
36
+ bytedance/volcengine_aicc_sdk/aicc_client.py,sha256=zk4b3R2_mjIiykDo8woE8Yk88EPsiUcfSFYhOowMCCk,11481
37
+ bytedance/volcengine_aicc_sdk/aicc_inference.py,sha256=Mg3SpSxGiOtuphqBaQsH3ShuUlKNgpOvA_TvGRAm7w8,1547
38
+ bytedance/volcengine_aicc_sdk/ark_inference_client.py,sha256=X-hs4PadsW8IY8dzpgS_bxBDjY3A_wteoRuPjHwYYf0,14514
39
+ bytedance/volcengine_aicc_sdk/asr_inference_client.py,sha256=amOdR_mk5xuwX3fXE8VUkJKcMZtmGVcT843NE_yqVdM,5521
40
+ bytedance/volcengine_aicc_sdk/asr_websocket_client.py,sha256=fGNDJJkS6yzI7DiKkQd_VpVw4Zfk1PecRRtCKCXIAZM,26419
41
+ bytedance/volcengine_aicc_sdk/auc_inference_client.py,sha256=xBeWf3oxy8ndzfRZBoRl9rtLywC6bEOJV_iVPohz45M,11714
42
+ bytedance/volcengine_aicc_sdk/cu_inference_client.py,sha256=g3Ecg8X5i2cZ1kGiRBFs6kOZT93R83OEyc11l1lq3YI,12304
43
+ bytedance/volcengine_aicc_sdk/deepseek_inference_client.py,sha256=AxmxzPRz3W0i72T-6vhiV8f5dfkfGIRgBTUn1Vy4Sds,23094
44
+ bytedance/volcengine_aicc_sdk/secure_http_client.py,sha256=aaWXMz0eiFffHJANCk05WrI_MeL0sKMXY_kY5uk6rCw,15647
45
+ bytedance/volcengine_aicc_sdk/seedance_inference_client.py,sha256=G2SfAx8FIi6hvnI8KWWJSw6aKKjnykQ3-kzD8XnUBH0,19456
46
+ bytedance/volcengine_aicc_sdk/seedream_inference_client.py,sha256=JTlMct8jlw4vEqvCWCOX0GtMPsufJJKsN5aTpXrcBx4,8641
47
+ bytedance/volcengine_aicc_sdk/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
48
+ bytedance/volcengine_aicc_sdk/common/aes.py,sha256=3eAPu61gzuKgqtrWrS7WLIZ0V8x-vZ9YXedmhJTAg2g,4007
49
+ bytedance/volcengine_aicc_sdk/common/constant.py,sha256=601_gPluxaeDyGnPQ52rZzc3GG4849gZ965xw5ROQ3o,85
50
+ bytedance/volcengine_aicc_sdk/common/error.py,sha256=AkTQSNrH4f3iPnFVOT-OlvN1TJIqDQ5PkEwuSURZt08,315
51
+ bytedance/volcengine_aicc_sdk/common/tos_utils.py,sha256=sKg7jPctvc8wyqY9Hnpj1_IEoT4Jpe8TYVHf2DLUBkQ,14638
52
+ bytedance/volcengine_aicc_sdk/common/utils.py,sha256=LFwbQIKS1HE4NMmH9juBlBUM814mMZ9mA99Dn0lEpqI,1254
53
+ bytedance/volcengine_aicc_sdk/common/log/__init__.py,sha256=A8M2VPyJFLt4-aH_A3ZfRMOiNqHj4Eze4SfjWxXnm7w,478
54
+ bytedance/volcengine_aicc_sdk/common/log/config.py,sha256=GkTnL6taXAO9uIa0XPUCItE9fxkrIocZA4Y3X5UEgYk,674
55
+ bytedance/volcengine_aicc_sdk/common/log/logger.py,sha256=jItWj8S-ReFGSRU_vpDQodXu0-X2nZQQfN9Cm6QQhlw,2275
56
+ volcengine_python_sdk_aicc-0.0.41.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
57
+ volcengine_python_sdk_aicc-0.0.41.dist-info/METADATA,sha256=FXqwvJCi1-fx1P54U_l5GehmQvKKK2U1B98WG0pC-ik,2777
58
+ volcengine_python_sdk_aicc-0.0.41.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
59
+ volcengine_python_sdk_aicc-0.0.41.dist-info/top_level.txt,sha256=lLam9-wZeoEDcxGLkD1sZVemEZ0YtI1VztLblZ9ic8w,10
60
+ volcengine_python_sdk_aicc-0.0.41.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.0.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1 @@
1
+ bytedance