pytrilogy 0.0.3.54__py3-none-any.whl → 0.0.3.56__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.

Files changed (37) hide show
  1. {pytrilogy-0.0.3.54.dist-info → pytrilogy-0.0.3.56.dist-info}/METADATA +1 -1
  2. {pytrilogy-0.0.3.54.dist-info → pytrilogy-0.0.3.56.dist-info}/RECORD +37 -30
  3. trilogy/__init__.py +1 -1
  4. trilogy/constants.py +2 -0
  5. trilogy/core/enums.py +6 -0
  6. trilogy/core/functions.py +3 -0
  7. trilogy/core/models/author.py +12 -4
  8. trilogy/core/models/execute.py +207 -2
  9. trilogy/core/optimization.py +3 -3
  10. trilogy/core/optimizations/inline_datasource.py +5 -7
  11. trilogy/core/processing/concept_strategies_v3.py +323 -878
  12. trilogy/core/processing/discovery_loop.py +0 -0
  13. trilogy/core/processing/discovery_node_factory.py +469 -0
  14. trilogy/core/processing/discovery_utility.py +123 -0
  15. trilogy/core/processing/discovery_validation.py +155 -0
  16. trilogy/core/processing/node_generators/__init__.py +2 -0
  17. trilogy/core/processing/node_generators/recursive_node.py +87 -0
  18. trilogy/core/processing/node_generators/select_node.py +6 -8
  19. trilogy/core/processing/nodes/__init__.py +4 -4
  20. trilogy/core/processing/nodes/recursive_node.py +46 -0
  21. trilogy/core/query_processor.py +7 -1
  22. trilogy/dialect/base.py +11 -2
  23. trilogy/dialect/bigquery.py +5 -6
  24. trilogy/dialect/common.py +19 -3
  25. trilogy/dialect/duckdb.py +1 -1
  26. trilogy/dialect/snowflake.py +8 -8
  27. trilogy/parsing/common.py +4 -3
  28. trilogy/parsing/parse_engine.py +12 -0
  29. trilogy/parsing/trilogy.lark +3 -1
  30. trilogy/std/date.preql +3 -1
  31. trilogy/std/geography.preql +4 -0
  32. trilogy/std/money.preql +65 -4
  33. trilogy/std/net.preql +8 -0
  34. {pytrilogy-0.0.3.54.dist-info → pytrilogy-0.0.3.56.dist-info}/WHEEL +0 -0
  35. {pytrilogy-0.0.3.54.dist-info → pytrilogy-0.0.3.56.dist-info}/entry_points.txt +0 -0
  36. {pytrilogy-0.0.3.54.dist-info → pytrilogy-0.0.3.56.dist-info}/licenses/LICENSE.md +0 -0
  37. {pytrilogy-0.0.3.54.dist-info → pytrilogy-0.0.3.56.dist-info}/top_level.txt +0 -0
trilogy/std/money.preql CHANGED
@@ -1,6 +1,67 @@
1
+ # generic currency types
1
2
 
3
+ # Major global currencies
4
+ type usd numeric; # US Dollar
5
+ type eur numeric; # Euro
6
+ type gbp numeric; # British Pound Sterling
7
+ type jpy numeric; # Japanese Yen
8
+ type chf numeric; # Swiss Franc
9
+ type cad numeric; # Canadian Dollar
10
+ type aud numeric; # Australian Dollar
11
+ type nzd numeric; # New Zealand Dollar
2
12
 
3
- # generic currency types
4
- type usd numeric;
5
- type eur numeric;
6
- type gbp numeric;
13
+ # Asian currencies
14
+ type cny numeric; # Chinese Yuan
15
+ type hkd numeric; # Hong Kong Dollar
16
+ type sgd numeric; # Singapore Dollar
17
+ type krw numeric; # South Korean Won
18
+ type inr numeric; # Indian Rupee
19
+ type thb numeric; # Thai Baht
20
+ type php numeric; # Philippine Peso
21
+ type myr numeric; # Malaysian Ringgit
22
+ type idr numeric; # Indonesian Rupiah
23
+ type vnd numeric; # Vietnamese Dong
24
+
25
+ # European currencies (non-Euro)
26
+ type sek numeric; # Swedish Krona
27
+ type nok numeric; # Norwegian Krone
28
+ type dkk numeric; # Danish Krone
29
+ type pln numeric; # Polish Zloty
30
+ type czk numeric; # Czech Koruna
31
+ type huf numeric; # Hungarian Forint
32
+ type ron numeric; # Romanian Leu
33
+ type bgn numeric; # Bulgarian Lev
34
+ type rub numeric; # Russian Ruble
35
+
36
+ # Middle Eastern currencies
37
+ type aed numeric; # UAE Dirham
38
+ type sar numeric; # Saudi Riyal
39
+ type qar numeric; # Qatari Riyal
40
+ type kwd numeric; # Kuwaiti Dinar
41
+ type bhd numeric; # Bahraini Dinar
42
+ type omr numeric; # Omani Rial
43
+ type jod numeric; # Jordanian Dinar
44
+ type ils numeric; # Israeli Shekel
45
+ type try numeric; # Turkish Lira
46
+
47
+ # African currencies
48
+ type zar numeric; # South African Rand
49
+ type egp numeric; # Egyptian Pound
50
+ type ngn numeric; # Nigerian Naira
51
+ type mad numeric; # Moroccan Dirham
52
+ type kes numeric; # Kenyan Shilling
53
+ type ghs numeric; # Ghanaian Cedi
54
+
55
+ # Latin American currencies
56
+ type mxn numeric; # Mexican Peso
57
+ type brl numeric; # Brazilian Real
58
+ type ars numeric; # Argentine Peso
59
+ type cop numeric; # Colombian Peso
60
+ type pen numeric; # Peruvian Sol
61
+ type clp numeric; # Chilean Peso
62
+ type uyu numeric; # Uruguayan Peso
63
+
64
+ # Other notable currencies
65
+ type isk numeric; # Icelandic Krona
66
+ type xof numeric; # West African CFA Franc
67
+ type xaf numeric; # Central African CFA Franc
trilogy/std/net.preql ADDED
@@ -0,0 +1,8 @@
1
+
2
+
3
+ type url string;
4
+ type domain string;
5
+ type ip_net_mask string;
6
+ type ipv6_address string;
7
+ type ipv4_address string;
8
+ type suffix string;