garf-core 0.2.1__py3-none-any.whl → 0.2.2__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.
garf_core/__init__.py CHANGED
@@ -26,4 +26,4 @@ __all__ = [
26
26
  'ApiReportFetcher',
27
27
  ]
28
28
 
29
- __version__ = '0.2.1'
29
+ __version__ = '0.2.2'
garf_core/query_editor.py CHANGED
@@ -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 line in self.query.text.split('\n'):
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.1
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
@@ -1,16 +1,16 @@
1
- garf_core/__init__.py,sha256=ml6Xq1xyIO0Mx2FJsW0lTQ7z51UhpmMWfANHqedkpQg,954
1
+ garf_core/__init__.py,sha256=0bg9c8hoqwvkECzTRKKPecSkNYvrJVYgB6IRYK2e0CE,954
2
2
  garf_core/api_clients.py,sha256=PTuNz-nsnAwAhh1eyqt6fx0O3kbnL_1W5lxU_3YmhF4,4747
3
3
  garf_core/base_query.py,sha256=ZDAw2ojmismXRO0HXEvKDukpS7OAc7390LnM8kvCSCY,1201
4
4
  garf_core/exceptions.py,sha256=Gzvkl2M-rA_XQRAMd3CC62KHeFQE_b6uby0fD0pouw4,1269
5
5
  garf_core/parsers.py,sha256=Y1hJFvvtRCiiR0A-Vh8fIVjBVLdmKZEnxRnGJ5I7hZw,5353
6
- garf_core/query_editor.py,sha256=0bOX_Tz3D3KCcUrNddp_do4aoWAd0IEBtM-1u7JcJVU,19603
6
+ garf_core/query_editor.py,sha256=rlTbpjJn-Vqd1poLpW7-RUB8__-NR8b8Ehskl-HmL1s,19666
7
7
  garf_core/report.py,sha256=J2-oNV3Nh7ToYhm2fsdovkiE__-UhT0K5-wP0jBD0oQ,20330
8
8
  garf_core/report_fetcher.py,sha256=478HrA31-mCEP2E6cPlxonvBrddBBnSUxFp5D3yE-yU,4994
9
9
  garf_core/fetchers/__init__.py,sha256=_cSjg1D5RhUKxaVeVbaDdb8AAoI9glKJXgN5H4qXFkw,783
10
10
  garf_core/fetchers/fake.py,sha256=fgJjxuHyd6EIUflUtj8r_HfaMS1YTDrOqDlaj6Kvbjs,2584
11
11
  garf_core/fetchers/rest.py,sha256=-5B2-Ck_t3hG99ym59AKwlzctiDxRFI2Nnc8STBxRDo,2201
12
- garf_core-0.2.1.dist-info/METADATA,sha256=0wuvUWUnnoqwNI9Veg2BNeOAncAcB4BOwTKmPf9CmeM,2427
13
- garf_core-0.2.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
14
- garf_core-0.2.1.dist-info/entry_points.txt,sha256=u4h-ujHO1hbxVXRQzwcC4ftju9_KBYtq5mCLKEBHMj0,69
15
- garf_core-0.2.1.dist-info/top_level.txt,sha256=Gj-Zp7fM2turGut5vTJuo5xEcKfow7cTLX3y3WFfNgA,10
16
- garf_core-0.2.1.dist-info/RECORD,,
12
+ garf_core-0.2.2.dist-info/METADATA,sha256=Zu4uxogtlVeY-NUxSF0gxNiPiOUt-bXt_yC54X2q4hY,2427
13
+ garf_core-0.2.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
14
+ garf_core-0.2.2.dist-info/entry_points.txt,sha256=u4h-ujHO1hbxVXRQzwcC4ftju9_KBYtq5mCLKEBHMj0,69
15
+ garf_core-0.2.2.dist-info/top_level.txt,sha256=Gj-Zp7fM2turGut5vTJuo5xEcKfow7cTLX3y3WFfNgA,10
16
+ garf_core-0.2.2.dist-info/RECORD,,