industrial-model 0.1.13__py3-none-any.whl → 0.1.15__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.
@@ -4,6 +4,7 @@ from .models import (
4
4
  AggregatedViewInstance,
5
5
  InstanceId,
6
6
  PaginatedResult,
7
+ RootModel,
7
8
  TAggregatedViewInstance,
8
9
  TViewInstance,
9
10
  TWritableViewInstance,
@@ -32,6 +33,7 @@ __all__ = [
32
33
  "Engine",
33
34
  "AsyncEngine",
34
35
  "PaginatedResult",
36
+ "RootModel",
35
37
  "ViewInstanceConfig",
36
38
  "WritableViewInstance",
37
39
  ]
@@ -1,10 +1,7 @@
1
- from dataclasses import dataclass, field
2
-
3
1
  from cognite.client.data_classes.data_modeling import View
4
- from pydantic import BaseModel, ConfigDict
2
+ from pydantic import BaseModel, ConfigDict, Field
5
3
 
6
4
 
7
- @dataclass
8
5
  class DataModelId(BaseModel):
9
6
  model_config = ConfigDict(arbitrary_types_allowed=True)
10
7
 
@@ -12,8 +9,8 @@ class DataModelId(BaseModel):
12
9
  space: str
13
10
  version: str
14
11
 
15
- views: list[View] | None = field(default=None)
16
- instance_spaces: list[str] | None = field(default=None)
12
+ views: list[View] | None = Field(default=None)
13
+ instance_spaces: list[str] | None = Field(default=None)
17
14
 
18
15
  def as_tuple(self) -> tuple[str, str, str]:
19
16
  return self.space, self.external_id, self.version
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: industrial-model
3
- Version: 0.1.13
3
+ Version: 0.1.15
4
4
  Summary: Industrial Model ORM
5
5
  Author-email: Lucas Alves <lucasrosaalves@gmail.com>
6
6
  Classifier: Programming Language :: Python
@@ -1,5 +1,5 @@
1
- industrial_model/__init__.py,sha256=JyQbC-Qz4yI2lH0vfD1QXx2EJwe73frLIsXU_gfbMIU,781
2
- industrial_model/config.py,sha256=bNEfjgD2vth4RPGKDwjGmh0edleQ95g__UJGHV4vix0,520
1
+ industrial_model/__init__.py,sha256=ix_92MZpYWxzxEytdELWUINioGYd2R1UNdJIU4IO5j0,813
2
+ industrial_model/config.py,sha256=LseCZ8JvewFejjElPUQWdmIQQUU2wnd43McDid_Rixs,474
3
3
  industrial_model/constants.py,sha256=wtFdxkR9gojqekwXeyVCof6VUkJYuqjjgAgVVKrcxaw,450
4
4
  industrial_model/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  industrial_model/utils.py,sha256=oh4AxwxXaWgIC2uolkCbvkgo0ququHB6yAPVIXy45Ts,663
@@ -26,6 +26,6 @@ industrial_model/queries/models.py,sha256=iiHQ7-cfg0nukEv5PoCx9QPF-w1gVSnoNbXBOK
26
26
  industrial_model/queries/params.py,sha256=ehgCoR5n6E-tkEuoymZ2lkLcSzMaBAx_HnyJ7sWpqz0,964
27
27
  industrial_model/statements/__init__.py,sha256=15LI9POLUdh6i3Zw0Aek0fVFfcTj8P8ZEa1Cli3pgXQ,3095
28
28
  industrial_model/statements/expressions.py,sha256=Sar1cIvy3sYi7tkWJN3ylHlZ252oN2mZJpZ1TX9jN3s,4940
29
- industrial_model-0.1.13.dist-info/METADATA,sha256=SVjWvzWjDcTnXYVMMs1zIqJTZjadxGrydjjoHVlPo7w,6144
30
- industrial_model-0.1.13.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
31
- industrial_model-0.1.13.dist-info/RECORD,,
29
+ industrial_model-0.1.15.dist-info/METADATA,sha256=QDs6HGXr4LFz--3ZoV-0VW3zg5I4UCOJknmpDnDY8hc,6144
30
+ industrial_model-0.1.15.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
31
+ industrial_model-0.1.15.dist-info/RECORD,,