seltz 0.1.3__py3-none-any.whl → 0.1.4__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.
- seltz/client.py +2 -1
- seltz/exceptions.py +4 -2
- seltz/services/search_service.py +1 -1
- {seltz-0.1.3.dist-info → seltz-0.1.4.dist-info}/METADATA +1 -1
- {seltz-0.1.3.dist-info → seltz-0.1.4.dist-info}/RECORD +7 -7
- {seltz-0.1.3.dist-info → seltz-0.1.4.dist-info}/WHEEL +0 -0
- {seltz-0.1.3.dist-info → seltz-0.1.4.dist-info}/top_level.txt +0 -0
seltz/client.py
CHANGED
seltz/exceptions.py
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"""Custom exceptions for the Seltz SDK."""
|
|
2
2
|
|
|
3
|
+
from typing import Optional
|
|
4
|
+
|
|
3
5
|
import grpc
|
|
4
6
|
|
|
5
7
|
|
|
@@ -33,8 +35,8 @@ class SeltzAPIError(SeltzError):
|
|
|
33
35
|
def __init__(
|
|
34
36
|
self,
|
|
35
37
|
message: str,
|
|
36
|
-
grpc_code: grpc.StatusCode
|
|
37
|
-
grpc_details: str
|
|
38
|
+
grpc_code: Optional[grpc.StatusCode] = None,
|
|
39
|
+
grpc_details: Optional[str] = None,
|
|
38
40
|
):
|
|
39
41
|
super().__init__(message)
|
|
40
42
|
self.grpc_code = grpc_code
|
seltz/services/search_service.py
CHANGED
|
@@ -16,7 +16,7 @@ from . import SearchRequest, SeltzServiceStub
|
|
|
16
16
|
class SearchService:
|
|
17
17
|
"""Service for performing search operations via gRPC."""
|
|
18
18
|
|
|
19
|
-
def __init__(self, channel: grpc.Channel, api_key: str
|
|
19
|
+
def __init__(self, channel: grpc.Channel, api_key: Optional[str]):
|
|
20
20
|
"""Initialize the search service.
|
|
21
21
|
|
|
22
22
|
Args:
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
seltz/__init__.py,sha256=oFZzZxyentKvxIODB2Ijt28SFBU_UhM9GPBbe6olhoQ,642
|
|
2
|
-
seltz/client.py,sha256=
|
|
3
|
-
seltz/exceptions.py,sha256=
|
|
2
|
+
seltz/client.py,sha256=6NsMoa6UpYfR6aBjwICExHBqm2KDdKc5E_f-gjna-40,1238
|
|
3
|
+
seltz/exceptions.py,sha256=oDPXlRfUVLcQGTj17jY7iTQ7YGy0YCRCAq6Cxc9ZgGo,1029
|
|
4
4
|
seltz/seltz.py,sha256=dOzLFuEWxSV1LhcgzzjPUeihsL_-j5Xoo7CQEfYwXbk,2841
|
|
5
5
|
seltz/types.py,sha256=1Es8aV4xvJJo-OXrsXgMyvYZMMm6kAU2l7Pxjs8avz4,8382
|
|
6
6
|
seltz/services/__init__.py,sha256=hPncxVXXYyEjvBCwe0a6l4KGOKfKuarSONL1MjSekmk,457
|
|
7
|
-
seltz/services/search_service.py,sha256=
|
|
7
|
+
seltz/services/search_service.py,sha256=CK8s68NlBVoTieVtgcMIAQuAQoATSdKvE_S3oWLxQFk,2808
|
|
8
8
|
seltz_public_api/proto/v1/seltz_pb2.py,sha256=_xU5gknqT9TgfzB3PYc7v7QqQDO9de5bldsStygwbqk,2684
|
|
9
9
|
seltz_public_api/proto/v1/seltz_pb2.pyi,sha256=UnMchkgCad9csmvhYYww5Koc-Fko-K2LgTNgHDQ4bnY,1719
|
|
10
10
|
seltz_public_api/proto/v1/seltz_pb2_grpc.py,sha256=Gt-sDKmEsNYzRbzXKvQKIDFoVVnjU8LtEm_sbKyTuro,3024
|
|
11
|
-
seltz-0.1.
|
|
12
|
-
seltz-0.1.
|
|
13
|
-
seltz-0.1.
|
|
14
|
-
seltz-0.1.
|
|
11
|
+
seltz-0.1.4.dist-info/METADATA,sha256=VppB8wJoGKefBV2e3wr_JcOCN7-JMab2ni8peGx4Kc8,5762
|
|
12
|
+
seltz-0.1.4.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
13
|
+
seltz-0.1.4.dist-info/top_level.txt,sha256=omV6Wwfxo_CgGHOAIE8aKEwm2-3c4ETyBCP-0ZIaZs0,23
|
|
14
|
+
seltz-0.1.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|