pytrilogy 0.0.3.35__py3-none-any.whl → 0.0.3.36__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 pytrilogy might be problematic. Click here for more details.
- {pytrilogy-0.0.3.35.dist-info → pytrilogy-0.0.3.36.dist-info}/METADATA +1 -1
- {pytrilogy-0.0.3.35.dist-info → pytrilogy-0.0.3.36.dist-info}/RECORD +9 -9
- trilogy/__init__.py +1 -1
- trilogy/core/environment_helpers.py +2 -2
- trilogy/parsing/parse_engine.py +15 -12
- {pytrilogy-0.0.3.35.dist-info → pytrilogy-0.0.3.36.dist-info}/WHEEL +0 -0
- {pytrilogy-0.0.3.35.dist-info → pytrilogy-0.0.3.36.dist-info}/entry_points.txt +0 -0
- {pytrilogy-0.0.3.35.dist-info → pytrilogy-0.0.3.36.dist-info}/licenses/LICENSE.md +0 -0
- {pytrilogy-0.0.3.35.dist-info → pytrilogy-0.0.3.36.dist-info}/top_level.txt +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
pytrilogy-0.0.3.
|
|
2
|
-
trilogy/__init__.py,sha256=
|
|
1
|
+
pytrilogy-0.0.3.36.dist-info/licenses/LICENSE.md,sha256=5ZRvtTyCCFwz1THxDTjAu3Lidds9WjPvvzgVwPSYNDo,1042
|
|
2
|
+
trilogy/__init__.py,sha256=CEI-dbK4Y9yMxHpvZ7Rb_WeJdCZfUpJEbJ22AnMWjco,303
|
|
3
3
|
trilogy/compiler.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
trilogy/constants.py,sha256=5eQxk1A0pv-TQk3CCvgZCFA9_K-6nxrOm7E5Lxd7KIY,1652
|
|
5
5
|
trilogy/engine.py,sha256=OK2RuqCIUId6yZ5hfF8J1nxGP0AJqHRZiafcowmW0xc,1728
|
|
@@ -13,7 +13,7 @@ trilogy/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
13
13
|
trilogy/core/constants.py,sha256=7XaCpZn5mQmjTobbeBn56SzPWq9eMNDfzfsRU-fP0VE,171
|
|
14
14
|
trilogy/core/enums.py,sha256=fWexUZtssfvP5TiD7eQ66Q_tPUCNCCTGNSzLbVXrnqQ,7358
|
|
15
15
|
trilogy/core/env_processor.py,sha256=pFsxnluKIusGKx1z7tTnfsd_xZcPy9pZDungkjkyvI0,3170
|
|
16
|
-
trilogy/core/environment_helpers.py,sha256=
|
|
16
|
+
trilogy/core/environment_helpers.py,sha256=80XJrhSBd3CO7aWUc7r_oxXh6CeiR9cv0zaPyfK_uDM,8540
|
|
17
17
|
trilogy/core/ergonomics.py,sha256=e-7gE29vPLFdg0_A1smQ7eOrUwKl5VYdxRSTddHweRA,1631
|
|
18
18
|
trilogy/core/exceptions.py,sha256=JPYyBcit3T_pRtlHdtKSeVJkIyWUTozW2aaut25A2xI,673
|
|
19
19
|
trilogy/core/functions.py,sha256=YjPbZtfQauY6u7puehFLmPsauB5IuGa5xGETKDAgHrU,27396
|
|
@@ -91,7 +91,7 @@ trilogy/parsing/common.py,sha256=0fRM9_9k3Y24oanSTgHHjVI6LSTAaxTvkaq5ESVWR5o,235
|
|
|
91
91
|
trilogy/parsing/config.py,sha256=Z-DaefdKhPDmSXLgg5V4pebhSB0h590vI0_VtHnlukI,111
|
|
92
92
|
trilogy/parsing/exceptions.py,sha256=92E5i2frv5hj9wxObJZsZqj5T6bglvPzvdvco_vW1Zk,38
|
|
93
93
|
trilogy/parsing/helpers.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
94
|
-
trilogy/parsing/parse_engine.py,sha256=
|
|
94
|
+
trilogy/parsing/parse_engine.py,sha256=tAgcQMVTrqRQ9SUO_EvvJ3XbZ6iq_Q_2cOPU8gjSBgw,63710
|
|
95
95
|
trilogy/parsing/render.py,sha256=hI4y-xjXrEXvHslY2l2TQ8ic0zAOpN41ADH37J2_FZY,19047
|
|
96
96
|
trilogy/parsing/trilogy.lark,sha256=ErSKUy2sqpmc3OnflRbQnzTeE81y3ISfUJBD_wvypFM,13159
|
|
97
97
|
trilogy/scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -102,8 +102,8 @@ trilogy/std/display.preql,sha256=2BbhvqR4rcltyAbOXAUo7SZ_yGFYZgFnurglHMbjW2g,40
|
|
|
102
102
|
trilogy/std/geography.preql,sha256=-fqAGnBL6tR-UtT8DbSek3iMFg66ECR_B_41pODxv-k,504
|
|
103
103
|
trilogy/std/money.preql,sha256=ZHW-csTX-kYbOLmKSO-TcGGgQ-_DMrUXy0BjfuJSFxM,80
|
|
104
104
|
trilogy/std/report.preql,sha256=LbV-XlHdfw0jgnQ8pV7acG95xrd1-p65fVpiIc-S7W4,202
|
|
105
|
-
pytrilogy-0.0.3.
|
|
106
|
-
pytrilogy-0.0.3.
|
|
107
|
-
pytrilogy-0.0.3.
|
|
108
|
-
pytrilogy-0.0.3.
|
|
109
|
-
pytrilogy-0.0.3.
|
|
105
|
+
pytrilogy-0.0.3.36.dist-info/METADATA,sha256=629jTMl39NavZtrtjqTJKkBjaQzVgGiFaPEneMx0hZE,9100
|
|
106
|
+
pytrilogy-0.0.3.36.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
107
|
+
pytrilogy-0.0.3.36.dist-info/entry_points.txt,sha256=ewBPU2vLnVexZVnB-NrVj-p3E-4vukg83Zk8A55Wp2w,56
|
|
108
|
+
pytrilogy-0.0.3.36.dist-info/top_level.txt,sha256=cAy__NW_eMAa_yT9UnUNlZLFfxcg6eimUAZ184cdNiE,8
|
|
109
|
+
pytrilogy-0.0.3.36.dist-info/RECORD,,
|
trilogy/__init__.py
CHANGED
|
@@ -47,7 +47,7 @@ def generate_date_concepts(concept: Concept, environment: Environment):
|
|
|
47
47
|
)
|
|
48
48
|
new_concept = Concept(
|
|
49
49
|
name=f"{concept.name}.{fname}",
|
|
50
|
-
datatype=
|
|
50
|
+
datatype=function.output_datatype,
|
|
51
51
|
purpose=default_type,
|
|
52
52
|
lineage=function,
|
|
53
53
|
grain=concept.grain,
|
|
@@ -119,7 +119,7 @@ def generate_datetime_concepts(concept: Concept, environment: Environment):
|
|
|
119
119
|
)
|
|
120
120
|
new_concept = Concept(
|
|
121
121
|
name=f"{concept.name}.{fname}",
|
|
122
|
-
datatype=
|
|
122
|
+
datatype=const_function.output_datatype,
|
|
123
123
|
purpose=default_type,
|
|
124
124
|
lineage=const_function,
|
|
125
125
|
grain=concept.grain,
|
trilogy/parsing/parse_engine.py
CHANGED
|
@@ -368,18 +368,21 @@ class ParseToObjects(Transformer):
|
|
|
368
368
|
output.concept.metadata.description
|
|
369
369
|
or args[1].text.split("#")[1].strip()
|
|
370
370
|
)
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
371
|
+
# this is a bad plan for now;
|
|
372
|
+
# because a comment after an import statement is very common
|
|
373
|
+
# and it's not intuitive that it modifies the import description
|
|
374
|
+
# if isinstance(output, ImportStatement):
|
|
375
|
+
# if len(args) > 1 and isinstance(args[1], Comment):
|
|
376
|
+
# comment = args[1].text.split("#")[1].strip()
|
|
377
|
+
# namespace = output.alias
|
|
378
|
+
# for _, v in self.environment.concepts.items():
|
|
379
|
+
# if v.namespace == namespace:
|
|
380
|
+
# if v.metadata.description:
|
|
381
|
+
# v.metadata.description = (
|
|
382
|
+
# f"{comment}: {v.metadata.description}"
|
|
383
|
+
# )
|
|
384
|
+
# else:
|
|
385
|
+
# v.metadata.description = comment
|
|
383
386
|
|
|
384
387
|
return args[0]
|
|
385
388
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|