pySigma-backend-sqlite 0.1.0__tar.gz → 0.1.1__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.
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pySigma-backend-sqlite
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: pySigma sqlite backend
5
- Home-page: https://github.com/wagga40/pySigma-backend-sqlite
5
+ Home-page: https://github.com/SigmaHQ/pySigma-backend-sqlite
6
6
  License: LGPL-3.0-only
7
7
  Author: wagga
8
8
  Requires-Python: >=3.8,<4.0
@@ -12,8 +12,9 @@ Classifier: Programming Language :: Python :: 3.8
12
12
  Classifier: Programming Language :: Python :: 3.9
13
13
  Classifier: Programming Language :: Python :: 3.10
14
14
  Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
15
16
  Requires-Dist: pysigma (>=0.10.5,<0.11.0)
16
- Project-URL: Repository, https://github.com/wagga40/pySigma-backend-sqlite
17
+ Project-URL: Repository, https://github.com/SigmaHQ/pySigma-backend-sqlite
17
18
  Description-Content-Type: text/markdown
18
19
 
19
20
  ![Tests](https://github.com/wagga40/pySigma-backend-sqlite/actions/workflows/test.yml/badge.svg)
@@ -1,11 +1,11 @@
1
1
  [tool.poetry]
2
2
  name = "pySigma-backend-sqlite"
3
- version = "0.1.0"
3
+ version = "0.1.1"
4
4
  description = "pySigma sqlite backend"
5
5
  readme = "README.md"
6
6
  authors = ["wagga"]
7
7
  license = "LGPL-3.0-only"
8
- repository = "https://github.com/wagga40/pySigma-backend-sqlite"
8
+ repository = "https://github.com/SigmaHQ/pySigma-backend-sqlite"
9
9
  packages = [
10
10
  { include = "sigma" }
11
11
  ]
@@ -40,11 +40,11 @@ dependencies = [
40
40
  "pysigma>=0.10.2",
41
41
  ]
42
42
  name = "pySigma-backend-sqlite"
43
- version = "0.1.0"
43
+ version = "0.1.1"
44
44
  description = "pySigma sqlite backend"
45
45
 
46
46
  [project.urls]
47
- repository = "https://github.com/wagga40/pySigma-backend-sqlite"
47
+ repository = "https://github.com/SigmaHQ/pySigma-backend-sqlite"
48
48
 
49
49
  [project.group.dev.dependencies]
50
50
  pytest = "^7.4.0"
@@ -245,8 +245,10 @@ class sqliteBackend(TextQueryBackend):
245
245
  "rule": [sqlite_query],
246
246
  "filename": ""
247
247
  }
248
-
249
- return json.dumps(zircolite_rule)
248
+ return zircolite_rule
249
+
250
+ def finalize_output_zircolite(self, queries: List[Dict]) -> str:
251
+ return json.dumps(list(queries))
250
252
 
251
253
  # TODO : SQlite only handles FTS ("MATCH") with virtual tables. Not Handled for now.
252
254
  def convert_condition_val_str(self, cond : ConditionValueExpression, state : ConversionState) -> Union[str, DeferredQueryExpression]: