clerk-sdk 0.1.5__py3-none-any.whl → 0.1.7__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.
@@ -36,11 +36,15 @@ def clerk_code():
36
36
  except Exception as e:
37
37
  output = e
38
38
 
39
- # 3. Always write to output.pkl
39
+ # 3. write to output.pkl
40
40
  try:
41
41
  if use_pickle:
42
42
  with open(output_pkl, "wb") as f:
43
- pickle.dump(output, f)
43
+ if isinstance(e, Exception):
44
+ pickle.dump(output, f)
45
+ else:
46
+ pickle.dump(output.model_dump(mode="json"), f)
47
+
44
48
  except Exception as e:
45
49
  raise RuntimeError(f"Failed to write output pickle: {e}") from e
46
50
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: clerk-sdk
3
- Version: 0.1.5
3
+ Version: 0.1.7
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=Vz7iXBlpp9UpeH14zAaY-j4XTf6z8DMC_sDFE4Qu0Hk,1904
5
+ clerk/decorator/task_decorator.py,sha256=C64NUvv_PlWQUwK8gARl5LCyCB6R6SYIkrCzZnZsqxI,2060
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.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,,
11
+ clerk_sdk-0.1.7.dist-info/licenses/LICENSE,sha256=GTVQl3vH6ht70wJXKC0yMT8CmXKHxv_YyO_utAgm7EA,1065
12
+ clerk_sdk-0.1.7.dist-info/METADATA,sha256=L4ixk_NkoDz7MYQncT3KAPBDyfNP0WvTymwzjHys57k,3041
13
+ clerk_sdk-0.1.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
14
+ clerk_sdk-0.1.7.dist-info/top_level.txt,sha256=99eQiU6d05_-f41tmSFanfI_SIJeAdh7u9m3LNSfcv4,6
15
+ clerk_sdk-0.1.7.dist-info/RECORD,,