clerk-sdk 0.4.13__py3-none-any.whl → 0.4.14__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.
clerk/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
1
  from .client import Clerk
2
2
 
3
3
 
4
- __version__ = "0.4.13"
4
+ __version__ = "0.4.14"
clerk/base.py CHANGED
@@ -66,7 +66,7 @@ class BaseClerk(BaseModel):
66
66
 
67
67
  @backoff.on_exception(
68
68
  backoff.expo,
69
- (requests.exceptions.RequestException,),
69
+ Exception,
70
70
  max_tries=3,
71
71
  jitter=None,
72
72
  giveup=giveup_handler,
@@ -42,7 +42,11 @@ class RPAClerk(BaseClerk):
42
42
 
43
43
  def get_coordinates(self, payload: Dict[str, Any]) -> Coords:
44
44
  endpoint = "/action_model/get_coordinates"
45
- res = self.post_request(endpoint=endpoint, json=payload)
45
+ try:
46
+ res = self.post_request(endpoint=endpoint, json=payload)
47
+ except Exception as e:
48
+ # We always want to be raising RuntimeError here to be caught in the do() method
49
+ raise RuntimeError(f"Failed to get coordinates: {str(e)}") from e
46
50
  if res.data[0] is None: # type: ignore
47
51
  raise RuntimeError("No coordinates found in the response.")
48
52
  return Coords.model_validate(res.data[0])
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: clerk-sdk
3
- Version: 0.4.13
3
+ Version: 0.4.14
4
4
  Summary: Library for interacting with Clerk
5
5
  Home-page: https://github.com/F-ONE-Group/clerk_pypi
6
6
  Author: F-ONE Group
@@ -1,5 +1,5 @@
1
- clerk/__init__.py,sha256=8vN7q39FUMsGedXrS1tuJ-6tLM55TXCAz8astAma23w,51
2
- clerk/base.py,sha256=S1RKc2pBw2FPlVjefJzsNtyTDPB0UG46C2K_QVV1opA,4008
1
+ clerk/__init__.py,sha256=xGgrQuxBmA5NdRf4kuLF14MHSYwPsVBcmuyxvPhL6TU,51
2
+ clerk/base.py,sha256=mhAIpNyzS5RhcF8wndbUl450UCbB-PNY8IpDdffCLY4,3978
3
3
  clerk/client.py,sha256=RdOvC23WK9ZtIXDOYaoSFk9debh3UTmstBXjAswAH6E,4981
4
4
  clerk/decorator/__init__.py,sha256=yGGcS17VsZ7cZ-hVGCm3I3vGDJMiJIAqmDGzriIi0DI,65
5
5
  clerk/decorator/models.py,sha256=nFMdVSG3nJ4hrEXs9YbI_GgjHbVjhSWZokOCzUh-lqQ,521
@@ -8,7 +8,7 @@ clerk/exceptions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,
8
8
  clerk/exceptions/exceptions.py,sha256=gSCma06b6W6c0NrA2rhzd5YjFhZGa6caShX07lo-_3E,1291
9
9
  clerk/exceptions/remote_device.py,sha256=R0Vfmk8ejibEFeV29A8Vqst2YA6yxdqEX9lP5wWubgM,134
10
10
  clerk/gui_automation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
- clerk/gui_automation/client.py,sha256=V5ytb4_rXy4WznJWmUcDfdTCG6PXKsIJqAgyJ7Qis8M,5151
11
+ clerk/gui_automation/client.py,sha256=upHV6aHL5jjr4gntj-9TDjVth1eMVZwFF4EcjGeLPh8,5370
12
12
  clerk/gui_automation/action_model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
13
  clerk/gui_automation/action_model/model.py,sha256=yzaCyEMOH3YMkPBf6IwUMuu69-xyf78HzmthiewgWQY,3811
14
14
  clerk/gui_automation/action_model/utils.py,sha256=xzFxgN-bTK6HKGS7J-esQZ-ePj_yG72T-2ZVhcWvKjw,798
@@ -45,8 +45,8 @@ clerk/models/ui_operator.py,sha256=mKTJUFZgv7PeEt5oys28HVZxHOJsofmRQOcRpqj0dbU,2
45
45
  clerk/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
46
46
  clerk/utils/logger.py,sha256=NrMIlJfVmRjjRw_N_Jngkl0qqv7btXUbg5wxcRmFEH4,3800
47
47
  clerk/utils/save_artifact.py,sha256=94aYkYNVGcSUaSWZmdjiY6Oc-3yCKb2XWCZ56IAXQqk,1158
48
- clerk_sdk-0.4.13.dist-info/licenses/LICENSE,sha256=GTVQl3vH6ht70wJXKC0yMT8CmXKHxv_YyO_utAgm7EA,1065
49
- clerk_sdk-0.4.13.dist-info/METADATA,sha256=8H4cSbJ1XG8pENpFq-8FtBuhTLvs_0fqhMNqdf4GlY4,9937
50
- clerk_sdk-0.4.13.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
51
- clerk_sdk-0.4.13.dist-info/top_level.txt,sha256=99eQiU6d05_-f41tmSFanfI_SIJeAdh7u9m3LNSfcv4,6
52
- clerk_sdk-0.4.13.dist-info/RECORD,,
48
+ clerk_sdk-0.4.14.dist-info/licenses/LICENSE,sha256=GTVQl3vH6ht70wJXKC0yMT8CmXKHxv_YyO_utAgm7EA,1065
49
+ clerk_sdk-0.4.14.dist-info/METADATA,sha256=y-HZXUX8fPKRqysWqtMOY1MRo9DL21_tfngw3g9fkSQ,9937
50
+ clerk_sdk-0.4.14.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
51
+ clerk_sdk-0.4.14.dist-info/top_level.txt,sha256=99eQiU6d05_-f41tmSFanfI_SIJeAdh7u9m3LNSfcv4,6
52
+ clerk_sdk-0.4.14.dist-info/RECORD,,