garf-core 0.2.1__tar.gz → 0.2.2__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.
- {garf_core-0.2.1 → garf_core-0.2.2}/PKG-INFO +1 -1
- {garf_core-0.2.1 → garf_core-0.2.2}/garf_core/__init__.py +1 -1
- {garf_core-0.2.1 → garf_core-0.2.2}/garf_core/query_editor.py +3 -2
- {garf_core-0.2.1 → garf_core-0.2.2}/garf_core.egg-info/PKG-INFO +1 -1
- {garf_core-0.2.1 → garf_core-0.2.2}/README.md +0 -0
- {garf_core-0.2.1 → garf_core-0.2.2}/garf_core/api_clients.py +0 -0
- {garf_core-0.2.1 → garf_core-0.2.2}/garf_core/base_query.py +0 -0
- {garf_core-0.2.1 → garf_core-0.2.2}/garf_core/exceptions.py +0 -0
- {garf_core-0.2.1 → garf_core-0.2.2}/garf_core/fetchers/__init__.py +0 -0
- {garf_core-0.2.1 → garf_core-0.2.2}/garf_core/fetchers/fake.py +0 -0
- {garf_core-0.2.1 → garf_core-0.2.2}/garf_core/fetchers/rest.py +0 -0
- {garf_core-0.2.1 → garf_core-0.2.2}/garf_core/parsers.py +0 -0
- {garf_core-0.2.1 → garf_core-0.2.2}/garf_core/report.py +0 -0
- {garf_core-0.2.1 → garf_core-0.2.2}/garf_core/report_fetcher.py +0 -0
- {garf_core-0.2.1 → garf_core-0.2.2}/garf_core.egg-info/SOURCES.txt +0 -0
- {garf_core-0.2.1 → garf_core-0.2.2}/garf_core.egg-info/dependency_links.txt +0 -0
- {garf_core-0.2.1 → garf_core-0.2.2}/garf_core.egg-info/entry_points.txt +0 -0
- {garf_core-0.2.1 → garf_core-0.2.2}/garf_core.egg-info/requires.txt +0 -0
- {garf_core-0.2.1 → garf_core-0.2.2}/garf_core.egg-info/top_level.txt +0 -0
- {garf_core-0.2.1 → garf_core-0.2.2}/pyproject.toml +0 -0
- {garf_core-0.2.1 → garf_core-0.2.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: garf-core
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.2
|
4
4
|
Summary: Abstracts fetching data from API based on provided SQL-like query.
|
5
5
|
Author-email: "Google Inc. (gTech gPS CSE team)" <no-reply@google.com>, Andrei Markin <andrey.markin.ppc@gmail.com>
|
6
6
|
License: Apache 2.0
|
@@ -444,14 +444,15 @@ class QuerySpecification(CommonParametersMixin, TemplateProcessorMixin):
|
|
444
444
|
"""Removes comments and converts text to lines."""
|
445
445
|
result: list[str] = []
|
446
446
|
multiline_comment = False
|
447
|
-
for
|
447
|
+
for raw_line in self.query.text.split('\n'):
|
448
|
+
line = raw_line.strip()
|
448
449
|
if re.match('\\*/', line):
|
449
450
|
multiline_comment = False
|
450
451
|
continue
|
451
452
|
if re.match('/\\*', line) or multiline_comment:
|
452
453
|
multiline_comment = True
|
453
454
|
continue
|
454
|
-
if re.match('^(#|--|//) ', line):
|
455
|
+
if re.match('^(#|--|//) ', line) or line in ('--', '#', '//'):
|
455
456
|
continue
|
456
457
|
cleaned_query_line = re.sub(
|
457
458
|
';$', '', re.sub('(--|//) .*$', '', line).strip()
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: garf-core
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.2
|
4
4
|
Summary: Abstracts fetching data from API based on provided SQL-like query.
|
5
5
|
Author-email: "Google Inc. (gTech gPS CSE team)" <no-reply@google.com>, Andrei Markin <andrey.markin.ppc@gmail.com>
|
6
6
|
License: Apache 2.0
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|