qintel-core 0.0.1__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.
qcore/__init__.py ADDED
@@ -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
qcore/config.py ADDED
@@ -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
qcore/exceptions.py ADDED
@@ -0,0 +1,5 @@
1
+ class QCoreError(Exception):
2
+ """
3
+ Base exception for qcore.
4
+ """
5
+ pass
qcore/logging.py ADDED
@@ -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
qcore/validation.py ADDED
@@ -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,10 @@
1
+ qcore/__init__.py,sha256=Y1EpeZJPcJzHso_BoTjeq1jvhaRbqJWX_vs2aOqXHgY,207
2
+ qcore/config.py,sha256=gxrmAwdEYZxvDPQgxABCAuSISamOhxpsth3rYjWALhs,293
3
+ qcore/exceptions.py,sha256=7FOHnucCxDyFCie6x3VHDFeZ9zC390LaCisk5zvsHao,87
4
+ qcore/logging.py,sha256=75IfSw4Q1sGRLv0c6zLy4YIigJmGjXF-sOCxqkXEtNs,297
5
+ qcore/validation.py,sha256=VLabANS9R0EKpoYrtXhDTGATJhN5__kCzKFZkK8ZOCY,184
6
+ qintel_core-0.0.1.dist-info/licenses/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
+ qintel_core-0.0.1.dist-info/METADATA,sha256=oo_G6r0STnPtGi92i1n33ruvTMo_I4jJEWp334aMClE,644
8
+ qintel_core-0.0.1.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
9
+ qintel_core-0.0.1.dist-info/top_level.txt,sha256=gRI_f6_lFYANl4gO9ovyyULobJoX45efllOhFPV-m64,6
10
+ qintel_core-0.0.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.2.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
File without changes
@@ -0,0 +1 @@
1
+ qcore