industrial-model 0.1.5__py3-none-any.whl → 0.1.6__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.
@@ -8,12 +8,13 @@ from .models import (
8
8
  ViewInstance,
9
9
  ViewInstanceConfig,
10
10
  )
11
- from .statements import and_, col, or_, select
11
+ from .statements import and_, col, not_, or_, select
12
12
 
13
13
  __all__ = [
14
14
  "and_",
15
15
  "or_",
16
16
  "col",
17
+ "not_",
17
18
  "select",
18
19
  "ViewInstance",
19
20
  "InstanceId",
@@ -10,6 +10,7 @@ from .expressions import (
10
10
  LeafExpression,
11
11
  and_,
12
12
  col,
13
+ not_,
13
14
  or_,
14
15
  )
15
16
 
@@ -66,5 +67,6 @@ __all__ = [
66
67
  "LeafExpression",
67
68
  "BoolExpression",
68
69
  "and_",
70
+ "not_",
69
71
  "or_",
70
72
  ]
@@ -161,5 +161,11 @@ def or_(*expressions: bool | LeafExpression | BoolExpression) -> bool:
161
161
  ) # type: ignore
162
162
 
163
163
 
164
+ def not_(*expressions: bool | LeafExpression | BoolExpression) -> bool:
165
+ return BoolExpression(
166
+ operator="not", filters=_unwrap_expressions(*expressions)
167
+ ) # type: ignore
168
+
169
+
164
170
  def col(property: Any) -> Column:
165
171
  return Column(property)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: industrial-model
3
- Version: 0.1.5
3
+ Version: 0.1.6
4
4
  Summary: Industrial Model ORM
5
5
  Author-email: Lucas Alves <lucasrosaalves@gmail.com>
6
6
  Classifier: Programming Language :: Python
@@ -1,4 +1,4 @@
1
- industrial_model/__init__.py,sha256=EDOULHjsfkh_XJVHVajSpQycMWLsQ3STmVj_WoKfiWc,507
1
+ industrial_model/__init__.py,sha256=qst1HvSXw7ytYTvi_hgg8989rSqKXF3n_8jv3wO73x8,525
2
2
  industrial_model/config.py,sha256=wzSKVKHIdGlxCRtu0PIeL3SLYvnQBR4Py46CcETxa8U,238
3
3
  industrial_model/constants.py,sha256=wtFdxkR9gojqekwXeyVCof6VUkJYuqjjgAgVVKrcxaw,450
4
4
  industrial_model/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -21,8 +21,8 @@ industrial_model/models/schemas.py,sha256=FzreMCR2TGX89-tMRpCNdcYqHj1u9QlocRLNwE
21
21
  industrial_model/queries/__init__.py,sha256=7aheTE5qs03rxWm9fmGWptbz_p9OIXXYD8if56cqs18,227
22
22
  industrial_model/queries/models.py,sha256=iiHQ7-cfg0nukEv5PoCx9QPF-w1gVSnoNbXBOK9Mzeo,1185
23
23
  industrial_model/queries/params.py,sha256=ehgCoR5n6E-tkEuoymZ2lkLcSzMaBAx_HnyJ7sWpqz0,964
24
- industrial_model/statements/__init__.py,sha256=mqPIvfQ-XZ_IILwha7RbkdIKH_MRAdAvfrw80pCKU1c,1753
25
- industrial_model/statements/expressions.py,sha256=bsUnkFDGVHpOQ1RUtEbSPE1nfVkF0zC3m5-9JFkSqu8,4751
26
- industrial_model-0.1.5.dist-info/METADATA,sha256=QqFzf6bL7tomB8Ym8LLtMTQBWe7yIuaPtni1NzCoWSM,4806
27
- industrial_model-0.1.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
28
- industrial_model-0.1.5.dist-info/RECORD,,
24
+ industrial_model/statements/__init__.py,sha256=9fD-qpNXIkrjoahxC_R6hS4DKSVelehimvRPKbpYfA0,1775
25
+ industrial_model/statements/expressions.py,sha256=Sar1cIvy3sYi7tkWJN3ylHlZ252oN2mZJpZ1TX9jN3s,4940
26
+ industrial_model-0.1.6.dist-info/METADATA,sha256=M-BS6_DyB4pIwwqPlvBp4_7XCqFDBbdver_EXwZ8WMo,4806
27
+ industrial_model-0.1.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
28
+ industrial_model-0.1.6.dist-info/RECORD,,