cognite-neat 0.70.3__py3-none-any.whl → 0.71.0__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.
Potentially problematic release.
This version of cognite-neat might be problematic. Click here for more details.
- cognite/neat/_version.py +1 -1
- cognite/neat/app/api/routers/core.py +12 -1
- {cognite_neat-0.70.3.dist-info → cognite_neat-0.71.0.dist-info}/METADATA +1 -1
- {cognite_neat-0.70.3.dist-info → cognite_neat-0.71.0.dist-info}/RECORD +7 -7
- {cognite_neat-0.70.3.dist-info → cognite_neat-0.71.0.dist-info}/LICENSE +0 -0
- {cognite_neat-0.70.3.dist-info → cognite_neat-0.71.0.dist-info}/WHEEL +0 -0
- {cognite_neat-0.70.3.dist-info → cognite_neat-0.71.0.dist-info}/entry_points.txt +0 -0
cognite/neat/_version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.
|
|
1
|
+
__version__ = "0.71.0"
|
|
@@ -6,7 +6,8 @@ from typing import cast
|
|
|
6
6
|
|
|
7
7
|
from fastapi import APIRouter, UploadFile
|
|
8
8
|
|
|
9
|
-
from cognite.neat.rules import importers
|
|
9
|
+
from cognite.neat.rules import exporters, importers
|
|
10
|
+
from cognite.neat.rules.models._rules import DMSRules
|
|
10
11
|
from cognite.neat.rules.models._rules.base import RoleTypes
|
|
11
12
|
|
|
12
13
|
router = APIRouter()
|
|
@@ -49,3 +50,13 @@ async def convert_data_model_to_rules(file: UploadFile):
|
|
|
49
50
|
temp_filepath.unlink()
|
|
50
51
|
|
|
51
52
|
return {"filename": file.filename, "content": rules.model_dump(by_alias=True) if rules else None, "issues": issues}
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
@router.post("/api/core/rules2dms")
|
|
56
|
+
async def convert_rules_to_dms(rules: DMSRules):
|
|
57
|
+
dms_schema = exporters.DMSExporter().export(rules)
|
|
58
|
+
|
|
59
|
+
return {
|
|
60
|
+
"views": dms_schema.views.dump() if dms_schema.views else None,
|
|
61
|
+
"containers": dms_schema.containers.dump() if dms_schema.containers else None,
|
|
62
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
cognite/neat/__init__.py,sha256=v-rRiDOgZ3sQSMQKq0vgUQZvpeOkoHFXissAx6Ktg84,61
|
|
2
|
-
cognite/neat/_version.py,sha256=
|
|
2
|
+
cognite/neat/_version.py,sha256=mNejnumd8tVE1XGXnMJ_BwjG-FRuO9U5tz0dQVo3UpU,23
|
|
3
3
|
cognite/neat/app/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
cognite/neat/app/api/asgi/metrics.py,sha256=nxFy7L5cChTI0a-zkCiJ59Aq8yLuIJp5c9Dg0wRXtV0,152
|
|
5
5
|
cognite/neat/app/api/configuration.py,sha256=xnKdBE_dtq1nRvKa79YGA_wimI5UhoSRuBQz4LkLzQw,4606
|
|
@@ -10,7 +10,7 @@ cognite/neat/app/api/data_classes/configuration.py,sha256=oBnnX6Zam7TOstiLpQbi3G
|
|
|
10
10
|
cognite/neat/app/api/data_classes/rest.py,sha256=yVWqFkBCDCGooOWaE5nun4No8B-PBa6svdenIjBINdo,1675
|
|
11
11
|
cognite/neat/app/api/explorer.py,sha256=EqIhxeFAF_5UgIP5VIZ4i5EA1br2OrkBRwRoMC6dOXk,1893
|
|
12
12
|
cognite/neat/app/api/routers/configuration.py,sha256=tFiEbtFHNVehMwM8T-IvnWpDOL_y-wCt-wd5w-Z4PQk,554
|
|
13
|
-
cognite/neat/app/api/routers/core.py,sha256=
|
|
13
|
+
cognite/neat/app/api/routers/core.py,sha256=OO9M611KG9QAdCVurWQPiU6wj6GVsTzs5DdXlCFA-wI,2191
|
|
14
14
|
cognite/neat/app/api/routers/crud.py,sha256=Cnvw77JWCs_wzeoQYdWwGfFns8LgtYmsYWgKPtud3BA,4646
|
|
15
15
|
cognite/neat/app/api/routers/data_exploration.py,sha256=XlpEbggy1mK1XmwVtLZmrXWulTzdaGQaKAyHs3H04qU,13653
|
|
16
16
|
cognite/neat/app/api/routers/metrics.py,sha256=S_bUQk_GjfQq7WbEhSVdow4MUYBZ_bZNafzgcKogXK8,210
|
|
@@ -227,8 +227,8 @@ cognite/neat/workflows/steps_registry.py,sha256=PZVoHX4d6Vmjz6XzUFnFFWMCnrVnqkUC
|
|
|
227
227
|
cognite/neat/workflows/tasks.py,sha256=dqlJwKAb0jlkl7abbY8RRz3m7MT4SK8-7cntMWkOYjw,788
|
|
228
228
|
cognite/neat/workflows/triggers.py,sha256=_BLNplzoz0iic367u1mhHMHiUrCwP-SLK6_CZzfODX0,7071
|
|
229
229
|
cognite/neat/workflows/utils.py,sha256=gKdy3RLG7ctRhbCRwaDIWpL9Mi98zm56-d4jfHDqP1E,453
|
|
230
|
-
cognite_neat-0.
|
|
231
|
-
cognite_neat-0.
|
|
232
|
-
cognite_neat-0.
|
|
233
|
-
cognite_neat-0.
|
|
234
|
-
cognite_neat-0.
|
|
230
|
+
cognite_neat-0.71.0.dist-info/LICENSE,sha256=W8VmvFia4WHa3Gqxq1Ygrq85McUNqIGDVgtdvzT-XqA,11351
|
|
231
|
+
cognite_neat-0.71.0.dist-info/METADATA,sha256=NDGLBrex1U-BWEJbvEf-lAVJ-xHSnWHQOC8F2Ob5ejM,9321
|
|
232
|
+
cognite_neat-0.71.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
233
|
+
cognite_neat-0.71.0.dist-info/entry_points.txt,sha256=61FPqiWb25vbqB0KI7znG8nsg_ibLHBvTjYnkPvNFso,50
|
|
234
|
+
cognite_neat-0.71.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|