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 +11 -0
- qcore/config.py +13 -0
- qcore/exceptions.py +5 -0
- qcore/logging.py +13 -0
- qcore/validation.py +9 -0
- qintel_core-0.0.1.dist-info/METADATA +37 -0
- qintel_core-0.0.1.dist-info/RECORD +10 -0
- qintel_core-0.0.1.dist-info/WHEEL +5 -0
- qintel_core-0.0.1.dist-info/licenses/LICENSE +0 -0
- qintel_core-0.0.1.dist-info/top_level.txt +1 -0
qcore/__init__.py
ADDED
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
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,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,,
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
qcore
|