clerk-sdk 0.1.3__py3-none-any.whl → 0.1.5__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.
@@ -12,7 +12,9 @@ def clerk_code():
12
12
  @wraps(func)
13
13
  def wrapper(payload: Optional[ClerkCodePayload] = None) -> ClerkCodePayload:
14
14
  # 1. Load payload from file if not provided
15
+ use_pickle = False
15
16
  if payload is None:
17
+ use_pickle = True
16
18
  try:
17
19
  with open(input_pkl, "rb") as f:
18
20
  raw_data = pickle.load(f)
@@ -36,14 +38,16 @@ def clerk_code():
36
38
 
37
39
  # 3. Always write to output.pkl
38
40
  try:
39
- with open(output_pkl, "wb") as f:
40
- pickle.dump(output, f)
41
+ if use_pickle:
42
+ with open(output_pkl, "wb") as f:
43
+ pickle.dump(output, f)
41
44
  except Exception as e:
42
45
  raise RuntimeError(f"Failed to write output pickle: {e}") from e
43
46
 
44
47
  # 4. Raise if error or return result
45
48
  if isinstance(output, Exception):
46
49
  raise output
50
+
47
51
  return output
48
52
 
49
53
  return wrapper
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: clerk-sdk
3
- Version: 0.1.3
3
+ Version: 0.1.5
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
@@ -2,14 +2,14 @@ clerk/__init__.py,sha256=LWpbImG7352mUJYC1tRm_zsn5rnt4sFl5ldoq5f0dlo,26
2
2
  clerk/client.py,sha256=UEbs5AhnBs6JWstLzT-TPHZ-yxyBwTFDLemv-yh25K4,3386
3
3
  clerk/decorator/__init__.py,sha256=4VCGOFNq7pA7iJS410V_R9eWfjxP7mwxwa4thwaUTf8,39
4
4
  clerk/decorator/models.py,sha256=FKs7oCq50hmvbzYWuscvqlL7boPYzMKv0Vg3tznmwao,361
5
- clerk/decorator/task_decorator.py,sha256=CW8Fhu-4DanJWB8OaDSZtdeWhDeJQOIq4PofEDf8sqg,1799
5
+ clerk/decorator/task_decorator.py,sha256=Vz7iXBlpp9UpeH14zAaY-j4XTf6z8DMC_sDFE4Qu0Hk,1904
6
6
  clerk/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  clerk/models/document.py,sha256=Bbt3YSvGcOrJJjJBYjbDGXpZIaQAYdq_-uIr2urwy5s,525
8
8
  clerk/models/document_statuses.py,sha256=ytTQhgACs2m22qz51_7Ti0IxzbVyl-fl7uF7CnDEyLA,279
9
9
  clerk/models/file.py,sha256=7n6bV6ukRA-uh7MFxUx_TEMNpVAdNe5O0nKIeneCQhg,459
10
10
  clerk/models/response_model.py,sha256=R62daUN1YVOwgnrh_epvFRsQcOwT7R4u97l73egvm-c,232
11
- clerk_sdk-0.1.3.dist-info/licenses/LICENSE,sha256=GTVQl3vH6ht70wJXKC0yMT8CmXKHxv_YyO_utAgm7EA,1065
12
- clerk_sdk-0.1.3.dist-info/METADATA,sha256=lNoj7zwtbuuWUSqI_s6Lq25Q9HGfUsmAYwidw_SCGVE,3041
13
- clerk_sdk-0.1.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
14
- clerk_sdk-0.1.3.dist-info/top_level.txt,sha256=99eQiU6d05_-f41tmSFanfI_SIJeAdh7u9m3LNSfcv4,6
15
- clerk_sdk-0.1.3.dist-info/RECORD,,
11
+ clerk_sdk-0.1.5.dist-info/licenses/LICENSE,sha256=GTVQl3vH6ht70wJXKC0yMT8CmXKHxv_YyO_utAgm7EA,1065
12
+ clerk_sdk-0.1.5.dist-info/METADATA,sha256=obWc051Rw6C1sYOdbDAxYUp63Q1tnIcbtqiIn401-4A,3041
13
+ clerk_sdk-0.1.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
14
+ clerk_sdk-0.1.5.dist-info/top_level.txt,sha256=99eQiU6d05_-f41tmSFanfI_SIJeAdh7u9m3LNSfcv4,6
15
+ clerk_sdk-0.1.5.dist-info/RECORD,,