qintel-core 0.0.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.
File without changes
@@ -0,0 +1,37 @@
1
+ Metadata-Version: 2.4
2
+ Name: qintel-core
3
+ Version: 0.0.1
4
+ Summary: Core utilities for the Q Intelligence ecosystem
5
+ Requires-Python: >=3.10
6
+ Description-Content-Type: text/markdown
7
+ License-File: LICENSE
8
+ Dynamic: license-file
9
+
10
+ # qintel-core
11
+
12
+ Core utilities for the Q Intelligence ecosystem.
13
+
14
+ ## Features
15
+
16
+ - Configuration management
17
+ - Validation helpers
18
+ - Logging utilities
19
+ - Common exceptions
20
+
21
+ ## Installation
22
+
23
+ ```bash
24
+ pip install qintel-core
25
+ ```
26
+
27
+ ## Status
28
+
29
+ Early development (v0.0.1).
30
+
31
+ Part of the Q Intelligence ecosystem:
32
+
33
+ - qintel-safeai
34
+ - qintel-redact
35
+ - qintel-support
36
+ - qintel-journals
37
+ - qintel-sentiment
@@ -0,0 +1,28 @@
1
+ # qintel-core
2
+
3
+ Core utilities for the Q Intelligence ecosystem.
4
+
5
+ ## Features
6
+
7
+ - Configuration management
8
+ - Validation helpers
9
+ - Logging utilities
10
+ - Common exceptions
11
+
12
+ ## Installation
13
+
14
+ ```bash
15
+ pip install qintel-core
16
+ ```
17
+
18
+ ## Status
19
+
20
+ Early development (v0.0.1).
21
+
22
+ Part of the Q Intelligence ecosystem:
23
+
24
+ - qintel-safeai
25
+ - qintel-redact
26
+ - qintel-support
27
+ - qintel-journals
28
+ - qintel-sentiment
@@ -0,0 +1,6 @@
1
+ [project]
2
+ name = "qintel-core"
3
+ version = "0.0.1"
4
+ description = "Core utilities for the Q Intelligence ecosystem"
5
+ readme = "README.md"
6
+ requires-python = ">=3.10"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,11 @@
1
+ """
2
+ qcore
3
+
4
+ Core utilities for the Q Intelligence ecosystem.
5
+ """
6
+
7
+ __version__ = "0.0.1"
8
+
9
+ from qcore.config import Config
10
+ from qcore.exceptions import QCoreError
11
+ from qcore.validation import is_email
@@ -0,0 +1,13 @@
1
+ class Config:
2
+ """
3
+ Simple configuration container.
4
+ """
5
+
6
+ def __init__(self, **kwargs):
7
+ self._values = kwargs
8
+
9
+ def get(self, key, default=None):
10
+ return self._values.get(key, default)
11
+
12
+ def set(self, key, value):
13
+ self._values[key] = value
@@ -0,0 +1,5 @@
1
+ class QCoreError(Exception):
2
+ """
3
+ Base exception for qcore.
4
+ """
5
+ pass
@@ -0,0 +1,13 @@
1
+ import logging
2
+
3
+
4
+ def get_logger(name: str) -> logging.Logger:
5
+ logger = logging.getLogger(name)
6
+
7
+ if not logger.handlers:
8
+ logging.basicConfig(
9
+ level=logging.INFO,
10
+ format="%(asctime)s %(levelname)s %(name)s %(message)s"
11
+ )
12
+
13
+ return logger
@@ -0,0 +1,9 @@
1
+ import re
2
+
3
+ EMAIL_PATTERN = re.compile(
4
+ r"^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$"
5
+ )
6
+
7
+
8
+ def is_email(value: str) -> bool:
9
+ return bool(EMAIL_PATTERN.match(value))
@@ -0,0 +1,37 @@
1
+ Metadata-Version: 2.4
2
+ Name: qintel-core
3
+ Version: 0.0.1
4
+ Summary: Core utilities for the Q Intelligence ecosystem
5
+ Requires-Python: >=3.10
6
+ Description-Content-Type: text/markdown
7
+ License-File: LICENSE
8
+ Dynamic: license-file
9
+
10
+ # qintel-core
11
+
12
+ Core utilities for the Q Intelligence ecosystem.
13
+
14
+ ## Features
15
+
16
+ - Configuration management
17
+ - Validation helpers
18
+ - Logging utilities
19
+ - Common exceptions
20
+
21
+ ## Installation
22
+
23
+ ```bash
24
+ pip install qintel-core
25
+ ```
26
+
27
+ ## Status
28
+
29
+ Early development (v0.0.1).
30
+
31
+ Part of the Q Intelligence ecosystem:
32
+
33
+ - qintel-safeai
34
+ - qintel-redact
35
+ - qintel-support
36
+ - qintel-journals
37
+ - qintel-sentiment
@@ -0,0 +1,15 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ src/qcore/__init__.py
5
+ src/qcore/config.py
6
+ src/qcore/exceptions.py
7
+ src/qcore/logging.py
8
+ src/qcore/validation.py
9
+ src/qintel_core.egg-info/PKG-INFO
10
+ src/qintel_core.egg-info/SOURCES.txt
11
+ src/qintel_core.egg-info/dependency_links.txt
12
+ src/qintel_core.egg-info/top_level.txt
13
+ tests/test_config.py
14
+ tests/test_logging.py
15
+ tests/test_validation.py
@@ -0,0 +1,6 @@
1
+ from qcore.config import Config
2
+
3
+
4
+ def test_config_get():
5
+ config = Config(name="Q")
6
+ assert config.get("name") == "Q"
@@ -0,0 +1,6 @@
1
+ from qcore.logging import get_logger
2
+
3
+
4
+ def test_logger_creation():
5
+ logger = get_logger("test")
6
+ assert logger.name == "test"
@@ -0,0 +1,9 @@
1
+ from qcore.validation import is_email
2
+
3
+
4
+ def test_valid_email():
5
+ assert is_email("test@example.com")
6
+
7
+
8
+ def test_invalid_email():
9
+ assert not is_email("not-an-email")