kodexa 7.0.8024940868__tar.gz → 7.0.8063330609__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.
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/PKG-INFO +1 -1
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/kodexa/model/objects.py +3 -3
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/kodexa/platform/client.py +8 -4
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/kodexa/platform/kodexa.py +18 -9
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/pyproject.toml +1 -1
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/LICENSE +0 -0
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/README.md +0 -0
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/kodexa/__init__.py +0 -0
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/kodexa/assistant/__init__.py +0 -0
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/kodexa/assistant/assistant.py +0 -0
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/kodexa/connectors/__init__.py +0 -0
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/kodexa/connectors/connectors.py +0 -0
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/kodexa/model/__init__.py +0 -0
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/kodexa/model/base.py +0 -0
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/kodexa/model/model.py +0 -0
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/kodexa/model/persistence.py +0 -0
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/kodexa/pipeline/__init__.py +0 -0
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/kodexa/pipeline/pipeline.py +0 -0
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/kodexa/platform/__init__.py +0 -0
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/kodexa/platform/interaction.py +0 -0
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/kodexa/selectors/__init__.py +0 -0
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/kodexa/selectors/ast.py +0 -0
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/kodexa/selectors/core.py +0 -0
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/kodexa/selectors/lexrules.py +0 -0
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/kodexa/selectors/lextab.py +0 -0
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/kodexa/selectors/lextab.pyi +0 -0
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/kodexa/selectors/parserules.py +0 -0
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/kodexa/selectors/parserules.pyi +0 -0
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/kodexa/selectors/parsetab.py +0 -0
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/kodexa/selectors/parsetab.pyi +0 -0
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/kodexa/spatial/__init__.py +0 -0
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/kodexa/spatial/azure_models.py +0 -0
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/kodexa/spatial/bbox_common.py +0 -0
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/kodexa/spatial/table_form_common.py +0 -0
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/kodexa/steps/__init__.py +0 -0
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/kodexa/steps/common.py +0 -0
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/kodexa/testing/__init__.py +0 -0
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/kodexa/testing/test_components.py +0 -0
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/kodexa/testing/test_utils.py +0 -0
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/kodexa/training/__init__.py +0 -0
- {kodexa-7.0.8024940868 → kodexa-7.0.8063330609}/kodexa/training/train_utils.py +0 -0
@@ -821,12 +821,12 @@ class SlugBasedMetadata1(BaseModel):
|
|
821
821
|
description="The slug of the organization that owns this metadata object",
|
822
822
|
)
|
823
823
|
slug: str = Field(
|
824
|
-
|
824
|
+
None,
|
825
825
|
description="The slug used when referencing this metadata object",
|
826
826
|
pattern=r"^[a-zA-Z0-9\-_]{0,255}$",
|
827
827
|
)
|
828
|
-
type: str = Field(
|
829
|
-
name: str = Field(
|
828
|
+
type: str = Field(None, description="The type of metadata object")
|
829
|
+
name: str = Field(None, description="The name of the object")
|
830
830
|
description: Optional[str] = Field(
|
831
831
|
None, description="The description of the object"
|
832
832
|
)
|
@@ -6103,7 +6103,9 @@ class KodexaClient:
|
|
6103
6103
|
|
6104
6104
|
obj_response = requests.get(
|
6105
6105
|
f"{url}/api/account/me",
|
6106
|
-
headers={"content-type": "application/json",
|
6106
|
+
headers={"content-type": "application/json",
|
6107
|
+
"x-access-token": token,
|
6108
|
+
"cf-access-token": os.environ.get("CF_TOKEN", "")}
|
6107
6109
|
)
|
6108
6110
|
if obj_response.status_code == 200:
|
6109
6111
|
return KodexaClient(url, obj_response.text)
|
@@ -6235,6 +6237,7 @@ class KodexaClient:
|
|
6235
6237
|
params=params,
|
6236
6238
|
headers={
|
6237
6239
|
"x-access-token": self.access_token,
|
6240
|
+
"cf-access-token": os.environ.get("CF_TOKEN", ""),
|
6238
6241
|
"content-type": "application/json",
|
6239
6242
|
},
|
6240
6243
|
)
|
@@ -6261,6 +6264,7 @@ class KodexaClient:
|
|
6261
6264
|
params=params,
|
6262
6265
|
headers={
|
6263
6266
|
"x-access-token": self.access_token,
|
6267
|
+
"cf-access-token": os.environ.get("CF_TOKEN", ""),
|
6264
6268
|
"content-type": "application/json",
|
6265
6269
|
}
|
6266
6270
|
)
|
@@ -6283,7 +6287,7 @@ class KodexaClient:
|
|
6283
6287
|
Returns:
|
6284
6288
|
requests.Response: The response from the server.
|
6285
6289
|
"""
|
6286
|
-
headers = {"x-access-token": self.access_token}
|
6290
|
+
headers = {"x-access-token": self.access_token, "cf-access-token": os.environ.get("CF_TOKEN", "")}
|
6287
6291
|
if files is None:
|
6288
6292
|
headers["content-type"] = "application/json"
|
6289
6293
|
|
@@ -6313,7 +6317,7 @@ class KodexaClient:
|
|
6313
6317
|
Returns:
|
6314
6318
|
requests.Response: The response from the server.
|
6315
6319
|
"""
|
6316
|
-
headers = {"x-access-token": self.access_token}
|
6320
|
+
headers = {"x-access-token": self.access_token, "cf-access-token": os.environ.get("CF_TOKEN", "")}
|
6317
6321
|
if files is None:
|
6318
6322
|
headers["content-type"] = "application/json"
|
6319
6323
|
|
@@ -6341,7 +6345,7 @@ class KodexaClient:
|
|
6341
6345
|
response = requests.delete(
|
6342
6346
|
self.get_url(url),
|
6343
6347
|
params=params,
|
6344
|
-
headers={"x-access-token": self.access_token}
|
6348
|
+
headers={"x-access-token": self.access_token, "cf-access-token": os.environ.get("CF_TOKEN", "")}
|
6345
6349
|
)
|
6346
6350
|
return process_response(response)
|
6347
6351
|
|
@@ -291,7 +291,7 @@ class KodexaPlatform:
|
|
291
291
|
|
292
292
|
obj_response = requests.get(
|
293
293
|
f"{kodexa_url}/api/account/me",
|
294
|
-
headers={"content-type": "application/json", "x-access-token": token}
|
294
|
+
headers={"content-type": "application/json", "x-access-token": token, "cf-access-token": os.environ.get("CF_TOKEN", "")}
|
295
295
|
)
|
296
296
|
if obj_response.status_code == 200:
|
297
297
|
kodexa_config = get_config(profile)
|
@@ -314,6 +314,7 @@ class KodexaPlatform:
|
|
314
314
|
f"{KodexaPlatform.get_url()}/api",
|
315
315
|
headers={
|
316
316
|
"x-access-token": KodexaPlatform.get_access_token(),
|
317
|
+
"cf-access-token": os.environ.get("CF_TOKEN", ""),
|
317
318
|
"content-type": "application/json",
|
318
319
|
},
|
319
320
|
)
|
@@ -363,7 +364,8 @@ class RemoteSession:
|
|
363
364
|
logger.debug(f"Downloading metadata for action {ref}")
|
364
365
|
r = requests.get(
|
365
366
|
f"{KodexaPlatform.get_url()}/api/actions/{ref.replace(':', '/')}",
|
366
|
-
headers={"x-access-token": KodexaPlatform.get_access_token()
|
367
|
+
headers={"x-access-token": KodexaPlatform.get_access_token(),
|
368
|
+
"cf-access-token": os.environ.get("CF_TOKEN", "")},
|
367
369
|
)
|
368
370
|
if r.status_code == 401:
|
369
371
|
raise Exception("Your access token was not authorized")
|
@@ -383,7 +385,8 @@ class RemoteSession:
|
|
383
385
|
r = requests.post(
|
384
386
|
f"{KodexaPlatform.get_url()}/api/sessions",
|
385
387
|
params={self.session_type: self.slug},
|
386
|
-
headers={"x-access-token": KodexaPlatform.get_access_token()
|
388
|
+
headers={"x-access-token": KodexaPlatform.get_access_token(),
|
389
|
+
"cf-access-token": os.environ.get("CF_TOKEN", "")},
|
387
390
|
)
|
388
391
|
|
389
392
|
process_response(r)
|
@@ -422,7 +425,8 @@ class RemoteSession:
|
|
422
425
|
f"{KodexaPlatform.get_url()}/api/sessions/{self.cloud_session.id}/execute",
|
423
426
|
params={self.session_type: self.slug, "documentVersion": document.version},
|
424
427
|
data=data,
|
425
|
-
headers={"x-access-token": KodexaPlatform.get_access_token()
|
428
|
+
headers={"x-access-token": KodexaPlatform.get_access_token(),
|
429
|
+
"cf-access-token": os.environ.get("CF_TOKEN", "")},
|
426
430
|
files=files,
|
427
431
|
)
|
428
432
|
try:
|
@@ -466,7 +470,8 @@ class RemoteSession:
|
|
466
470
|
while execution.status == "PENDING" or execution.status == "RUNNING":
|
467
471
|
r = requests.get(
|
468
472
|
f"{KodexaPlatform.get_url()}/api/sessions/{self.cloud_session.id}/executions/{execution.id}",
|
469
|
-
headers={"x-access-token": KodexaPlatform.get_access_token()
|
473
|
+
headers={"x-access-token": KodexaPlatform.get_access_token(),
|
474
|
+
"cf-access-token": os.environ.get("CF_TOKEN", "")},
|
470
475
|
)
|
471
476
|
try:
|
472
477
|
execution = json.loads(r.text)
|
@@ -522,7 +527,8 @@ class RemoteSession:
|
|
522
527
|
logger.info(f"Downloading output document [{execution.outputId}]")
|
523
528
|
doc = requests.get(
|
524
529
|
f"{KodexaPlatform.get_url()}/api/sessions/{self.cloud_session.id}/executions/{execution.id}/objects/{execution.outputId}",
|
525
|
-
headers={"x-access-token": KodexaPlatform.get_access_token()
|
530
|
+
headers={"x-access-token": KodexaPlatform.get_access_token(),
|
531
|
+
"cf-access-token": os.environ.get("CF_TOKEN", "")},
|
526
532
|
)
|
527
533
|
return Document.from_kddb(doc.content)
|
528
534
|
|
@@ -810,7 +816,8 @@ class EventHelper:
|
|
810
816
|
response = requests.post(
|
811
817
|
f"{KodexaPlatform.get_url()}/api/sessions/{self.event.session_id}/executions/{self.event.execution.id}/logs",
|
812
818
|
json=[{"entry": message}],
|
813
|
-
headers={"x-access-token": KodexaPlatform.get_access_token()
|
819
|
+
headers={"x-access-token": KodexaPlatform.get_access_token(),
|
820
|
+
"cf-access-token": os.environ.get("CF_TOKEN", "")},
|
814
821
|
timeout=300,
|
815
822
|
)
|
816
823
|
if response.status_code != 200:
|
@@ -834,7 +841,8 @@ class EventHelper:
|
|
834
841
|
|
835
842
|
co_response = requests.get(
|
836
843
|
f"{KodexaPlatform.get_url()}/api/sessions/{self.event.session_id}/executions/{self.event.execution.id}/objects/{content_object_id}",
|
837
|
-
headers={"x-access-token": KodexaPlatform.get_access_token()
|
844
|
+
headers={"x-access-token": KodexaPlatform.get_access_token(),
|
845
|
+
"cf-access-token": os.environ.get("CF_TOKEN", "")},
|
838
846
|
timeout=300
|
839
847
|
)
|
840
848
|
process_response(co_response)
|
@@ -861,7 +869,8 @@ class EventHelper:
|
|
861
869
|
co_response = requests.post(
|
862
870
|
f"{KodexaPlatform.get_url()}/api/sessions/{self.event.session_id}/executions/{self.event.execution.id}/objects",
|
863
871
|
data=data,
|
864
|
-
headers={"x-access-token": KodexaPlatform.get_access_token()
|
872
|
+
headers={"x-access-token": KodexaPlatform.get_access_token(),
|
873
|
+
"cf-access-token": os.environ.get("CF_TOKEN", "")},
|
865
874
|
files=files,
|
866
875
|
timeout=300
|
867
876
|
)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "kodexa"
|
3
|
-
version = "7.0.
|
3
|
+
version = "7.0.08063330609"
|
4
4
|
description = "Python SDK for the Kodexa Platform"
|
5
5
|
authors = ["Austin Redenbaugh <austin@kodexa.com>", "Philip Dodds <philip@kodexa.com>", "Romar Cablao <rcablao@kodexa.com>", "Amadea Paula Dodds <amadeapaula@kodexa.com>"]
|
6
6
|
readme = "README.md"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|