rapida-python 0.1.26__tar.gz → 0.1.27__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 (97) hide show
  1. {rapida_python-0.1.26 → rapida_python-0.1.27}/PKG-INFO +1 -1
  2. {rapida_python-0.1.26 → rapida_python-0.1.27}/pyproject.toml +1 -1
  3. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/call.py +15 -21
  4. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/configs/__init__.py +3 -7
  5. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/version.py +1 -1
  6. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida_python.egg-info/PKG-INFO +1 -1
  7. {rapida_python-0.1.26 → rapida_python-0.1.27}/tests/test_configs.py +0 -19
  8. {rapida_python-0.1.26 → rapida_python-0.1.27}/README.md +0 -0
  9. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/__init__.py +0 -0
  10. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/agentkit/__init__.py +0 -0
  11. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/__init__.py +0 -0
  12. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/assistant.py +0 -0
  13. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/endpoint.py +0 -0
  14. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/invoke.py +0 -0
  15. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/__init__.py +0 -0
  16. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/agentkit_pb2.py +0 -0
  17. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/agentkit_pb2.pyi +0 -0
  18. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/agentkit_pb2_grpc.py +0 -0
  19. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/assistant_analysis_pb2.py +0 -0
  20. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/assistant_analysis_pb2.pyi +0 -0
  21. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/assistant_analysis_pb2_grpc.py +0 -0
  22. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/assistant_api_pb2.py +0 -0
  23. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/assistant_api_pb2.pyi +0 -0
  24. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/assistant_api_pb2_grpc.py +0 -0
  25. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/assistant_deployment_pb2.py +0 -0
  26. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/assistant_deployment_pb2.pyi +0 -0
  27. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/assistant_deployment_pb2_grpc.py +0 -0
  28. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/assistant_knowledge_pb2.py +0 -0
  29. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/assistant_knowledge_pb2.pyi +0 -0
  30. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/assistant_knowledge_pb2_grpc.py +0 -0
  31. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/assistant_provider_pb2.py +0 -0
  32. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/assistant_provider_pb2.pyi +0 -0
  33. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/assistant_provider_pb2_grpc.py +0 -0
  34. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/assistant_tool_pb2.py +0 -0
  35. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/assistant_tool_pb2.pyi +0 -0
  36. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/assistant_tool_pb2_grpc.py +0 -0
  37. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/assistant_webhook_pb2.py +0 -0
  38. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/assistant_webhook_pb2.pyi +0 -0
  39. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/assistant_webhook_pb2_grpc.py +0 -0
  40. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/audit_logging_api_pb2.py +0 -0
  41. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/audit_logging_api_pb2.pyi +0 -0
  42. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/audit_logging_api_pb2_grpc.py +0 -0
  43. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/billing_api_pb2.py +0 -0
  44. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/billing_api_pb2.pyi +0 -0
  45. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/billing_api_pb2_grpc.py +0 -0
  46. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/common_pb2.py +0 -0
  47. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/common_pb2.pyi +0 -0
  48. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/common_pb2_grpc.py +0 -0
  49. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/connect_api_pb2.py +0 -0
  50. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/connect_api_pb2.pyi +0 -0
  51. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/connect_api_pb2_grpc.py +0 -0
  52. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/document_api_pb2.py +0 -0
  53. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/document_api_pb2.pyi +0 -0
  54. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/document_api_pb2_grpc.py +0 -0
  55. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/endpoint_api_pb2.py +0 -0
  56. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/endpoint_api_pb2.pyi +0 -0
  57. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/endpoint_api_pb2_grpc.py +0 -0
  58. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/integration_api_pb2.py +0 -0
  59. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/integration_api_pb2.pyi +0 -0
  60. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/integration_api_pb2_grpc.py +0 -0
  61. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/invoker_api_pb2.py +0 -0
  62. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/invoker_api_pb2.pyi +0 -0
  63. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/invoker_api_pb2_grpc.py +0 -0
  64. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/knowledge_api_pb2.py +0 -0
  65. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/knowledge_api_pb2.pyi +0 -0
  66. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/knowledge_api_pb2_grpc.py +0 -0
  67. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/notification_api_pb2.py +0 -0
  68. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/notification_api_pb2.pyi +0 -0
  69. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/notification_api_pb2_grpc.py +0 -0
  70. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/talk_api_pb2.py +0 -0
  71. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/talk_api_pb2.pyi +0 -0
  72. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/talk_api_pb2_grpc.py +0 -0
  73. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/vault_api_pb2.py +0 -0
  74. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/vault_api_pb2.pyi +0 -0
  75. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/vault_api_pb2_grpc.py +0 -0
  76. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/web_api_pb2.py +0 -0
  77. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/web_api_pb2.pyi +0 -0
  78. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/web_api_pb2_grpc.py +0 -0
  79. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/webrtc_pb2.py +0 -0
  80. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/webrtc_pb2.pyi +0 -0
  81. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/clients/protos/webrtc_pb2_grpc.py +0 -0
  82. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/connections/__init__.py +0 -0
  83. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/utils/__init__.py +0 -0
  84. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/utils/rapida_environment.py +0 -0
  85. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/utils/rapida_header.py +0 -0
  86. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/utils/rapida_region.py +0 -0
  87. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/utils/rapida_source.py +0 -0
  88. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida/utils/rapida_value.py +0 -0
  89. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida_python.egg-info/SOURCES.txt +0 -0
  90. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida_python.egg-info/dependency_links.txt +0 -0
  91. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida_python.egg-info/requires.txt +0 -0
  92. {rapida_python-0.1.26 → rapida_python-0.1.27}/rapida_python.egg-info/top_level.txt +0 -0
  93. {rapida_python-0.1.26 → rapida_python-0.1.27}/setup.cfg +0 -0
  94. {rapida_python-0.1.26 → rapida_python-0.1.27}/setup.py +0 -0
  95. {rapida_python-0.1.26 → rapida_python-0.1.27}/tests/test_connections.py +0 -0
  96. {rapida_python-0.1.26 → rapida_python-0.1.27}/tests/test_proto_imports.py +0 -0
  97. {rapida_python-0.1.26 → rapida_python-0.1.27}/tests/test_version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rapida-python
3
- Version: 0.1.26
3
+ Version: 0.1.27
4
4
  Summary: RapidaAI SDK to integrate rapida.ai APIs
5
5
  Author-email: RapidaAI <code@rapida.ai>
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "rapida-python"
7
- version = "0.1.26"
7
+ version = "0.1.27"
8
8
  description = "RapidaAI SDK to integrate rapida.ai APIs"
9
9
  readme = "README.md"
10
10
  authors = [{name = "RapidaAI", email = "code@rapida.ai"}]
@@ -20,7 +20,7 @@
20
20
  #
21
21
  # Author: Prashant <prashant@rapida.ai>
22
22
 
23
- from typing import Any, Union
23
+ from typing import Union
24
24
 
25
25
  from rapida.clients.protos.talk_api_pb2 import (
26
26
  CreateBulkPhoneCallRequest,
@@ -44,25 +44,15 @@ def _resolve_auth(
44
44
  ) -> Union[UserAuthInfo, ClientAuthInfo]:
45
45
  return client_cfg.auth if auth is None else auth
46
46
 
47
-
48
- def _call_conversation_client(
49
- client_cfg: ConnectionConfig,
50
- method_name: str,
51
- request: Any,
52
- auth: AuthMetadata = None,
53
- ) -> Any:
54
- return getattr(client_cfg.conversation_client, method_name)(
55
- request,
56
- metadata=_resolve_auth(client_cfg, auth),
57
- )
58
-
59
-
60
47
  def create_message_metric(
61
48
  client_cfg: ConnectionConfig,
62
49
  request: CreateMessageMetricRequest,
63
50
  auth: AuthMetadata = None,
64
51
  ) -> CreateMessageMetricResponse:
65
- return _call_conversation_client(client_cfg, "CreateMessageMetric", request, auth)
52
+ return client_cfg.conversation_client.CreateMessageMetric(
53
+ request,
54
+ metadata=_resolve_auth(client_cfg, auth),
55
+ )
66
56
 
67
57
 
68
58
  def create_conversation_metric(
@@ -70,11 +60,9 @@ def create_conversation_metric(
70
60
  request: CreateConversationMetricRequest,
71
61
  auth: AuthMetadata = None,
72
62
  ) -> CreateConversationMetricResponse:
73
- return _call_conversation_client(
74
- client_cfg,
75
- "CreateConversationMetric",
63
+ return client_cfg.conversation_client.CreateConversationMetric(
76
64
  request,
77
- auth,
65
+ metadata=_resolve_auth(client_cfg, auth),
78
66
  )
79
67
 
80
68
 
@@ -83,7 +71,10 @@ def create_phone_call(
83
71
  request: CreatePhoneCallRequest,
84
72
  auth: AuthMetadata = None,
85
73
  ) -> CreatePhoneCallResponse:
86
- return _call_conversation_client(client_cfg, "CreatePhoneCall", request, auth)
74
+ return client_cfg.conversation_client.CreatePhoneCall(
75
+ request,
76
+ metadata=_resolve_auth(client_cfg, auth),
77
+ )
87
78
 
88
79
 
89
80
  def create_bulk_phone_call(
@@ -91,7 +82,10 @@ def create_bulk_phone_call(
91
82
  request: CreateBulkPhoneCallRequest,
92
83
  auth: AuthMetadata = None,
93
84
  ) -> CreateBulkPhoneCallResponse:
94
- return _call_conversation_client(client_cfg, "CreateBulkPhoneCall", request, auth)
85
+ return client_cfg.conversation_client.CreateBulkPhoneCall(
86
+ request,
87
+ metadata=_resolve_auth(client_cfg, auth),
88
+ )
95
89
 
96
90
 
97
91
  __all__ = [
@@ -24,14 +24,10 @@ Author: Prashant <prashant@rapida.ai>
24
24
  This module provides functions for managing projects through the ProjectService.
25
25
  """
26
26
 
27
- ASSISTANT_API = "assistant-01.in.rapida.ai"
28
- WEB_API = "api-01.in.rapida.ai"
29
- ENDPOINT_API = "endpoint-01.in.rapida.ai"
27
+ ASSISTANT_API = "websocket-01.in.rapida.ai:50051"
28
+ WEB_API = "api-01.in.rapida.ai:50051"
29
+ ENDPOINT_API = "api-01.in.rapida.ai:50051"
30
30
 
31
31
  LOCAL_ASSISTANT_API = "localhost:9007"
32
32
  LOCAL_WEB_API = "localhost:9001"
33
33
  LOCAL_ENDPOINT_API = "localhost:9005"
34
-
35
- GRPC_ENDPOINT_URL = "endpoint-01.in.rapida.ai"
36
- GRPC_ASSISTANT_URL = "assistant-01.in.rapida.ai"
37
- GRPC_GATEWAY_URL = "gateway-01.rapida.ai"
@@ -22,7 +22,7 @@
22
22
 
23
23
  _MAJOR = "0"
24
24
  _MINOR = "1"
25
- _REVISION = "7"
25
+ _REVISION = "8"
26
26
 
27
27
  VERSION_SHORT = f"{_MAJOR}.{_MINOR}"
28
28
  VERSION = f"{_MAJOR}.{_MINOR}.{_REVISION}"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rapida-python
3
- Version: 0.1.26
3
+ Version: 0.1.27
4
4
  Summary: RapidaAI SDK to integrate rapida.ai APIs
5
5
  Author-email: RapidaAI <code@rapida.ai>
6
6
  License-Expression: MIT
@@ -36,15 +36,11 @@ ENDPOINT_API = module.ENDPOINT_API
36
36
  LOCAL_ASSISTANT_API = module.LOCAL_ASSISTANT_API
37
37
  LOCAL_WEB_API = module.LOCAL_WEB_API
38
38
  LOCAL_ENDPOINT_API = module.LOCAL_ENDPOINT_API
39
- GRPC_ENDPOINT_URL = module.GRPC_ENDPOINT_URL
40
- GRPC_ASSISTANT_URL = module.GRPC_ASSISTANT_URL
41
- GRPC_GATEWAY_URL = module.GRPC_GATEWAY_URL
42
39
 
43
40
  # Old import kept for reference:
44
41
  # from rapida.configs import (
45
42
  # ASSISTANT_API, WEB_API, ENDPOINT_API,
46
43
  # LOCAL_ASSISTANT_API, LOCAL_WEB_API, LOCAL_ENDPOINT_API,
47
- # GRPC_ENDPOINT_URL, GRPC_ASSISTANT_URL, GRPC_GATEWAY_URL,
48
44
  # )
49
45
 
50
46
 
@@ -78,21 +74,6 @@ class TestConfigs:
78
74
  """Test LOCAL_ENDPOINT_API points to localhost."""
79
75
  assert "localhost" in LOCAL_ENDPOINT_API
80
76
 
81
- def test_grpc_endpoint_url_is_set(self):
82
- """Test GRPC_ENDPOINT_URL has a value."""
83
- assert GRPC_ENDPOINT_URL is not None
84
- assert len(GRPC_ENDPOINT_URL) > 0
85
-
86
- def test_grpc_assistant_url_is_set(self):
87
- """Test GRPC_ASSISTANT_URL has a value."""
88
- assert GRPC_ASSISTANT_URL is not None
89
- assert len(GRPC_ASSISTANT_URL) > 0
90
-
91
- def test_grpc_gateway_url_is_set(self):
92
- """Test GRPC_GATEWAY_URL has a value."""
93
- assert GRPC_GATEWAY_URL is not None
94
- assert len(GRPC_GATEWAY_URL) > 0
95
-
96
77
  def test_production_apis_are_rapida_domain(self):
97
78
  """Test production APIs use rapida.ai domain."""
98
79
  assert "rapida.ai" in ASSISTANT_API
File without changes
File without changes
File without changes