kodexa 7.0.10402571165__py3-none-any.whl → 7.0.10567627362__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/model/model.py +1 -0
- kodexa/model/persistence.py +8 -5
- kodexa/platform/kodexa.py +1 -1
- {kodexa-7.0.10402571165.dist-info → kodexa-7.0.10567627362.dist-info}/METADATA +1 -1
- {kodexa-7.0.10402571165.dist-info → kodexa-7.0.10567627362.dist-info}/RECORD +7 -7
- {kodexa-7.0.10402571165.dist-info → kodexa-7.0.10567627362.dist-info}/LICENSE +0 -0
- {kodexa-7.0.10402571165.dist-info → kodexa-7.0.10567627362.dist-info}/WHEEL +0 -0
kodexa/model/model.py
CHANGED
@@ -2407,6 +2407,7 @@ class ProcessingStep(BaseModel):
|
|
2407
2407
|
return {
|
2408
2408
|
'id': self.id,
|
2409
2409
|
'name': self.name,
|
2410
|
+
'metadata': self.metadata,
|
2410
2411
|
'children': [child.to_dict(seen) for child in self.children],
|
2411
2412
|
'parents': [{'id': parent.id, 'name': parent.name} for parent in self.parents], # or parent.to_dict(seen) if full structure is needed
|
2412
2413
|
}
|
kodexa/model/persistence.py
CHANGED
@@ -4,7 +4,7 @@ import pathlib
|
|
4
4
|
import sqlite3
|
5
5
|
import tempfile
|
6
6
|
import uuid
|
7
|
-
from typing import List
|
7
|
+
from typing import List, Optional
|
8
8
|
|
9
9
|
import msgpack
|
10
10
|
|
@@ -1230,7 +1230,7 @@ class SimpleObjectCache(object):
|
|
1230
1230
|
self.next_id = 1
|
1231
1231
|
self.dirty_objs = set()
|
1232
1232
|
|
1233
|
-
def get_obj(self, obj_id):
|
1233
|
+
def get_obj(self, obj_id) -> Optional[ContentNode]:
|
1234
1234
|
"""
|
1235
1235
|
Get the object with the given ID.
|
1236
1236
|
|
@@ -1245,7 +1245,7 @@ class SimpleObjectCache(object):
|
|
1245
1245
|
|
1246
1246
|
return None
|
1247
1247
|
|
1248
|
-
def add_obj(self, obj):
|
1248
|
+
def add_obj(self, obj: ContentNode):
|
1249
1249
|
"""
|
1250
1250
|
Add an object to the cache.
|
1251
1251
|
|
@@ -1270,7 +1270,7 @@ class SimpleObjectCache(object):
|
|
1270
1270
|
if obj.uuid in self.dirty_objs:
|
1271
1271
|
self.dirty_objs.remove(obj.uuid)
|
1272
1272
|
|
1273
|
-
def get_dirty_objs(self):
|
1273
|
+
def get_dirty_objs(self) -> list[ContentNode]:
|
1274
1274
|
"""
|
1275
1275
|
Get all dirty objects in the cache.
|
1276
1276
|
|
@@ -1395,7 +1395,10 @@ class PersistenceManager(object):
|
|
1395
1395
|
ContentNode: The node with the given uuid.
|
1396
1396
|
"""
|
1397
1397
|
if self.node_cache.get_obj(uuid) is None:
|
1398
|
-
self.
|
1398
|
+
node = self._underlying_persistence.get_node(uuid)
|
1399
|
+
if node:
|
1400
|
+
self.node_cache.add_obj(node)
|
1401
|
+
return node
|
1399
1402
|
|
1400
1403
|
return self.node_cache.get_obj(uuid) # return the cached version
|
1401
1404
|
|
kodexa/platform/kodexa.py
CHANGED
@@ -327,7 +327,7 @@ class KodexaPlatform:
|
|
327
327
|
dict: The server information.
|
328
328
|
"""
|
329
329
|
r = requests.get(
|
330
|
-
f"{KodexaPlatform.get_url()}/api",
|
330
|
+
f"{KodexaPlatform.get_url()}/api/overview",
|
331
331
|
headers={
|
332
332
|
"x-access-token": KodexaPlatform.get_access_token(),
|
333
333
|
"cf-access-token": os.environ.get("CF_TOKEN", ""),
|
@@ -11,15 +11,15 @@ kodexa/model/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
|
|
11
11
|
kodexa/model/entities/check_response.py,sha256=eqBHxO6G2OAziL3p9bHGI-oiPkAG82H6Choc8wyvtM4,3949
|
12
12
|
kodexa/model/entities/product.py,sha256=ZDpHuBE_9FJ-klnkyBvTfPwYOqBkM1wraZMtHqNA8FQ,3526
|
13
13
|
kodexa/model/entities/product_subscription.py,sha256=UcmWR-qgLfdV7VCtJNwzgkanoS8nBSL6ngVuxQUK1M8,3810
|
14
|
-
kodexa/model/model.py,sha256=
|
14
|
+
kodexa/model/model.py,sha256=9_n6iOD7TLBf0rqRNY0K8HSpf-dGejuq-OqI1cBBr20,117896
|
15
15
|
kodexa/model/objects.py,sha256=C4ERIaB0Avuf2FHIvEsyyO_HAjvDVXW_CB6-EEEhUtA,176751
|
16
|
-
kodexa/model/persistence.py,sha256=
|
16
|
+
kodexa/model/persistence.py,sha256=w4WGS_qH1iowH8-ZMawZBZ2RFW3bNvmFy5fgSwr6VmQ,66198
|
17
17
|
kodexa/pipeline/__init__.py,sha256=sA7f5D6qkdMrpp2xTIeefnrUBI6xxEEWostvxfX_1Cs,236
|
18
18
|
kodexa/pipeline/pipeline.py,sha256=ZYpJAWcwV4YRK589DUhU0vXGQlkNSj4J2TsGbYqTLjo,25221
|
19
19
|
kodexa/platform/__init__.py,sha256=1O3oiWMg292NPL_NacKDnK1T3_R6cMorrPRue_9e-O4,216
|
20
20
|
kodexa/platform/client.py,sha256=GCOlFN7BgnCDEg4MNiLgDmSCHGglWdMeCrQQH6y2_oM,222182
|
21
21
|
kodexa/platform/interaction.py,sha256=6zpcwXKNZstUGNS6m4JsoRXAqCZPJHWI-ZN3co8nnF0,1055
|
22
|
-
kodexa/platform/kodexa.py,sha256=
|
22
|
+
kodexa/platform/kodexa.py,sha256=RVtArtzn1TVhBf3NGC4xe-ZO-VEVDIC3RjLhR06p-uU,34033
|
23
23
|
kodexa/selectors/__init__.py,sha256=xA9-4vpyaAZWPSk3bh2kvDLkdv6XEmm7PjFbpziiTIk,100
|
24
24
|
kodexa/selectors/ast.py,sha256=gG-1st841IntgBE5V7p3Cq9azaym2jV5lB_AIywQTCI,13269
|
25
25
|
kodexa/selectors/core.py,sha256=kkt02DN20gXeaDGoGubPPeeTV7rCr4sxTyELrI0l1YU,3691
|
@@ -42,7 +42,7 @@ kodexa/testing/test_utils.py,sha256=DrLCkHxdb6AbZ-X3WmTMbQmnVIm55VEBL8MjtUK9POs,
|
|
42
42
|
kodexa/training/__init__.py,sha256=xs2L62YpRkIRfslQwtQZ5Yxjhm7sLzX2TrVX6EuBnZQ,52
|
43
43
|
kodexa/training/train_utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
44
44
|
kodexa/utils/__init__.py,sha256=Pnim1o9_db5YEnNvDTxpM7HG-qTlL6n8JwFwOafU9wo,5928
|
45
|
-
kodexa-7.0.
|
46
|
-
kodexa-7.0.
|
47
|
-
kodexa-7.0.
|
48
|
-
kodexa-7.0.
|
45
|
+
kodexa-7.0.10567627362.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
46
|
+
kodexa-7.0.10567627362.dist-info/METADATA,sha256=sLJqC1zusrlE7z1S9gukr5K83qguYmnk2VNba75scjg,3533
|
47
|
+
kodexa-7.0.10567627362.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
48
|
+
kodexa-7.0.10567627362.dist-info/RECORD,,
|
File without changes
|
File without changes
|