kodexa 7.0.9017589911__py3-none-any.whl → 7.0.9017913951__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.
kodexa/platform/client.py CHANGED
@@ -2787,12 +2787,13 @@ class ProjectsEndpoint(EntitiesEndpoint):
2787
2787
  """
2788
2788
  return PageProjectEndpoint
2789
2789
 
2790
- def find_by_name(self, project_name: str) -> Optional[ProjectEndpoint]:
2790
+ def find_by_name(self, project_name: str, organization: Optional[Organization] = None) -> Optional[ProjectEndpoint]:
2791
2791
  """
2792
2792
  Find a project by name.
2793
2793
 
2794
2794
  Args:
2795
2795
  project_name (str): The name of the project to find.
2796
+ organization (Organization, optional): The organization to search in. Defaults to None.
2796
2797
 
2797
2798
  Returns:
2798
2799
  Optional[ProjectEndpoint]: The project endpoint if found, None otherwise.
@@ -2800,8 +2801,8 @@ class ProjectsEndpoint(EntitiesEndpoint):
2800
2801
 
2801
2802
  url = f"/api/{self.get_type()}"
2802
2803
  filters = {"filter": [f"name: '{project_name}'"]}
2803
- if self.organization is not None:
2804
- filters["filter"].append(f"organization.id: '{self.organization.id}'")
2804
+ if organization is not None:
2805
+ filters["filter"].append(f"organization.id: '{organization.id}'")
2805
2806
  get_response = self.client.get(url, params=filters)
2806
2807
  if len(get_response.json()["content"]) > 0:
2807
2808
  return ProjectEndpoint.model_validate(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kodexa
3
- Version: 7.0.9017589911
3
+ Version: 7.0.9017913951
4
4
  Summary: Python SDK for the Kodexa Platform
5
5
  Author: Austin Redenbaugh
6
6
  Author-email: austin@kodexa.com
@@ -14,7 +14,7 @@ kodexa/model/persistence.py,sha256=sx5FwTSsWMdAZpAs0-6PqyULHkQyNQClApUKJZ-ly8M,6
14
14
  kodexa/pipeline/__init__.py,sha256=sA7f5D6qkdMrpp2xTIeefnrUBI6xxEEWostvxfX_1Cs,236
15
15
  kodexa/pipeline/pipeline.py,sha256=ZYpJAWcwV4YRK589DUhU0vXGQlkNSj4J2TsGbYqTLjo,25221
16
16
  kodexa/platform/__init__.py,sha256=1O3oiWMg292NPL_NacKDnK1T3_R6cMorrPRue_9e-O4,216
17
- kodexa/platform/client.py,sha256=mC53Q0IChVR7e69h66eHx3MzeC50xNxg5PS14OPy1uM,217080
17
+ kodexa/platform/client.py,sha256=2aIBw--4e5xNxweBEnmqtgOrLuwzSHKQWYNqnPnR8jA,217215
18
18
  kodexa/platform/interaction.py,sha256=6zpcwXKNZstUGNS6m4JsoRXAqCZPJHWI-ZN3co8nnF0,1055
19
19
  kodexa/platform/kodexa.py,sha256=Bvf6x43FWsFuAuQ4N8TvjSZq6niEtBTESmFCWVPASeQ,34024
20
20
  kodexa/selectors/__init__.py,sha256=xA9-4vpyaAZWPSk3bh2kvDLkdv6XEmm7PjFbpziiTIk,100
@@ -38,7 +38,7 @@ kodexa/testing/test_components.py,sha256=g5lP-GY0nTHuH5cIEw45vIejEeBaWkPKQGHL36j
38
38
  kodexa/testing/test_utils.py,sha256=DrLCkHxdb6AbZ-X3WmTMbQmnVIm55VEBL8MjtUK9POs,14021
39
39
  kodexa/training/__init__.py,sha256=xs2L62YpRkIRfslQwtQZ5Yxjhm7sLzX2TrVX6EuBnZQ,52
40
40
  kodexa/training/train_utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
41
- kodexa-7.0.9017589911.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
42
- kodexa-7.0.9017589911.dist-info/METADATA,sha256=nKYgPAEceRcRv7pMmrN2oEnvs3HO_DSxf7A6Y4xp-Lk,3493
43
- kodexa-7.0.9017589911.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
44
- kodexa-7.0.9017589911.dist-info/RECORD,,
41
+ kodexa-7.0.9017913951.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
42
+ kodexa-7.0.9017913951.dist-info/METADATA,sha256=d2_R5nMv46MZSs_6QBeP8RpSIpDK7ib254l7AHq7vrM,3493
43
+ kodexa-7.0.9017913951.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
44
+ kodexa-7.0.9017913951.dist-info/RECORD,,