howler-evidence-plugin 0.1.0.dev60__tar.gz → 0.1.0.dev83__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.

Potentially problematic release.


This version of howler-evidence-plugin might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: howler-evidence-plugin
3
- Version: 0.1.0.dev60
3
+ Version: 0.1.0.dev83
4
4
  Summary: A howler plugin to add additional nested ECS fields to the Howler ODM
5
5
  License: MIT
6
6
  Author: CCCS
@@ -0,0 +1,38 @@
1
+ # mypy: ignore-errors
2
+ import os
3
+ from pathlib import Path
4
+
5
+ from howler.plugins.config import BasePluginConfig
6
+ from pydantic_settings import SettingsConfigDict
7
+
8
+ APP_NAME = os.environ.get("APP_NAME", "howler")
9
+ PLUGIN_NAME = "evidence"
10
+
11
+ root_path = Path("/etc") / APP_NAME.replace("-dev", "").replace("-stg", "")
12
+
13
+ config_locations = [
14
+ Path(__file__).parent / "manifest.yml",
15
+ root_path / "conf" / f"{PLUGIN_NAME}.yml",
16
+ Path(os.environ.get("HWL_CONF_FOLDER", root_path)) / f"{PLUGIN_NAME}.yml",
17
+ ]
18
+
19
+
20
+ class EvidenceConfig(BasePluginConfig):
21
+ "Evidence Plugin Configuration Model"
22
+
23
+ model_config = SettingsConfigDict(
24
+ yaml_file=config_locations,
25
+ yaml_file_encoding="utf-8",
26
+ strict=True,
27
+ env_nested_delimiter="__",
28
+ env_prefix=f"{PLUGIN_NAME}_",
29
+ )
30
+
31
+
32
+ config = EvidenceConfig()
33
+
34
+ if __name__ == "__main__":
35
+ # When executed, the config model will print the default values of the configuration
36
+ import yaml
37
+
38
+ print(yaml.safe_dump(EvidenceConfig().model_dump(mode="json"))) # noqa: T201
@@ -0,0 +1,5 @@
1
+ name: evidence
2
+ modules:
3
+ odm:
4
+ modify_odm:
5
+ hit: true
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "howler-evidence-plugin"
3
- version = "0.1.0.dev60"
3
+ version = "0.1.0.dev83"
4
4
  description = "A howler plugin to add additional nested ECS fields to the Howler ODM"
5
5
  authors = [{ name = "CCCS", email = "analysis-development@cyber.gc.ca" }]
6
6
  license = { text = "MIT" }