tamar-model-client 0.1.4__tar.gz → 0.1.6__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 (24) hide show
  1. {tamar_model_client-0.1.4 → tamar_model_client-0.1.6}/PKG-INFO +2 -5
  2. {tamar_model_client-0.1.4 → tamar_model_client-0.1.6}/setup.py +2 -5
  3. {tamar_model_client-0.1.4 → tamar_model_client-0.1.6}/tamar_model_client/async_client.py +6 -1
  4. {tamar_model_client-0.1.4 → tamar_model_client-0.1.6}/tamar_model_client.egg-info/PKG-INFO +2 -5
  5. {tamar_model_client-0.1.4 → tamar_model_client-0.1.6}/README.md +0 -0
  6. {tamar_model_client-0.1.4 → tamar_model_client-0.1.6}/setup.cfg +0 -0
  7. {tamar_model_client-0.1.4 → tamar_model_client-0.1.6}/tamar_model_client/__init__.py +0 -0
  8. {tamar_model_client-0.1.4 → tamar_model_client-0.1.6}/tamar_model_client/auth.py +0 -0
  9. {tamar_model_client-0.1.4 → tamar_model_client-0.1.6}/tamar_model_client/enums/__init__.py +0 -0
  10. {tamar_model_client-0.1.4 → tamar_model_client-0.1.6}/tamar_model_client/enums/channel.py +0 -0
  11. {tamar_model_client-0.1.4 → tamar_model_client-0.1.6}/tamar_model_client/enums/invoke.py +0 -0
  12. {tamar_model_client-0.1.4 → tamar_model_client-0.1.6}/tamar_model_client/enums/providers.py +0 -0
  13. {tamar_model_client-0.1.4 → tamar_model_client-0.1.6}/tamar_model_client/exceptions.py +0 -0
  14. {tamar_model_client-0.1.4 → tamar_model_client-0.1.6}/tamar_model_client/generated/__init__.py +0 -0
  15. {tamar_model_client-0.1.4 → tamar_model_client-0.1.6}/tamar_model_client/generated/model_service_pb2.py +0 -0
  16. {tamar_model_client-0.1.4 → tamar_model_client-0.1.6}/tamar_model_client/generated/model_service_pb2_grpc.py +0 -0
  17. {tamar_model_client-0.1.4 → tamar_model_client-0.1.6}/tamar_model_client/schemas/__init__.py +0 -0
  18. {tamar_model_client-0.1.4 → tamar_model_client-0.1.6}/tamar_model_client/schemas/inputs.py +0 -0
  19. {tamar_model_client-0.1.4 → tamar_model_client-0.1.6}/tamar_model_client/schemas/outputs.py +0 -0
  20. {tamar_model_client-0.1.4 → tamar_model_client-0.1.6}/tamar_model_client/sync_client.py +0 -0
  21. {tamar_model_client-0.1.4 → tamar_model_client-0.1.6}/tamar_model_client.egg-info/SOURCES.txt +0 -0
  22. {tamar_model_client-0.1.4 → tamar_model_client-0.1.6}/tamar_model_client.egg-info/dependency_links.txt +0 -0
  23. {tamar_model_client-0.1.4 → tamar_model_client-0.1.6}/tamar_model_client.egg-info/requires.txt +0 -0
  24. {tamar_model_client-0.1.4 → tamar_model_client-0.1.6}/tamar_model_client.egg-info/top_level.txt +0 -0
@@ -1,15 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tamar-model-client
3
- Version: 0.1.4
3
+ Version: 0.1.6
4
4
  Summary: A Python SDK for interacting with the Model Manager gRPC service
5
5
  Home-page: http://gitlab.tamaredge.top/project-tap/AgentOS/model-manager-client
6
6
  Author: Oscar Ou
7
7
  Author-email: oscar.ou@tamaredge.ai
8
- Classifier: Programming Language :: Python :: 3
9
- Classifier: Programming Language :: Python :: 3.8
10
- Classifier: Programming Language :: Python :: 3.9
11
- Classifier: Programming Language :: Python :: 3.10
12
8
  Classifier: Programming Language :: Python :: 3.11
9
+ Classifier: Programming Language :: Python :: 3.12
13
10
  Classifier: License :: OSI Approved :: MIT License
14
11
  Classifier: Operating System :: OS Independent
15
12
  Requires-Python: >=3.8
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="tamar-model-client",
5
- version="0.1.4",
5
+ version="0.1.6",
6
6
  description="A Python SDK for interacting with the Model Manager gRPC service",
7
7
  author="Oscar Ou",
8
8
  author_email="oscar.ou@tamaredge.ai",
@@ -24,11 +24,8 @@ setup(
24
24
  long_description_content_type="text/markdown",
25
25
  url="http://gitlab.tamaredge.top/project-tap/AgentOS/model-manager-client",
26
26
  classifiers=[
27
- "Programming Language :: Python :: 3",
28
- "Programming Language :: Python :: 3.8",
29
- "Programming Language :: Python :: 3.9",
30
- "Programming Language :: Python :: 3.10",
31
27
  "Programming Language :: Python :: 3.11",
28
+ "Programming Language :: Python :: 3.12",
32
29
  "License :: OSI Approved :: MIT License",
33
30
  "Operating System :: OS Independent",
34
31
  ],
@@ -28,6 +28,8 @@ if not logging.getLogger().hasHandlers():
28
28
 
29
29
  logger = logging.getLogger(__name__)
30
30
 
31
+ MAX_MESSAGE_LENGTH = 2 ** 31 - 1 # 对于32位系统
32
+
31
33
 
32
34
  def is_effective_value(value) -> bool:
33
35
  """
@@ -146,7 +148,10 @@ class AsyncTamarModelClient:
146
148
  return
147
149
 
148
150
  retry_count = 0
149
- options = []
151
+ options = [
152
+ ('grpc.max_send_message_length', MAX_MESSAGE_LENGTH),
153
+ ('grpc.max_receive_message_length', MAX_MESSAGE_LENGTH),
154
+ ]
150
155
  if self.default_authority:
151
156
  options.append(("grpc.default_authority", self.default_authority))
152
157
 
@@ -1,15 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tamar-model-client
3
- Version: 0.1.4
3
+ Version: 0.1.6
4
4
  Summary: A Python SDK for interacting with the Model Manager gRPC service
5
5
  Home-page: http://gitlab.tamaredge.top/project-tap/AgentOS/model-manager-client
6
6
  Author: Oscar Ou
7
7
  Author-email: oscar.ou@tamaredge.ai
8
- Classifier: Programming Language :: Python :: 3
9
- Classifier: Programming Language :: Python :: 3.8
10
- Classifier: Programming Language :: Python :: 3.9
11
- Classifier: Programming Language :: Python :: 3.10
12
8
  Classifier: Programming Language :: Python :: 3.11
9
+ Classifier: Programming Language :: Python :: 3.12
13
10
  Classifier: License :: OSI Approved :: MIT License
14
11
  Classifier: Operating System :: OS Independent
15
12
  Requires-Python: >=3.8