clerk-sdk 0.1.4__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.
- clerk/decorator/task_decorator.py +6 -8
- {clerk_sdk-0.1.4.dist-info → clerk_sdk-0.1.5.dist-info}/METADATA +1 -1
- {clerk_sdk-0.1.4.dist-info → clerk_sdk-0.1.5.dist-info}/RECORD +6 -6
- {clerk_sdk-0.1.4.dist-info → clerk_sdk-0.1.5.dist-info}/WHEEL +0 -0
- {clerk_sdk-0.1.4.dist-info → clerk_sdk-0.1.5.dist-info}/licenses/LICENSE +0 -0
- {clerk_sdk-0.1.4.dist-info → clerk_sdk-0.1.5.dist-info}/top_level.txt +0 -0
|
@@ -30,19 +30,17 @@ def clerk_code():
|
|
|
30
30
|
|
|
31
31
|
# 2. Execute function
|
|
32
32
|
try:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
raise TypeError(
|
|
37
|
-
"Function must return a ClerkCodePayload instance."
|
|
38
|
-
)
|
|
33
|
+
output = func(payload)
|
|
34
|
+
if not isinstance(output, ClerkCodePayload):
|
|
35
|
+
raise TypeError("Function must return a ClerkCodePayload instance.")
|
|
39
36
|
except Exception as e:
|
|
40
37
|
output = e
|
|
41
38
|
|
|
42
39
|
# 3. Always write to output.pkl
|
|
43
40
|
try:
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
if use_pickle:
|
|
42
|
+
with open(output_pkl, "wb") as f:
|
|
43
|
+
pickle.dump(output, f)
|
|
46
44
|
except Exception as e:
|
|
47
45
|
raise RuntimeError(f"Failed to write output pickle: {e}") from e
|
|
48
46
|
|
|
@@ -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=
|
|
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.
|
|
12
|
-
clerk_sdk-0.1.
|
|
13
|
-
clerk_sdk-0.1.
|
|
14
|
-
clerk_sdk-0.1.
|
|
15
|
-
clerk_sdk-0.1.
|
|
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,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|