cognite-neat 0.126.0__py3-none-any.whl → 0.126.1__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.

Files changed (75) hide show
  1. cognite/neat/_client/__init__.py +4 -0
  2. cognite/neat/_client/api.py +8 -0
  3. cognite/neat/_client/client.py +19 -0
  4. cognite/neat/_client/config.py +40 -0
  5. cognite/neat/_client/containers_api.py +73 -0
  6. cognite/neat/_client/data_classes.py +10 -0
  7. cognite/neat/_client/data_model_api.py +63 -0
  8. cognite/neat/_client/spaces_api.py +67 -0
  9. cognite/neat/_client/views_api.py +82 -0
  10. cognite/neat/_data_model/_analysis.py +127 -0
  11. cognite/neat/_data_model/_constants.py +59 -0
  12. cognite/neat/_data_model/_shared.py +46 -0
  13. cognite/neat/_data_model/deployer/__init__.py +0 -0
  14. cognite/neat/_data_model/deployer/_differ.py +113 -0
  15. cognite/neat/_data_model/deployer/_differ_container.py +354 -0
  16. cognite/neat/_data_model/deployer/_differ_data_model.py +29 -0
  17. cognite/neat/_data_model/deployer/_differ_space.py +9 -0
  18. cognite/neat/_data_model/deployer/_differ_view.py +194 -0
  19. cognite/neat/_data_model/deployer/data_classes.py +176 -0
  20. cognite/neat/_data_model/exporters/__init__.py +4 -0
  21. cognite/neat/_data_model/exporters/_base.py +6 -1
  22. cognite/neat/_data_model/exporters/_table_exporter/__init__.py +0 -0
  23. cognite/neat/_data_model/exporters/_table_exporter/exporter.py +106 -0
  24. cognite/neat/_data_model/exporters/_table_exporter/workbook.py +414 -0
  25. cognite/neat/_data_model/exporters/_table_exporter/writer.py +391 -0
  26. cognite/neat/_data_model/importers/__init__.py +2 -1
  27. cognite/neat/_data_model/importers/_api_importer.py +88 -0
  28. cognite/neat/_data_model/importers/_table_importer/data_classes.py +48 -8
  29. cognite/neat/_data_model/importers/_table_importer/importer.py +74 -5
  30. cognite/neat/_data_model/importers/_table_importer/reader.py +63 -7
  31. cognite/neat/_data_model/models/dms/__init__.py +17 -1
  32. cognite/neat/_data_model/models/dms/_base.py +12 -8
  33. cognite/neat/_data_model/models/dms/_constants.py +1 -1
  34. cognite/neat/_data_model/models/dms/_constraints.py +2 -1
  35. cognite/neat/_data_model/models/dms/_container.py +5 -5
  36. cognite/neat/_data_model/models/dms/_data_model.py +3 -3
  37. cognite/neat/_data_model/models/dms/_data_types.py +8 -1
  38. cognite/neat/_data_model/models/dms/_http.py +18 -0
  39. cognite/neat/_data_model/models/dms/_indexes.py +2 -1
  40. cognite/neat/_data_model/models/dms/_references.py +17 -4
  41. cognite/neat/_data_model/models/dms/_space.py +11 -7
  42. cognite/neat/_data_model/models/dms/_view_property.py +7 -4
  43. cognite/neat/_data_model/models/dms/_views.py +16 -6
  44. cognite/neat/_data_model/validation/__init__.py +0 -0
  45. cognite/neat/_data_model/validation/_base.py +16 -0
  46. cognite/neat/_data_model/validation/dms/__init__.py +9 -0
  47. cognite/neat/_data_model/validation/dms/_orchestrator.py +68 -0
  48. cognite/neat/_data_model/validation/dms/_validators.py +139 -0
  49. cognite/neat/_exceptions.py +15 -3
  50. cognite/neat/_issues.py +39 -6
  51. cognite/neat/_session/__init__.py +3 -0
  52. cognite/neat/_session/_physical.py +88 -0
  53. cognite/neat/_session/_session.py +34 -25
  54. cognite/neat/_session/_wrappers.py +61 -0
  55. cognite/neat/_state_machine/__init__.py +10 -0
  56. cognite/neat/{_session/_state_machine → _state_machine}/_base.py +11 -1
  57. cognite/neat/_state_machine/_states.py +53 -0
  58. cognite/neat/_store/__init__.py +3 -0
  59. cognite/neat/_store/_provenance.py +55 -0
  60. cognite/neat/_store/_store.py +124 -0
  61. cognite/neat/_utils/_reader.py +194 -0
  62. cognite/neat/_utils/http_client/__init__.py +14 -20
  63. cognite/neat/_utils/http_client/_client.py +22 -61
  64. cognite/neat/_utils/http_client/_data_classes.py +167 -268
  65. cognite/neat/_utils/text.py +6 -0
  66. cognite/neat/_utils/useful_types.py +23 -2
  67. cognite/neat/_version.py +1 -1
  68. cognite/neat/v0/core/_data_model/importers/_rdf/_shared.py +2 -2
  69. {cognite_neat-0.126.0.dist-info → cognite_neat-0.126.1.dist-info}/METADATA +1 -1
  70. {cognite_neat-0.126.0.dist-info → cognite_neat-0.126.1.dist-info}/RECORD +72 -38
  71. cognite/neat/_data_model/exporters/_table_exporter.py +0 -35
  72. cognite/neat/_session/_state_machine/__init__.py +0 -23
  73. cognite/neat/_session/_state_machine/_states.py +0 -150
  74. {cognite_neat-0.126.0.dist-info → cognite_neat-0.126.1.dist-info}/WHEEL +0 -0
  75. {cognite_neat-0.126.0.dist-info → cognite_neat-0.126.1.dist-info}/licenses/LICENSE +0 -0
@@ -1,20 +1,42 @@
1
1
  cognite/neat/__init__.py,sha256=Lo4DbjDOwnhCYUoAgPp5RG1fDdF7OlnomalTe7n1ydw,211
2
- cognite/neat/_exceptions.py,sha256=IvDKO8kHk4dCkrmQU6z_svJcPqs2m7QYLosuOuM_iwE,473
3
- cognite/neat/_issues.py,sha256=uv0fkkWwTKqNmTmHqyoBB3L6yMCh42EZpEkLGmIJYOY,812
4
- cognite/neat/_version.py,sha256=kvjU7yRcXW905fNDDrk9Rmv1eMH9zdS38_vx_BqoxPA,46
2
+ cognite/neat/_exceptions.py,sha256=AD9TyZZCmf3wWVpVOYfm-jqjk-A9PsaLleh-SIkIPh4,833
3
+ cognite/neat/_issues.py,sha256=DJTc2wJgomxqfpQQyXA7OnE4Ilxl-B3fsUGBv9cPZVY,1860
4
+ cognite/neat/_version.py,sha256=kSC1vDyNinrgw01i0VXULRokW3VCiKp5T7CRLM34j-Q,46
5
5
  cognite/neat/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ cognite/neat/_client/__init__.py,sha256=75Bh7eGhaN4sOt3ZcRzHl7pXaheu1z27kmTHeaI05vo,114
7
+ cognite/neat/_client/api.py,sha256=nbxCdWBXcTVM6MrQeT_VpB6ehfoI544JHPFq-ejQKCY,292
8
+ cognite/neat/_client/client.py,sha256=-Drv7U9cdP5Pbbm_XOGG08RuvdcG4km-CB-TeoJhrGc,765
9
+ cognite/neat/_client/config.py,sha256=eIIdWaA13yncRP6X7vTYsTpmXmVcmkhZPv5oPnLUEVc,1484
10
+ cognite/neat/_client/containers_api.py,sha256=NCH99WLeYg_rRyvhuDR-1JVo6eQ6uDbJve3zsnmVgTM,2579
11
+ cognite/neat/_client/data_classes.py,sha256=4JNTirPt29EKPJ73zUDTCeGqQ6X7ERZqK7poB2NaAWo,237
12
+ cognite/neat/_client/data_model_api.py,sha256=QhPdepAQUq3AQydZCXBRchb8TdOPCJ3Tma1-J0bjXYo,2316
13
+ cognite/neat/_client/spaces_api.py,sha256=ZZKV9EDFMclE3khyImc6YTPKwbeHHrytkNwQOrHRdpY,2330
14
+ cognite/neat/_client/views_api.py,sha256=bT29X9GgRWPtuhdAMfst6tbtgOhpm2Or5siX2RiIJHc,3124
6
15
  cognite/neat/_data_model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
- cognite/neat/_data_model/_constants.py,sha256=NGGvWHlQqhkkSBP_AqoofGYjNph3SiZX6QPINlMsy04,107
16
+ cognite/neat/_data_model/_analysis.py,sha256=H3mnwDS0fonqHgfNwoB_tNX3L0Xa0r1Q3jan3qgZOTA,5290
17
+ cognite/neat/_data_model/_constants.py,sha256=NYSmfuDdhnQybI7RLyar-Q1qeboJ43ExxfeFu45aIEQ,1415
8
18
  cognite/neat/_data_model/_identifiers.py,sha256=a0LcQ_h0NffxSKTCrzCDpYkrlaUTk-D_rfaQUh-BhWc,1921
9
- cognite/neat/_data_model/exporters/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
- cognite/neat/_data_model/exporters/_base.py,sha256=sCBa02bW5HU9MHIGcoCHq_xyaQ6jlbtGnk2tor3wmm0,430
11
- cognite/neat/_data_model/exporters/_table_exporter.py,sha256=_0-GABdkqWKimUByT63H_dXNI2Uxuc1zOvvThP3lpko,1212
12
- cognite/neat/_data_model/importers/__init__.py,sha256=Ntk6Z8jpPvr7awV4kgs-uMRB2RrA3ufi0O7sSMgcv0o,133
19
+ cognite/neat/_data_model/_shared.py,sha256=N7e0Sfs4KA9fuRVz2Op_cgNwkp9iyq7ZMgUVGCirGwU,1428
20
+ cognite/neat/_data_model/deployer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
+ cognite/neat/_data_model/deployer/_differ.py,sha256=hY8lQtINNCUMezQD_y6Xbv_RZ9ePSE76HsI7QHdmOa0,3673
22
+ cognite/neat/_data_model/deployer/_differ_container.py,sha256=LAqMiQftoeRUS6dPaKcj0hlaGafzF4JrftrNerjTrDA,13747
23
+ cognite/neat/_data_model/deployer/_differ_data_model.py,sha256=zabH3dNzHRP2ZxVMSAw5q7CNBjo5PhRixcCPCpU1HpY,970
24
+ cognite/neat/_data_model/deployer/_differ_space.py,sha256=J_AaqiseLpwQsOkKc7gmho4U2oSWAGVeEdQNepZiWw0,343
25
+ cognite/neat/_data_model/deployer/_differ_view.py,sha256=iOMj4PaVXFeaYqTuh3P8-6npjzq3k8LzFVQp12L4i9o,6808
26
+ cognite/neat/_data_model/deployer/data_classes.py,sha256=LuwQt32SCqVKcBWJ2HIt4qUkg9yYWN98m4vYvFmepVM,5627
27
+ cognite/neat/_data_model/exporters/__init__.py,sha256=hNrZOQbzq2zdmlJkIC3amxfQbWW_SLZ4ENlEJwlPvgg,207
28
+ cognite/neat/_data_model/exporters/_base.py,sha256=WyRRRpg0RGgdaO8ZKLune6wgSmXim3X3YjBkttM9n3E,587
29
+ cognite/neat/_data_model/exporters/_table_exporter/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30
+ cognite/neat/_data_model/exporters/_table_exporter/exporter.py,sha256=gYgkh8awhhvfBrlIKtcOeGXCW5Hbf1ocdyxzRs4VGZ0,4043
31
+ cognite/neat/_data_model/exporters/_table_exporter/workbook.py,sha256=5SQj2jvDz1SWL0oebu4m1TUXJAQn8Ugvfylq-C71JK0,18625
32
+ cognite/neat/_data_model/exporters/_table_exporter/writer.py,sha256=FwKlGMyg_LTcXTOXwxQ98eLPOZcy7FTbP30Qj_LAbyQ,17736
33
+ cognite/neat/_data_model/importers/__init__.py,sha256=dHnKnC_AXk42z6wzEHK15dxIOh8xSEkuUf_AFRZls0E,193
34
+ cognite/neat/_data_model/importers/_api_importer.py,sha256=Uew0ecfzsQV2CuDvBxg0FqwVz60RjvuuS3_jlnFTj0o,3885
13
35
  cognite/neat/_data_model/importers/_base.py,sha256=NRB0FcEBj4GaethU68nRffBfTedBBA866A3zfJNfmiQ,433
14
36
  cognite/neat/_data_model/importers/_table_importer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
- cognite/neat/_data_model/importers/_table_importer/data_classes.py,sha256=c_P4j7cHTyltNRiNzJJkJ-TKM5uoiizyLI6cgvLA3nM,4057
16
- cognite/neat/_data_model/importers/_table_importer/importer.py,sha256=pkE7OBe5qQ1Rs0wEk5DEUuttmCp8zKJ0U_Nu9GP0rPk,4559
17
- cognite/neat/_data_model/importers/_table_importer/reader.py,sha256=U7hDYAk1bQq4xTj3na7n1G9qllp522hWzojXAGQ9FUw,36876
37
+ cognite/neat/_data_model/importers/_table_importer/data_classes.py,sha256=zOreZjquk_GC1umgIwTMAJ56zF3F7U3ROZBPjzZJogw,5762
38
+ cognite/neat/_data_model/importers/_table_importer/importer.py,sha256=DyXpBNmEwI-sMyE3yRUxElUoHpjD8fkLopc9XpBrbW4,7920
39
+ cognite/neat/_data_model/importers/_table_importer/reader.py,sha256=pf6nxzC2Grrl0g2sI0-tkNysBF1nuLoObsNbKZIEvU4,39894
18
40
  cognite/neat/_data_model/importers/_table_importer/source.py,sha256=CU6kHJquKxDgYSMwONALbl6yleF_FoAgGU2SXl_uj0Y,3098
19
41
  cognite/neat/_data_model/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
42
  cognite/neat/_data_model/models/conceptual/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -23,40 +45,52 @@ cognite/neat/_data_model/models/conceptual/_concept.py,sha256=0Pk4W2TJ_Y0Z7oPHpz
23
45
  cognite/neat/_data_model/models/conceptual/_data_model.py,sha256=mSX0z8i29ufcRUhvC_NPeo2xGidlK3B1n89kngY_SqQ,1695
24
46
  cognite/neat/_data_model/models/conceptual/_properties.py,sha256=CpF37vJYBTLT4DH4ZOu2U-JyWtkb_27V8fw52qiaE_k,4007
25
47
  cognite/neat/_data_model/models/conceptual/_property.py,sha256=blSZQxX52zaILAtjUkldPzPeysz7wnG-UGSNU5tacI8,4138
26
- cognite/neat/_data_model/models/dms/__init__.py,sha256=du7UBnz1BxvAHFgpHG-aNkZXfz6NXRmuptpCv27LVtk,3895
27
- cognite/neat/_data_model/models/dms/_base.py,sha256=F49CLKUmtjTaaW0NrQbjqGkpWNgnZMV8m8uomCU_FJU,719
28
- cognite/neat/_data_model/models/dms/_constants.py,sha256=wBkLjAPwufPc2naxOfPA1XC0CM2RbDbo6Dpiv9dPrew,1344
29
- cognite/neat/_data_model/models/dms/_constraints.py,sha256=QxcsHzdaYe3E5_xTIdtQDfkLPOzKa2c-0D02QKLto9o,1064
30
- cognite/neat/_data_model/models/dms/_container.py,sha256=SgrMCRo04A1gqayJsCia6oMhYT7q3NaeMBZMOQNI-lA,5967
31
- cognite/neat/_data_model/models/dms/_data_model.py,sha256=GNa05JEj_eSRGoKB8vkR85-Qv-IhPlDR3gXZNQMfe6g,2537
32
- cognite/neat/_data_model/models/dms/_data_types.py,sha256=0cNChruCvIVLpCfk81L2u4ZrOg7V4zOU3GOibk2X4Hw,5773
33
- cognite/neat/_data_model/models/dms/_indexes.py,sha256=eM4VP6KtuPPSv4cuMRjBQI5TknmlSqwhW4sIPlExWfY,873
34
- cognite/neat/_data_model/models/dms/_references.py,sha256=LJ7xlXATf7AP_Uj-8LlxatQk5GG1Tu4CHGK63cJqUU4,3078
48
+ cognite/neat/_data_model/models/dms/__init__.py,sha256=MEQpNhPmKumGORCYcyPoTPJTn-WXrvmmKAv5u1kX0u8,4204
49
+ cognite/neat/_data_model/models/dms/_base.py,sha256=931ODXnhrBrzf6vkjqu2IaFz8r2gGxuapn85yN_jkgg,889
50
+ cognite/neat/_data_model/models/dms/_constants.py,sha256=_S-62UpDnBteLN2hLNCXBnHuMYSwK-cEBh3JKslv5GA,1343
51
+ cognite/neat/_data_model/models/dms/_constraints.py,sha256=McSBLxdMrbD_dIB9OIrjKTKHXv601bzExEhUMkw7wVE,1091
52
+ cognite/neat/_data_model/models/dms/_container.py,sha256=wtQbNUwtpymltT1jav8wD4kIfjaIYnvhhz1KS0ffAbo,6044
53
+ cognite/neat/_data_model/models/dms/_data_model.py,sha256=a1Gv2iXpanwT1d-CdJCTBLDgJ7zfmS98pqM8pckKAJc,2584
54
+ cognite/neat/_data_model/models/dms/_data_types.py,sha256=DfEl_W6HxSJCGukCX4rr4nxxUGCoJzOLEsyTKQ_LHX8,6072
55
+ cognite/neat/_data_model/models/dms/_http.py,sha256=SRiqA65NLZS3ClspgJ-F2wieXU6cBbNn92KOrsfM89g,654
56
+ cognite/neat/_data_model/models/dms/_indexes.py,sha256=ZtXe8ABuRcsAwRIZ9FCanS3uwZHpkOAhvDvjSXtx_Fs,900
57
+ cognite/neat/_data_model/models/dms/_references.py,sha256=Fyd3XFN0kjQp4RsYLRWfXhNiAbJIzgbv9tbje6Qprxc,3468
35
58
  cognite/neat/_data_model/models/dms/_schema.py,sha256=2JFLcm52smzPdtZ69Lf02UbYAD8I_hpRbI7ZAzdxJJs,641
36
- cognite/neat/_data_model/models/dms/_space.py,sha256=-1LkRmQaAdIj2EYDcVv5Mcejl5uswgAEVv7DztpIUk4,1680
59
+ cognite/neat/_data_model/models/dms/_space.py,sha256=jEOK_WTATaFDIfuUd6dCaDkW2ysKKQEkSUZf8dMyYWM,1903
37
60
  cognite/neat/_data_model/models/dms/_types.py,sha256=5-cgC53AG186OZUqkltv7pMjcGNLuH7Etbn8IUcgk1c,447
38
- cognite/neat/_data_model/models/dms/_view_property.py,sha256=ROf2vYngQS4QPHt86VlwyQJBBOlKL-EylfePgX6Szwg,7422
39
- cognite/neat/_data_model/models/dms/_views.py,sha256=afUZisM-6r0_IeSwn8ZVFAqWfodHBWrMcFnk_a-ewSI,6579
61
+ cognite/neat/_data_model/models/dms/_view_property.py,sha256=eqaxVPm24j7mawKrTlFuXrneMjPuL_1xfQmwnAxGJlg,7484
62
+ cognite/neat/_data_model/models/dms/_views.py,sha256=6au_KWGNN7hec_tfVgKPUbiN6UhfRrd8MWKsx-ztdog,7000
40
63
  cognite/neat/_data_model/models/entities/__init__.py,sha256=7dDyES7fYl9LEREal59F038RdEvfGRpUOc6n_MtSgjU,836
41
64
  cognite/neat/_data_model/models/entities/_base.py,sha256=PaNrD29iwxuqTpRWbmESMTxRhhKXmRyDF_cLZEC69dg,3927
42
65
  cognite/neat/_data_model/models/entities/_constants.py,sha256=EK9Bus8UgFgxK5cVFMTAqWSl6aWkDe7d59hpUmlHlBs,517
43
66
  cognite/neat/_data_model/models/entities/_data_types.py,sha256=DfdEWGek7gODro-_0SiiInhPGwul4zn-ASACQfn8HUY,2838
44
67
  cognite/neat/_data_model/models/entities/_identifiers.py,sha256=uBiK4ot3V0b_LGXuJ7bfha6AEcFI3p2letr1z2iSvig,1923
45
68
  cognite/neat/_data_model/models/entities/_parser.py,sha256=zef_pSDZYMZrJl4IKreFDR577KutfhtN1xpH3Ayjt2o,7669
46
- cognite/neat/_session/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
47
- cognite/neat/_session/_session.py,sha256=A2RKC4EQjMaKDr-QUiIPJgBXFqst9p1RIV2_yJrfvuE,1240
48
- cognite/neat/_session/_state_machine/__init__.py,sha256=8bStbS8ivqJbdyL2yR-_1K3OKOojsaKRrYcYTJac0ek,480
49
- cognite/neat/_session/_state_machine/_base.py,sha256=gdk1uIj--f50v2_X9zxqFRYTXiCgqtmjwkaxJxAJW5k,773
50
- cognite/neat/_session/_state_machine/_states.py,sha256=RX6C0YNNT9mX0C6c-ZTiUVh6pmMT5ZNXiOuSs80vVXU,4853
69
+ cognite/neat/_data_model/validation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
70
+ cognite/neat/_data_model/validation/_base.py,sha256=7lrnEgogjjYs8KpqPmW8QWt790Q0oXxrMc4sQ_X17s0,450
71
+ cognite/neat/_data_model/validation/dms/__init__.py,sha256=NbuDuh2e7DnYh7mbbW2kVB1cL3x__88bCx4z8mnGYRo,305
72
+ cognite/neat/_data_model/validation/dms/_orchestrator.py,sha256=liQmemRiLnLadGYANjkEJYuC43tNBkHzWUvpck5bkyo,3006
73
+ cognite/neat/_data_model/validation/dms/_validators.py,sha256=6u8qpuM04O9VwVK5wwE8OpuDi_6MGWJDbuhO4AcFFlo,5662
74
+ cognite/neat/_session/__init__.py,sha256=owqW5Mml2DSZx1AvPvwNRTBngfhBNrQ6EH-7CKL7Jp0,61
75
+ cognite/neat/_session/_physical.py,sha256=QeIt1NSkfPGsiSyABmgUL9IaTVwOOtl5gaAsGmztDlw,3099
76
+ cognite/neat/_session/_session.py,sha256=vCDEuqrPae3zrHxrM46AhVKXGhpA_Jzs6f6v8vX602c,1496
77
+ cognite/neat/_session/_wrappers.py,sha256=_9bhx_P2URQminz8Yp50dSJ2nFqmOm1AwVbXX9_GWLQ,2264
78
+ cognite/neat/_state_machine/__init__.py,sha256=wrtQUHETiLzYM0pFo7JC6pJCiXetHADQbyMu8pU8rQU,195
79
+ cognite/neat/_state_machine/_base.py,sha256=-ZpeAhM6l6N6W70dET25tAzOxaaK5aa474eabwZVzjA,1112
80
+ cognite/neat/_state_machine/_states.py,sha256=GeltP-uPuhcCIO4DJI-lned_MAKZyaVd5PFJMBcXFOA,1262
81
+ cognite/neat/_store/__init__.py,sha256=TvM9CcFbtOSrxydPAuJi6Bv_iiGard1Mxfx42ZFoTl0,55
82
+ cognite/neat/_store/_provenance.py,sha256=OfFHUf9eliZ8TVJs3qGQZzK0YC-aOJPoN6FxThBt50U,1906
83
+ cognite/neat/_store/_store.py,sha256=Mni92soksxpRtHvJkfmmDMDAsmShSS61tyawAzGugLI,5214
51
84
  cognite/neat/_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
85
+ cognite/neat/_utils/_reader.py,sha256=9dXrODNNqWU0Gx1zXjRTOiiByFuDZlpQkQEzx3HAxYQ,5390
52
86
  cognite/neat/_utils/auxiliary.py,sha256=Cx-LP8dfN782R3iUcm--q26zdzQ0k_RFnVbJ0bwVZMI,1345
53
- cognite/neat/_utils/text.py,sha256=tDspKjU4AkzB6P1kKPNaVpx-yvx3V2uQVC3FAr6nibM,1835
54
- cognite/neat/_utils/useful_types.py,sha256=iCpT4vrn95Y4ATmyOI_eHMm7Lb-h1CeO5fVuWOVUgDQ,555
87
+ cognite/neat/_utils/text.py,sha256=GGLJttAQ6naOEvZEyHqmliNnO5Bd_tFwR2mb7l9x_IE,1983
88
+ cognite/neat/_utils/useful_types.py,sha256=A8FDziEckQIkPAFBMC1Gqh3enTkgJ0rx6EszY6h6YSA,1192
55
89
  cognite/neat/_utils/validation.py,sha256=vS7GAvMMeco1jUaEs_Rz2pUoz28uee6xU4yt8CrCzE4,5430
56
- cognite/neat/_utils/http_client/__init__.py,sha256=gJBrOH1tIzEzLforHbeakYimTn4RlelyANps-jtpREI,894
57
- cognite/neat/_utils/http_client/_client.py,sha256=2RVwTbbPFlQ8eJVLKNUXwnc4Yq_783PkY44zwr6LlT8,11509
90
+ cognite/neat/_utils/http_client/__init__.py,sha256=qaCLLLhi7H3b_cmbknX0S66KILT7JSKX1YSgZjNdd1U,786
91
+ cognite/neat/_utils/http_client/_client.py,sha256=TO9C77LcsqX0R3Fu-mP560nnV6rP5oRXki9kxRYtBlg,9658
58
92
  cognite/neat/_utils/http_client/_config.py,sha256=C8IF1JoijmVMjA_FEMgAkiD1buEV1cY5Og3t-Ecyfmk,756
59
- cognite/neat/_utils/http_client/_data_classes.py,sha256=EaIi1L3azqPdjR8H04EvDnCeupbX2rC7F0y8Y9ukap0,13605
93
+ cognite/neat/_utils/http_client/_data_classes.py,sha256=3WJ2Z4mwWi_QsI_bcu9qYwE13jm_V8uqGhVWThPrnpw,9969
60
94
  cognite/neat/_utils/http_client/_tracker.py,sha256=EBBnd-JZ7nc_jYNFJokCHN2UZ9sx0McFLZvlceUYYic,1215
61
95
  cognite/neat/v0/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
62
96
  cognite/neat/v0/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -103,7 +137,7 @@ cognite/neat/v0/core/_data_model/importers/_rdf/__init__.py,sha256=1yOjV2PKCxwH7
103
137
  cognite/neat/v0/core/_data_model/importers/_rdf/_base.py,sha256=Rv24TQQDZqAuFD8Qh0yRBiB7-JvoMVj3mGoPBm-xBFs,6052
104
138
  cognite/neat/v0/core/_data_model/importers/_rdf/_inference2rdata_model.py,sha256=w8LsdkzgoTXN3LZyjEL_5grWZGlf7PPj8qOu370_K6M,28976
105
139
  cognite/neat/v0/core/_data_model/importers/_rdf/_owl2data_model.py,sha256=JsL2gpVs4ntLyzncgRYic-4qSiDhXT-6xN3jTLo629U,4031
106
- cognite/neat/v0/core/_data_model/importers/_rdf/_shared.py,sha256=maCBWNtZB63u_oNphebGiE9PQR9WEeZm84AHL8JJHkc,9795
140
+ cognite/neat/v0/core/_data_model/importers/_rdf/_shared.py,sha256=lcMnGIvqYZJ41JPjzanZHi9uG826EzYHpQXSMYVRK8A,9839
107
141
  cognite/neat/v0/core/_data_model/models/__init__.py,sha256=whWV0FrdUi01Du2mgan3_kZHQ9T2tGrGb2xRxoFDhNo,1258
108
142
  cognite/neat/v0/core/_data_model/models/_base_unverified.py,sha256=1Wfbp-tJaEF6hd1bFdp2FhTgPkInf-1ZokuEoVJRPxQ,6842
109
143
  cognite/neat/v0/core/_data_model/models/_base_verified.py,sha256=9EhRUEJ7ma-MnEFvXeQg6ew_gAcfLEapkckPX6mrlYQ,15142
@@ -248,7 +282,7 @@ cognite/neat/v0/session/engine/__init__.py,sha256=D3MxUorEs6-NtgoICqtZ8PISQrjrr4
248
282
  cognite/neat/v0/session/engine/_import.py,sha256=1QxA2_EK613lXYAHKQbZyw2yjo5P9XuiX4Z6_6-WMNQ,169
249
283
  cognite/neat/v0/session/engine/_interface.py,sha256=3W-cYr493c_mW3P5O6MKN1xEQg3cA7NHR_ev3zdF9Vk,533
250
284
  cognite/neat/v0/session/engine/_load.py,sha256=u0x7vuQCRoNcPt25KJBJRn8sJabonYK4vtSZpiTdP4k,5201
251
- cognite_neat-0.126.0.dist-info/METADATA,sha256=bD3aNMQGJUehi3xBg0fVg8pYW6mKPAwN1mXNIBIGiXw,9147
252
- cognite_neat-0.126.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
253
- cognite_neat-0.126.0.dist-info/licenses/LICENSE,sha256=W8VmvFia4WHa3Gqxq1Ygrq85McUNqIGDVgtdvzT-XqA,11351
254
- cognite_neat-0.126.0.dist-info/RECORD,,
285
+ cognite_neat-0.126.1.dist-info/METADATA,sha256=7W7GT3FbsGaTH7rfrkkp8cbrQVOS350Vs3OfLT7V5-Q,9147
286
+ cognite_neat-0.126.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
287
+ cognite_neat-0.126.1.dist-info/licenses/LICENSE,sha256=W8VmvFia4WHa3Gqxq1Ygrq85McUNqIGDVgtdvzT-XqA,11351
288
+ cognite_neat-0.126.1.dist-info/RECORD,,
@@ -1,35 +0,0 @@
1
- from pathlib import Path
2
-
3
- from cognite.neat._data_model.models.dms import RequestSchema
4
- from cognite.neat._utils.useful_types import DataModelTableType
5
-
6
- from ._base import DMSExporter
7
-
8
-
9
- class DMSTableExporter(DMSExporter[DataModelTableType]):
10
- """Exports DMS to a table structure.
11
-
12
- The tables are expected to be a dictionary where the keys are the table names and the values
13
- are lists of dictionaries representing the rows in the table.
14
- """
15
-
16
- def export(self, data_model: RequestSchema) -> DataModelTableType:
17
- raise NotImplementedError()
18
-
19
- def as_excel(self, data_model: RequestSchema, file_path: Path) -> None:
20
- """Exports the data model as an Excel file.
21
-
22
- Args:
23
- data_model (RequestSchema): The data model to export.
24
- file_path (Path): The path to the Excel file to create.
25
- """
26
- raise NotImplementedError()
27
-
28
- def as_yaml(self, data_model: RequestSchema, file_path: Path) -> None:
29
- """Exports the data model as a YAML file.
30
-
31
- Args:
32
- data_model (RequestSchema): The data model to export.
33
- file_path (Path): The path to the YAML file to create.
34
- """
35
- raise NotImplementedError()
@@ -1,23 +0,0 @@
1
- from ._base import State
2
- from ._states import (
3
- ConceptualPhysicalState,
4
- ConceptualState,
5
- EmptyState,
6
- ForbiddenState,
7
- InstancesConceptualPhysicalState,
8
- InstancesConceptualState,
9
- InstancesState,
10
- PhysicalState,
11
- )
12
-
13
- __all__ = [
14
- "ConceptualPhysicalState",
15
- "ConceptualState",
16
- "EmptyState",
17
- "ForbiddenState",
18
- "InstancesConceptualPhysicalState",
19
- "InstancesConceptualState",
20
- "InstancesState",
21
- "PhysicalState",
22
- "State",
23
- ]
@@ -1,150 +0,0 @@
1
- from ._base import State
2
-
3
-
4
- class EmptyState(State):
5
- """
6
- The initial state with empty NEAT store.
7
- """
8
-
9
- def on_event(self, event: str) -> State:
10
- if event == "read_instances":
11
- return InstancesState()
12
- elif event == "read_conceptual":
13
- return ConceptualState()
14
- elif event == "read_physical":
15
- return PhysicalState()
16
-
17
- return ForbiddenState(self)
18
-
19
-
20
- class InstancesState(State):
21
- """
22
- State with instances loaded to the store.
23
- """
24
-
25
- def on_event(self, event: str) -> State:
26
- # One can keep on reading instances to stay in the same state
27
- if event == "read_instances":
28
- return InstancesState()
29
- # We either read conceptual model or infer it from instances
30
- # if read conceptual, we need to make sure that conceptual model is compatible with instances
31
- elif event in ["infer_conceptual", "read_conceptual"]:
32
- return InstancesConceptualState()
33
-
34
- # transforming instances keeps us in the same state
35
- elif event == "transform_instances":
36
- return InstancesState()
37
- # we should allow writing out instances in RDF format but not to CDF
38
- elif event == "write_instances":
39
- return InstancesState()
40
-
41
- # all other operations are forbidden
42
- return ForbiddenState(self)
43
-
44
-
45
- class ConceptualState(State):
46
- """
47
- State with conceptual model loaded.
48
- """
49
-
50
- def on_event(self, event: str) -> State:
51
- # re-reading of model means transformation of
52
- # the current model has been done outside of NeatSession
53
- # requires checking that the new model is compatible with the existing
54
- if event == "read_conceptual":
55
- return ConceptualState()
56
-
57
- # when reading: requires linking between models
58
- # when converting: links are automatically created
59
- elif event == "read_physical" or event == "convert_to_physical":
60
- return ConceptualPhysicalState()
61
- elif event == "transform_conceptual":
62
- return ConceptualState()
63
- elif event == "write_conceptual":
64
- return ConceptualState()
65
-
66
- return ForbiddenState(self)
67
-
68
-
69
- class PhysicalState(State):
70
- """
71
- State with physical model loaded.
72
- """
73
-
74
- def on_event(self, event: str) -> State:
75
- if event == "read_physical":
76
- return PhysicalState()
77
- elif event == "transform_physical":
78
- return PhysicalState()
79
- elif event == "write_physical":
80
- return PhysicalState()
81
- elif event == "convert_to_conceptual" or event == "read_conceptual":
82
- return ConceptualPhysicalState()
83
-
84
- return ForbiddenState(self)
85
-
86
-
87
- class InstancesConceptualState(State):
88
- """
89
- State with both instances and conceptual model loaded.
90
- """
91
-
92
- def on_event(self, event: str) -> State:
93
- if event == "read_conceptual":
94
- return InstancesConceptualState()
95
- elif event == "transform_conceptual":
96
- return InstancesConceptualState()
97
- elif event in ["write_instances", "write_conceptual"]:
98
- return InstancesConceptualState()
99
- elif event in ["read_physical", "convert_to_physical"]:
100
- return InstancesConceptualPhysicalState()
101
-
102
- return ForbiddenState(self)
103
-
104
-
105
- class ConceptualPhysicalState(State):
106
- """
107
- State with both conceptual and physical models loaded.
108
- """
109
-
110
- def on_event(self, event: str) -> State:
111
- if event == "read_physical":
112
- return ConceptualPhysicalState()
113
- elif event == "transform_physical":
114
- return ConceptualPhysicalState()
115
- elif event in ["write_conceptual", "write_physical"]:
116
- return ConceptualPhysicalState()
117
-
118
- return ForbiddenState(self)
119
-
120
-
121
- class InstancesConceptualPhysicalState(State):
122
- """
123
- State with instances, conceptual, and physical models loaded.
124
- """
125
-
126
- def on_event(self, event: str) -> State:
127
- if event == "read_physical":
128
- return InstancesConceptualPhysicalState()
129
- elif event == "transform_physical":
130
- return InstancesConceptualPhysicalState()
131
- elif event in ["write_instances", "write_conceptual", "write_physical"]:
132
- return InstancesConceptualPhysicalState()
133
-
134
- return ForbiddenState(self)
135
-
136
-
137
- class ForbiddenState(State):
138
- """
139
- State representing forbidden transitions - returns to previous state.
140
- """
141
-
142
- def __init__(self, previous_state: State):
143
- self.previous_state = previous_state
144
- print(f"Forbidden action attempted. Returning to previous state: {previous_state}")
145
-
146
- def on_event(self, event: str) -> State:
147
- # only "undo" to trigger going back to previous state
148
- if event.strip().lower() == "undo":
149
- return self.previous_state
150
- return self