coreason-manifest 0.12.0__py3-none-any.whl → 0.13.0__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.
- coreason_manifest/__init__.py +1 -1
- coreason_manifest/utils/logger.py +0 -45
- {coreason_manifest-0.12.0.dist-info → coreason_manifest-0.13.0.dist-info}/METADATA +1 -2
- {coreason_manifest-0.12.0.dist-info → coreason_manifest-0.13.0.dist-info}/RECORD +7 -7
- {coreason_manifest-0.12.0.dist-info → coreason_manifest-0.13.0.dist-info}/WHEEL +0 -0
- {coreason_manifest-0.12.0.dist-info → coreason_manifest-0.13.0.dist-info}/licenses/LICENSE +0 -0
- {coreason_manifest-0.12.0.dist-info → coreason_manifest-0.13.0.dist-info}/licenses/NOTICE +0 -0
coreason_manifest/__init__.py
CHANGED
|
@@ -8,51 +8,6 @@
|
|
|
8
8
|
#
|
|
9
9
|
# Source Code: https://github.com/CoReason-AI/coreason-manifest
|
|
10
10
|
|
|
11
|
-
# Copyright (c) 2025 CoReason, Inc.
|
|
12
|
-
#
|
|
13
|
-
# This software is proprietary and dual-licensed.
|
|
14
|
-
# Licensed under the Prosperity Public License 3.0 (the "License").
|
|
15
|
-
# A copy of the license is available at https://prosperitylicense.com/versions/3.0.0
|
|
16
|
-
# For details, see the LICENSE file.
|
|
17
|
-
# Commercial use beyond a 30-day trial requires a separate license.
|
|
18
|
-
#
|
|
19
|
-
# Source Code: https://github.com/CoReason-AI/coreason_manifest
|
|
20
|
-
|
|
21
|
-
import os
|
|
22
|
-
import sys
|
|
23
|
-
from pathlib import Path
|
|
24
|
-
|
|
25
11
|
from loguru import logger
|
|
26
12
|
|
|
27
13
|
__all__ = ["logger"]
|
|
28
|
-
|
|
29
|
-
# Remove default handler
|
|
30
|
-
logger.remove()
|
|
31
|
-
|
|
32
|
-
# Sink 1: Stdout (Human-readable)
|
|
33
|
-
logger.add(
|
|
34
|
-
sys.stderr,
|
|
35
|
-
level="INFO",
|
|
36
|
-
format=(
|
|
37
|
-
"<green>{time:YYYY-MM-DD HH:mm:ss}</green> | "
|
|
38
|
-
"<level>{level: <8}</level> | "
|
|
39
|
-
"<cyan>{name}</cyan>:<cyan>{function}</cyan>:<cyan>{line}</cyan> - "
|
|
40
|
-
"<level>{message}</level>"
|
|
41
|
-
),
|
|
42
|
-
)
|
|
43
|
-
|
|
44
|
-
# Ensure logs directory exists
|
|
45
|
-
log_dir = os.getenv("COREASON_LOG_DIR", "logs")
|
|
46
|
-
log_path = Path(log_dir)
|
|
47
|
-
if not log_path.exists():
|
|
48
|
-
log_path.mkdir(parents=True, exist_ok=True)
|
|
49
|
-
|
|
50
|
-
# Sink 2: File (JSON, Rotation, Retention)
|
|
51
|
-
logger.add(
|
|
52
|
-
f"{log_dir}/app.log",
|
|
53
|
-
rotation="500 MB",
|
|
54
|
-
retention="10 days",
|
|
55
|
-
serialize=True,
|
|
56
|
-
enqueue=True,
|
|
57
|
-
level="INFO",
|
|
58
|
-
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: coreason_manifest
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.13.0
|
|
4
4
|
Summary: This package is the definitive source of truth. If it isn't in the manifest, it doesn't exist. If it violates the manifest, it doesn't run.
|
|
5
5
|
License: # The Prosperity Public License 3.0.0
|
|
6
6
|
|
|
@@ -67,7 +67,6 @@ Requires-Python: >=3.12
|
|
|
67
67
|
Classifier: License :: Other/Proprietary License
|
|
68
68
|
Classifier: Programming Language :: Python :: 3.12
|
|
69
69
|
Classifier: Operating System :: OS Independent
|
|
70
|
-
Requires-Dist: coreason-identity (>=0.4.1,<0.5.0)
|
|
71
70
|
Requires-Dist: jsonschema (>=4.19.0,<5.0.0)
|
|
72
71
|
Requires-Dist: loguru (>=0.7.2,<0.8.0)
|
|
73
72
|
Requires-Dist: pydantic (>=2.12.5,<3.0.0)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
coreason_manifest/__init__.py,sha256=
|
|
1
|
+
coreason_manifest/__init__.py,sha256=qy8VLZO7M4S_PWl4PB7PIztcPd_JgvKUW64S3oty0UY,1189
|
|
2
2
|
coreason_manifest/common.py,sha256=ebQPiWiYSKFVAS6eXUyOIgJbsO8QDXVlFQKtSCQLRzg,2136
|
|
3
3
|
coreason_manifest/governance.py,sha256=cR0q3TUbwTx2-ROGtVh9tP6o9XUiD2ekqoNsgCPDR2o,3299
|
|
4
4
|
coreason_manifest/schemas/__init__.py,sha256=g1cCu1DprGcnGAiuvYWz5VeKKXIHYYwlrsqdkg9fRZY,412
|
|
5
5
|
coreason_manifest/schemas/coreason-v2.schema.json,sha256=R2UqXEY1NSpNNtGpyJnjJ0jhnT4U6-2FKn-WPi4tnD0,11312
|
|
6
6
|
coreason_manifest/utils/__init__.py,sha256=Kdz519fMq6c7Px3MP5oD_9jfqqFbCiaHPBQTc0LhyII,848
|
|
7
|
-
coreason_manifest/utils/logger.py,sha256=
|
|
7
|
+
coreason_manifest/utils/logger.py,sha256=Y9j1W0rFAh5lMAJbgMnqnyu9XmvgYdW895N5NeLvee0,461
|
|
8
8
|
coreason_manifest/v2/__init__.py,sha256=1bWTcGLOXjSDv2TgYXoH5wsla0T2W2ulhUHsK5AzIgM,23
|
|
9
9
|
coreason_manifest/v2/governance.py,sha256=nN2eu2YeASuDQglb35IOYm525LXWovMzAt9mba8loTY,5929
|
|
10
10
|
coreason_manifest/v2/io.py,sha256=6B5wzyW-TbnKcUgOOBaurSdZg0kQPtPx35hlcsbe1Us,4311
|
|
@@ -13,8 +13,8 @@ coreason_manifest/v2/spec/__init__.py,sha256=i8Agxsn9vs6wGCaxaHVNupRpPCeAIGTtiA9
|
|
|
13
13
|
coreason_manifest/v2/spec/contracts.py,sha256=bDlYHDWlpSsIzDU8_fwXS2d0NjEHAPkIK3VpJbvcL7k,1354
|
|
14
14
|
coreason_manifest/v2/spec/definitions.py,sha256=TV2JHBBq90jN18xg5sG9Y_swd1blcXyomLb1H6DkpW4,8603
|
|
15
15
|
coreason_manifest/v2/validator.py,sha256=iTkpb_V38KbJ89h-Zne_1xep-XL44PS1PobZRnwV5K8,1504
|
|
16
|
-
coreason_manifest-0.
|
|
17
|
-
coreason_manifest-0.
|
|
18
|
-
coreason_manifest-0.
|
|
19
|
-
coreason_manifest-0.
|
|
20
|
-
coreason_manifest-0.
|
|
16
|
+
coreason_manifest-0.13.0.dist-info/METADATA,sha256=D4Hltcoz_4efVfP6PO3zG3H5gewSn5seUbOqjmCx54c,8228
|
|
17
|
+
coreason_manifest-0.13.0.dist-info/WHEEL,sha256=kJCRJT_g0adfAJzTx2GUMmS80rTJIVHRCfG0DQgLq3o,88
|
|
18
|
+
coreason_manifest-0.13.0.dist-info/licenses/LICENSE,sha256=3tYb7ZQe7sVXcbNmX22fDESFjOSIlCZodUGpZMkuSlk,3063
|
|
19
|
+
coreason_manifest-0.13.0.dist-info/licenses/NOTICE,sha256=tqzUyP9VTCGxoHLgBI0AC1i0G7m_PSyESFL8Jwuw0dA,610
|
|
20
|
+
coreason_manifest-0.13.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|