queryparser-python3 0.7.3__tar.gz → 0.8.0__tar.gz

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.
Files changed (35) hide show
  1. {queryparser_python3-0.7.3/lib/queryparser_python3.egg-info → queryparser_python3-0.8.0}/PKG-INFO +12 -11
  2. {queryparser_python3-0.7.3 → queryparser_python3-0.8.0}/README.md +6 -7
  3. queryparser_python3-0.8.0/lib/queryparser/__init__.py +1 -0
  4. queryparser_python3-0.8.0/lib/queryparser/adql/ADQLLexer.py +1468 -0
  5. {queryparser_python3-0.7.3 → queryparser_python3-0.8.0}/lib/queryparser/adql/ADQLParser.py +1125 -1105
  6. {queryparser_python3-0.7.3 → queryparser_python3-0.8.0}/lib/queryparser/adql/ADQLParserListener.py +1 -1
  7. {queryparser_python3-0.7.3 → queryparser_python3-0.8.0}/lib/queryparser/adql/ADQLParserVisitor.py +1 -1
  8. {queryparser_python3-0.7.3 → queryparser_python3-0.8.0}/lib/queryparser/adql/adqltranslator.py +117 -66
  9. {queryparser_python3-0.7.3 → queryparser_python3-0.8.0}/lib/queryparser/mysql/MySQLLexer.py +2 -2
  10. {queryparser_python3-0.7.3 → queryparser_python3-0.8.0}/lib/queryparser/mysql/MySQLParser.py +2 -2
  11. {queryparser_python3-0.7.3 → queryparser_python3-0.8.0}/lib/queryparser/mysql/MySQLParserListener.py +1 -1
  12. queryparser_python3-0.8.0/lib/queryparser/postgresql/PostgreSQLLexer.py +1260 -0
  13. {queryparser_python3-0.7.3 → queryparser_python3-0.8.0}/lib/queryparser/postgresql/PostgreSQLParser.py +1575 -2170
  14. {queryparser_python3-0.7.3 → queryparser_python3-0.8.0}/lib/queryparser/postgresql/PostgreSQLParserListener.py +1 -82
  15. {queryparser_python3-0.7.3 → queryparser_python3-0.8.0/lib/queryparser_python3.egg-info}/PKG-INFO +12 -11
  16. {queryparser_python3-0.7.3 → queryparser_python3-0.8.0}/lib/queryparser_python3.egg-info/requires.txt +1 -1
  17. {queryparser_python3-0.7.3 → queryparser_python3-0.8.0}/pyproject.toml +7 -3
  18. queryparser_python3-0.7.3/lib/queryparser/__init__.py +0 -1
  19. queryparser_python3-0.7.3/lib/queryparser/adql/ADQLLexer.py +0 -1465
  20. queryparser_python3-0.7.3/lib/queryparser/postgresql/PostgreSQLLexer.py +0 -1247
  21. {queryparser_python3-0.7.3 → queryparser_python3-0.8.0}/LICENSE +0 -0
  22. {queryparser_python3-0.7.3 → queryparser_python3-0.8.0}/lib/queryparser/adql/__init__.py +0 -0
  23. {queryparser_python3-0.7.3 → queryparser_python3-0.8.0}/lib/queryparser/common/__init__.py +0 -0
  24. {queryparser_python3-0.7.3 → queryparser_python3-0.8.0}/lib/queryparser/common/common.py +0 -0
  25. {queryparser_python3-0.7.3 → queryparser_python3-0.8.0}/lib/queryparser/exceptions/__init__.py +0 -0
  26. {queryparser_python3-0.7.3 → queryparser_python3-0.8.0}/lib/queryparser/mysql/__init__.py +0 -0
  27. {queryparser_python3-0.7.3 → queryparser_python3-0.8.0}/lib/queryparser/mysql/mysqllisteners.py +0 -0
  28. {queryparser_python3-0.7.3 → queryparser_python3-0.8.0}/lib/queryparser/mysql/mysqlprocessor.py +0 -0
  29. {queryparser_python3-0.7.3 → queryparser_python3-0.8.0}/lib/queryparser/postgresql/__init__.py +0 -0
  30. {queryparser_python3-0.7.3 → queryparser_python3-0.8.0}/lib/queryparser/postgresql/postgresqllisteners.py +0 -0
  31. {queryparser_python3-0.7.3 → queryparser_python3-0.8.0}/lib/queryparser/postgresql/postgresqlprocessor.py +0 -0
  32. {queryparser_python3-0.7.3 → queryparser_python3-0.8.0}/lib/queryparser_python3.egg-info/SOURCES.txt +0 -0
  33. {queryparser_python3-0.7.3 → queryparser_python3-0.8.0}/lib/queryparser_python3.egg-info/dependency_links.txt +0 -0
  34. {queryparser_python3-0.7.3 → queryparser_python3-0.8.0}/lib/queryparser_python3.egg-info/top_level.txt +0 -0
  35. {queryparser_python3-0.7.3 → queryparser_python3-0.8.0}/setup.cfg +0 -0
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: queryparser-python3
3
- Version: 0.7.3
3
+ Version: 0.8.0
4
4
  Summary: Package for parsing PostgreSQL/MySQL and translating ADQL to PostgreSQL/MySQL.
5
- Author-email: Gal Matijevic <gmatijevic@aip.de>
6
- Maintainer-email: Kirill Makan <kmakan@aip.de>, Simeon Reusch <sreusch@aip.de>
5
+ Author-email: Kirill Makan <kmakan@aip.de>, Gal Matijevic <gmatijevic@aip.de>
6
+ Maintainer-email: Kirill Makan <kmakan@aip.de>
7
7
  License: Apache-2.0
8
8
  Project-URL: Repository, https://github.com/aipescience/queryparser.git
9
9
  Project-URL: Issues, https://github.com/aipescience/queryparser/issues
@@ -17,10 +17,12 @@ Classifier: Programming Language :: Python :: 3 :: Only
17
17
  Classifier: Programming Language :: Python :: 3.9
18
18
  Classifier: Programming Language :: Python :: 3.10
19
19
  Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
20
22
  Requires-Python: >=3.9
21
23
  Description-Content-Type: text/markdown
22
24
  License-File: LICENSE
23
- Requires-Dist: antlr4-python3-runtime==4.13.1
25
+ Requires-Dist: antlr4-python3-runtime==4.13.2
24
26
  Provides-Extra: test
25
27
  Requires-Dist: pytest~=8.2.0; extra == "test"
26
28
  Requires-Dist: PyYAML~=6.0; extra == "test"
@@ -74,7 +76,7 @@ To generate the parsers you need `python3` , `java` above version
74
76
  The current version of `antlr-4.*-complete.jar` can be downloaded via
75
77
 
76
78
  ```bash
77
- wget http://www.antlr.org/download/antlr-4.13.1-complete.jar
79
+ wget http://www.antlr.org/download/antlr-4.13.2-complete.jar
78
80
  ```
79
81
 
80
82
  After cloning the project run
@@ -95,9 +97,9 @@ to install the generated parser in your virtual environment.
95
97
  Additional requirements
96
98
  -----------------------
97
99
  The queryparser assumes that the PostgreSQL database has the extension
98
- [pg_sphere](https://github.com/kimakan/pgsphere/tree/aiprdbms16) installed.
99
- Although the `pg_sphere` is not required for the python module, the PostgreSQL
100
- **queries will not run** without this extension installed on the database.
100
+ [pg_sphere](https://github.com/postgrespro/pgsphere) installed.
101
+ Although `pg_sphere` is not required for the Python module, PostgreSQL
102
+ **queries will not run** without this extension installed in the database.
101
103
 
102
104
 
103
105
  Parsing MySQL and PostgreSQL
@@ -152,7 +154,7 @@ the `ADQLQueryTranslator` class
152
154
 
153
155
  ```python
154
156
  from queryparser.adql import ADQLQueryTranslator
155
- adql = "SELECT TOP 100 POINT('ICRS', ra, de) FROM db.tab;"
157
+ adql = "SELECT TOP 100 POINT('ICRS', ra, dec) FROM db.tab;"
156
158
  adt = ADQLQueryTranslator(adql)
157
159
  ```
158
160
 
@@ -162,7 +164,7 @@ and calling
162
164
  adt.to_postgresql()
163
165
  ```
164
166
 
165
- which returns a translated string representing a valid MySQL query if
167
+ which returns a translated string representing a valid PostgreSQL query if
166
168
  the ADQL query had no errors. The PostgreSQL query can then be parsed with the
167
169
  `PostgreSQLQueryProcessor` in the same way as shown above.
168
170
 
@@ -181,4 +183,3 @@ then run the test suite with
181
183
  ```bash
182
184
  python -m pytest lib/
183
185
  ```
184
-
@@ -42,7 +42,7 @@ To generate the parsers you need `python3` , `java` above version
42
42
  The current version of `antlr-4.*-complete.jar` can be downloaded via
43
43
 
44
44
  ```bash
45
- wget http://www.antlr.org/download/antlr-4.13.1-complete.jar
45
+ wget http://www.antlr.org/download/antlr-4.13.2-complete.jar
46
46
  ```
47
47
 
48
48
  After cloning the project run
@@ -63,9 +63,9 @@ to install the generated parser in your virtual environment.
63
63
  Additional requirements
64
64
  -----------------------
65
65
  The queryparser assumes that the PostgreSQL database has the extension
66
- [pg_sphere](https://github.com/kimakan/pgsphere/tree/aiprdbms16) installed.
67
- Although the `pg_sphere` is not required for the python module, the PostgreSQL
68
- **queries will not run** without this extension installed on the database.
66
+ [pg_sphere](https://github.com/postgrespro/pgsphere) installed.
67
+ Although `pg_sphere` is not required for the Python module, PostgreSQL
68
+ **queries will not run** without this extension installed in the database.
69
69
 
70
70
 
71
71
  Parsing MySQL and PostgreSQL
@@ -120,7 +120,7 @@ the `ADQLQueryTranslator` class
120
120
 
121
121
  ```python
122
122
  from queryparser.adql import ADQLQueryTranslator
123
- adql = "SELECT TOP 100 POINT('ICRS', ra, de) FROM db.tab;"
123
+ adql = "SELECT TOP 100 POINT('ICRS', ra, dec) FROM db.tab;"
124
124
  adt = ADQLQueryTranslator(adql)
125
125
  ```
126
126
 
@@ -130,7 +130,7 @@ and calling
130
130
  adt.to_postgresql()
131
131
  ```
132
132
 
133
- which returns a translated string representing a valid MySQL query if
133
+ which returns a translated string representing a valid PostgreSQL query if
134
134
  the ADQL query had no errors. The PostgreSQL query can then be parsed with the
135
135
  `PostgreSQLQueryProcessor` in the same way as shown above.
136
136
 
@@ -149,4 +149,3 @@ then run the test suite with
149
149
  ```bash
150
150
  python -m pytest lib/
151
151
  ```
152
-
@@ -0,0 +1 @@
1
+ __version__ = '0.8.0'