clerk-sdk 0.1.4__tar.gz → 0.1.6__tar.gz

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.
Files changed (23) hide show
  1. {clerk_sdk-0.1.4/clerk_sdk.egg-info → clerk_sdk-0.1.6}/PKG-INFO +1 -1
  2. {clerk_sdk-0.1.4 → clerk_sdk-0.1.6}/clerk/decorator/task_decorator.py +6 -8
  3. {clerk_sdk-0.1.4 → clerk_sdk-0.1.6/clerk_sdk.egg-info}/PKG-INFO +1 -1
  4. {clerk_sdk-0.1.4 → clerk_sdk-0.1.6}/setup.py +1 -1
  5. {clerk_sdk-0.1.4 → clerk_sdk-0.1.6}/LICENSE +0 -0
  6. {clerk_sdk-0.1.4 → clerk_sdk-0.1.6}/MANIFEST.in +0 -0
  7. {clerk_sdk-0.1.4 → clerk_sdk-0.1.6}/README.md +0 -0
  8. {clerk_sdk-0.1.4 → clerk_sdk-0.1.6}/clerk/__init__.py +0 -0
  9. {clerk_sdk-0.1.4 → clerk_sdk-0.1.6}/clerk/client.py +0 -0
  10. {clerk_sdk-0.1.4 → clerk_sdk-0.1.6}/clerk/decorator/__init__.py +0 -0
  11. {clerk_sdk-0.1.4 → clerk_sdk-0.1.6}/clerk/decorator/models.py +0 -0
  12. {clerk_sdk-0.1.4 → clerk_sdk-0.1.6}/clerk/models/__init__.py +0 -0
  13. {clerk_sdk-0.1.4 → clerk_sdk-0.1.6}/clerk/models/document.py +0 -0
  14. {clerk_sdk-0.1.4 → clerk_sdk-0.1.6}/clerk/models/document_statuses.py +0 -0
  15. {clerk_sdk-0.1.4 → clerk_sdk-0.1.6}/clerk/models/file.py +0 -0
  16. {clerk_sdk-0.1.4 → clerk_sdk-0.1.6}/clerk/models/response_model.py +0 -0
  17. {clerk_sdk-0.1.4 → clerk_sdk-0.1.6}/clerk_sdk.egg-info/SOURCES.txt +0 -0
  18. {clerk_sdk-0.1.4 → clerk_sdk-0.1.6}/clerk_sdk.egg-info/dependency_links.txt +0 -0
  19. {clerk_sdk-0.1.4 → clerk_sdk-0.1.6}/clerk_sdk.egg-info/requires.txt +0 -0
  20. {clerk_sdk-0.1.4 → clerk_sdk-0.1.6}/clerk_sdk.egg-info/top_level.txt +0 -0
  21. {clerk_sdk-0.1.4 → clerk_sdk-0.1.6}/pyproject.toml +0 -0
  22. {clerk_sdk-0.1.4 → clerk_sdk-0.1.6}/requirements.txt +0 -0
  23. {clerk_sdk-0.1.4 → clerk_sdk-0.1.6}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: clerk-sdk
3
- Version: 0.1.4
3
+ Version: 0.1.6
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
@@ -30,19 +30,17 @@ def clerk_code():
30
30
 
31
31
  # 2. Execute function
32
32
  try:
33
- if use_pickle:
34
- output = func(payload)
35
- if not isinstance(output, ClerkCodePayload):
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
- with open(output_pkl, "wb") as f:
45
- pickle.dump(output, f)
41
+ if use_pickle:
42
+ with open(output_pkl, "wb") as f:
43
+ pickle.dump(output.model_dump(mode="json"), f)
46
44
  except Exception as e:
47
45
  raise RuntimeError(f"Failed to write output pickle: {e}") from e
48
46
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: clerk-sdk
3
- Version: 0.1.4
3
+ Version: 0.1.6
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
@@ -6,7 +6,7 @@ with open("./requirements.txt", "r") as f:
6
6
 
7
7
  setup(
8
8
  name="clerk-sdk",
9
- version="0.1.4",
9
+ version="0.1.6",
10
10
  description="Library for interacting with Clerk",
11
11
  long_description=open("README.md").read(),
12
12
  long_description_content_type="text/markdown",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes