howler-evidence-plugin 0.1.0.dev60__py3-none-any.whl → 0.1.0.dev82__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.

Potentially problematic release.


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

evidence/config.py ADDED
@@ -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
evidence/manifest.yml ADDED
@@ -0,0 +1,5 @@
1
+ name: evidence
2
+ modules:
3
+ odm:
4
+ modify_odm:
5
+ hit: true
@@ -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.dev82
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,10 @@
1
+ evidence/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ evidence/config.py,sha256=8e6DyL7nBO0aIYJ5_nzbjgfv3dElYXThFhojLlsW9gM,1043
3
+ evidence/manifest.yml,sha256=5TG7669IuKmuYX3qQCcBOsOtzOOgzxbLJ9L1RB9WJgM,63
4
+ evidence/odm/hit.py,sha256=KDQgWNoXEoDMK_i4jSlTzaiDOJ3Ux2XLef2jLHQvtbo,819
5
+ evidence/odm/models/evidence.py,sha256=HhK5vPoF7zxuUycyS2owVwKB_Q0eQqKh-3TVoteMY0g,11549
6
+ howler_evidence_plugin-0.1.0.dev82.dist-info/LICENSE,sha256=Wg2luVnxEkP2NSn11nh1US6W_nFFbICBAVTG9iG3t5M,1091
7
+ howler_evidence_plugin-0.1.0.dev82.dist-info/METADATA,sha256=9jDU6ApvutaKtaFepasbE61v9OLuAImM5L4Do8xfPR0,698
8
+ howler_evidence_plugin-0.1.0.dev82.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
9
+ howler_evidence_plugin-0.1.0.dev82.dist-info/entry_points.txt,sha256=4IJyMY0V49s3Wp659ngN_7U8g66-czeKxI-_dNAFP5g,60
10
+ howler_evidence_plugin-0.1.0.dev82.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- evidence/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- evidence/odm/hit.py,sha256=KDQgWNoXEoDMK_i4jSlTzaiDOJ3Ux2XLef2jLHQvtbo,819
3
- evidence/odm/models/evidence.py,sha256=HhK5vPoF7zxuUycyS2owVwKB_Q0eQqKh-3TVoteMY0g,11549
4
- howler_evidence_plugin-0.1.0.dev60.dist-info/LICENSE,sha256=Wg2luVnxEkP2NSn11nh1US6W_nFFbICBAVTG9iG3t5M,1091
5
- howler_evidence_plugin-0.1.0.dev60.dist-info/METADATA,sha256=IdkepzrgY9xCq_OCrtLN6jNWjfUbcg1hLYKPplGr_WA,698
6
- howler_evidence_plugin-0.1.0.dev60.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
7
- howler_evidence_plugin-0.1.0.dev60.dist-info/entry_points.txt,sha256=4IJyMY0V49s3Wp659ngN_7U8g66-czeKxI-_dNAFP5g,60
8
- howler_evidence_plugin-0.1.0.dev60.dist-info/RECORD,,