pacif-framework 3.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.
pacif_core/__init__.py ADDED
@@ -0,0 +1,14 @@
1
+ """PACIF: Predictive Alignment & Causal Information Flow."""
2
+
3
+ from .audit import AuditReporter
4
+ from .drift import DriftDetector
5
+ from .estimator import estimate_alignment
6
+
7
+ __version__ = "3.0.1"
8
+
9
+ __all__ = [
10
+ "estimate_alignment",
11
+ "DriftDetector",
12
+ "AuditReporter",
13
+ "__version__",
14
+ ]
pacif_core/audit.py ADDED
@@ -0,0 +1,147 @@
1
+ """Regulator-ready audit report generation with anti-gaming checks."""
2
+ from __future__ import annotations
3
+
4
+ from datetime import datetime, timezone
5
+ from typing import Any
6
+
7
+ import yaml
8
+
9
+
10
+ class AuditReporter:
11
+ """Generate machine-readable YAML audit reports for PACIF runs."""
12
+
13
+ @staticmethod
14
+ def generate_report(
15
+ results: list[dict[str, Any]],
16
+ schema_version: str = "1.1",
17
+ *,
18
+ exclusion_rate_threshold: float = 0.4,
19
+ category_inflation_ratio: float = 3.0,
20
+ min_events_for_inflation: int = 30,
21
+ ) -> str:
22
+ """Build an audit report from a list of estimate_alignment results.
23
+
24
+ Parameters
25
+ ----------
26
+ results:
27
+ List of dicts returned by ``estimate_alignment`` (and optionally
28
+ enriched with drift flags).
29
+ schema_version:
30
+ Report schema version string.
31
+ exclusion_rate_threshold:
32
+ Flag ``HIGH_EXCLUSION_RATE`` when fraction of non-reliable results
33
+ exceeds this value.
34
+ category_inflation_ratio:
35
+ Flag ``CATEGORY_INFLATION_RISK`` when max categories / median
36
+ categories exceeds this ratio on small samples.
37
+ min_events_for_inflation:
38
+ Only apply category-inflation heuristic when n_events is below
39
+ this threshold (suspicious high cardinality on small windows).
40
+ """
41
+ if not results:
42
+ return yaml.dump({"status": "error", "reason": "no_data"}, default_flow_style=False)
43
+
44
+ successful = [r for r in results if r.get("status") == "success"]
45
+ reliable = [r for r in successful if r.get("reliable")]
46
+
47
+ if not reliable:
48
+ return yaml.dump(
49
+ {
50
+ "status": "no_reliable_data",
51
+ "metadata": {
52
+ "timestamp": datetime.now(timezone.utc).isoformat(),
53
+ "framework": "PACIF v3.0",
54
+ "schema": schema_version,
55
+ },
56
+ "summary": {
57
+ "total": len(results),
58
+ "successful": len(successful),
59
+ "reliable": 0,
60
+ },
61
+ "flags": ["NO_RELIABLE_ESTIMATES"],
62
+ },
63
+ default_flow_style=False,
64
+ )
65
+
66
+ mi_vals = sorted(r["mi_estimate"] for r in reliable)
67
+ n = len(mi_vals)
68
+ median_mi = mi_vals[n // 2]
69
+ mean_mi = sum(mi_vals) / n
70
+
71
+ exclusion_rate = 1.0 - (len(reliable) / len(results))
72
+
73
+ flags: list[str] = []
74
+ if exclusion_rate > exclusion_rate_threshold:
75
+ flags.append("HIGH_EXCLUSION_RATE")
76
+
77
+ # Category inflation: high unique categories relative to typical,
78
+ # especially on small windows (possible gaming via category splitting).
79
+ cat_counts = []
80
+ for r in reliable:
81
+ nu = r.get("n_u") or 0
82
+ ns = r.get("n_s") or 0
83
+ ne = r.get("n_events") or 0
84
+ cat_counts.append((max(nu, ns), ne))
85
+
86
+ if cat_counts:
87
+ cats = sorted(c for c, _ in cat_counts)
88
+ median_cats = cats[len(cats) // 2] or 1
89
+ suspicious = [
90
+ c
91
+ for c, ne in cat_counts
92
+ if c >= category_inflation_ratio * median_cats and ne < min_events_for_inflation * 2
93
+ ]
94
+ if len(suspicious) >= max(1, len(cat_counts) // 5):
95
+ flags.append("CATEGORY_INFLATION_RISK")
96
+
97
+ # Cherry-picking heuristic: large gap between mean and median MI
98
+ # can indicate selective inclusion of extreme windows.
99
+ if abs(mean_mi - median_mi) > 0.25 * max(abs(median_mi), 0.05):
100
+ flags.append("DISTRIBUTION_SKEW_REVIEW")
101
+
102
+ # Very high coupling cluster
103
+ high_mi_share = sum(1 for m in mi_vals if m > 0.8) / n
104
+ if high_mi_share > 0.5:
105
+ flags.append("HIGH_COUPLING_CLUSTER")
106
+
107
+ drift_hits = sum(1 for r in results if r.get("drift") is True)
108
+ if drift_hits > 0:
109
+ flags.append("DRIFT_DETECTED")
110
+
111
+ rep = {
112
+ "metadata": {
113
+ "timestamp": datetime.now(timezone.utc).isoformat(),
114
+ "framework": "PACIF v3.0",
115
+ "schema": schema_version,
116
+ },
117
+ "summary": {
118
+ "total": len(results),
119
+ "successful": len(successful),
120
+ "reliable": len(reliable),
121
+ "exclusion_rate": round(exclusion_rate, 4),
122
+ "median_mi": round(median_mi, 6),
123
+ "mean_mi": round(mean_mi, 6),
124
+ "min_mi": round(mi_vals[0], 6),
125
+ "max_mi": round(mi_vals[-1], 6),
126
+ "drift_events": drift_hits,
127
+ },
128
+ "flags": flags,
129
+ "interpretation": {
130
+ "signal": (
131
+ "high"
132
+ if median_mi > 0.8
133
+ else "moderate"
134
+ if median_mi > 0.3
135
+ else "low"
136
+ ),
137
+ "reliability_ok": exclusion_rate <= exclusion_rate_threshold,
138
+ "action_hint": (
139
+ "Investigate lock-in risk"
140
+ if median_mi > 0.8
141
+ else "Monitor"
142
+ if median_mi > 0.3
143
+ else "Low coupling; increase sample if unexpected"
144
+ ),
145
+ },
146
+ }
147
+ return yaml.dump(rep, default_flow_style=False, sort_keys=False)
pacif_core/drift.py ADDED
@@ -0,0 +1,20 @@
1
+ class DriftDetector:
2
+ def __init__(self, threshold=0.15, slack=0.005):
3
+ self.threshold, self.slack = threshold, slack
4
+ self.cus_pos = self.cus_neg = 0.0
5
+ self.history, self.baseline = [], None
6
+
7
+ def update(self, value: float) -> dict:
8
+ self.history.append(value)
9
+ if len(self.history) < 50:
10
+ return {"drift": False, "reason": "warming_up"}
11
+ if len(self.history) == 50:
12
+ self.baseline = sum(self.history[-50:]) / 50.0
13
+ dev = value - self.baseline
14
+ self.cus_pos = max(0, self.cus_pos + dev - self.slack)
15
+ self.cus_neg = max(0, self.cus_neg - dev - self.slack)
16
+ if self.cus_pos > self.threshold or self.cus_neg > self.threshold:
17
+ self.cus_pos = self.cus_neg = 0.0
18
+ self.baseline = value
19
+ return {"drift": True, "value": value, "baseline": self.baseline}
20
+ return {"drift": False}
@@ -0,0 +1,70 @@
1
+ import numpy as np
2
+ from numba import njit
3
+
4
+
5
+ @njit(cache=True)
6
+ def _calculate_mi_and_stats(events, contexts, n_u, n_s, N):
7
+ joint = np.zeros((n_u, n_s), dtype=np.float64)
8
+ for i in range(N):
9
+ joint[events[i], contexts[i]] += 1.0
10
+ p_joint = joint / N
11
+ p_u = np.sum(p_joint, axis=1)
12
+ p_s = np.sum(p_joint, axis=0)
13
+
14
+ mi_raw, var_sum, eps = 0.0, 0.0, 1e-12
15
+ for u in range(n_u):
16
+ if p_u[u] < eps:
17
+ continue
18
+ for s in range(n_s):
19
+ p = p_joint[u, s]
20
+ if p > eps:
21
+ log_ratio = np.log(p / (p_u[u] * p_s[s] + eps))
22
+ mi_raw += p * log_ratio
23
+ var_sum += p * (log_ratio ** 2)
24
+
25
+ bias = ((n_u - 1.0) * (n_s - 1.0)) / (2.0 * N * 0.693147)
26
+ mi_corrected = mi_raw + bias
27
+ var_est = max(0.0, (var_sum / N) - (mi_corrected ** 2 / N))
28
+ se = np.sqrt(var_est)
29
+ return mi_corrected, se, mi_corrected - 1.96 * se, mi_corrected + 1.96 * se
30
+
31
+
32
+ # JIT warmup
33
+ _warmup_e = np.array([0, 1, 2], dtype=np.int64)
34
+ _warmup_c = np.array([0, 1, 0], dtype=np.int64)
35
+ _calculate_mi_and_stats(_warmup_e, _warmup_c, 3, 2, 3)
36
+
37
+
38
+ def estimate_alignment(events, contexts, min_events=30, max_events=500):
39
+ N = len(events)
40
+ if N == 0:
41
+ return {"status": "error", "reason": "empty_input"}
42
+ if N > max_events:
43
+ idx = np.linspace(0, N - 1, max_events, dtype=np.int64)
44
+ events, contexts, N = events[idx], contexts[idx], max_events
45
+ if N < min_events:
46
+ return {"status": "unreliable", "reason": "insufficient_data", "n_events": N}
47
+
48
+ u_unique, s_unique = np.unique(events), np.unique(contexts)
49
+ if len(u_unique) < 2 or len(s_unique) < 2:
50
+ return {"status": "unreliable", "reason": "degenerate_distribution"}
51
+
52
+ u_map = {v: i for i, v in enumerate(u_unique)}
53
+ s_map = {v: i for i, v in enumerate(s_unique)}
54
+ me = np.array([u_map[e] for e in events], dtype=np.int64)
55
+ mc = np.array([s_map[c] for c in contexts], dtype=np.int64)
56
+
57
+ mi, se, ci_l, ci_u = _calculate_mi_and_stats(me, mc, len(u_unique), len(s_unique), N)
58
+ ci_w = ci_u - ci_l
59
+ rel_ci = ci_w / (abs(mi) + 1e-8)
60
+
61
+ return {
62
+ "status": "success",
63
+ "mi_estimate": float(mi),
64
+ "ci_95": [float(ci_l), float(ci_u)],
65
+ "ci_width": float(ci_w),
66
+ "reliable": bool((ci_w < 0.30) and (rel_ci < 0.50)),
67
+ "n_events": int(N),
68
+ "n_u": int(len(u_unique)),
69
+ "n_s": int(len(s_unique)),
70
+ }
@@ -0,0 +1,242 @@
1
+ Metadata-Version: 2.4
2
+ Name: pacif-framework
3
+ Version: 3.0.1
4
+ Summary: Statistically rigorous framework for human–algorithm predictive alignment. Measures how strongly algorithms shape user behavior — and whether that signal is reliable.
5
+ Author-email: PACIF Framework Contributors <for.smirnov.maks@gmail.com>
6
+ Maintainer-email: ppiiyo <for.smirnov.maks@gmail.com>
7
+ License: Apache-2.0
8
+ Project-URL: Homepage, https://github.com/ppiiyo/pacif-framework
9
+ Project-URL: Documentation, https://github.com/ppiiyo/pacif-framework#readme
10
+ Project-URL: Repository, https://github.com/ppiiyo/pacif-framework
11
+ Project-URL: Bug Tracker, https://github.com/ppiiyo/pacif-framework/issues
12
+ Project-URL: DOI, https://doi.org/10.5281/zenodo.19902776
13
+ Project-URL: Demo, https://pacif-demo.streamlit.app
14
+ Project-URL: Changelog, https://github.com/ppiiyo/pacif-framework/blob/main/CHANGELOG.md
15
+ Keywords: algorithmic-accountability,mutual-information,recommendation-systems,causal-inference,audit,transparency,drift-detection,predictive-alignment,responsible-ai,fairness,filter-bubble
16
+ Classifier: Development Status :: 4 - Beta
17
+ Classifier: Intended Audience :: Developers
18
+ Classifier: Intended Audience :: Science/Research
19
+ Classifier: Intended Audience :: Information Technology
20
+ Classifier: License :: OSI Approved :: Apache Software License
21
+ Classifier: Operating System :: OS Independent
22
+ Classifier: Programming Language :: Python :: 3
23
+ Classifier: Programming Language :: Python :: 3.9
24
+ Classifier: Programming Language :: Python :: 3.10
25
+ Classifier: Programming Language :: Python :: 3.11
26
+ Classifier: Programming Language :: Python :: 3.12
27
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
28
+ Classifier: Topic :: Scientific/Engineering :: Information Analysis
29
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
30
+ Requires-Python: >=3.9
31
+ Description-Content-Type: text/markdown
32
+ License-File: LICENSE
33
+ Requires-Dist: numpy>=1.24
34
+ Requires-Dist: numba>=0.58
35
+ Requires-Dist: scipy>=1.10
36
+ Requires-Dist: pyyaml>=6.0
37
+ Provides-Extra: demo
38
+ Requires-Dist: streamlit>=1.28; extra == "demo"
39
+ Requires-Dist: pandas>=2.0; extra == "demo"
40
+ Requires-Dist: scikit-learn>=1.3; extra == "demo"
41
+ Provides-Extra: causal
42
+ Requires-Dist: scikit-learn>=1.3; extra == "causal"
43
+ Provides-Extra: dev
44
+ Requires-Dist: pytest>=7.0; extra == "dev"
45
+ Requires-Dist: ruff>=0.1; extra == "dev"
46
+ Requires-Dist: mypy>=1.0; extra == "dev"
47
+ Requires-Dist: build>=1.0; extra == "dev"
48
+ Requires-Dist: twine>=4.0; extra == "dev"
49
+ Dynamic: license-file
50
+
51
+ # PACIF v3.0
52
+
53
+ **Predictive Alignment & Causal Information Flow**
54
+
55
+ > Measures how strongly algorithms shape user behavior — and whether that signal is reliable.
56
+
57
+ [![Streamlit Demo](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](https://pacif-demo.streamlit.app)
58
+ [![DOI](https://img.shields.io/badge/DOI-10.5281/zenodo.19902776-blue)](https://doi.org/10.5281/zenodo.19902776)
59
+ [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
60
+ [![Python](https://img.shields.io/badge/python-3.9+-blue.svg)](https://www.python.org/downloads/)
61
+ [![CI](https://github.com/ppiiyo/pacif-framework/actions/workflows/ci.yml/badge.svg)](https://github.com/ppiiyo/pacif-framework/actions/workflows/ci.yml)
62
+ [![PyPI](https://img.shields.io/badge/PyPI-coming%20soon-lightgrey.svg)](https://pypi.org/)
63
+
64
+ ---
65
+
66
+ ## Why PACIF exists
67
+
68
+ Modern recommendation systems are **closed-loop controllers**: user actions train the model, and the model shapes future exposure. These feedback loops can produce behavioral lock-in, filter bubbles, and algorithmic influence that is hard to observe from the outside.
69
+
70
+ Platforms, regulators, auditors, and researchers currently lack a **transparent, statistically rigorous, and audit-ready metric** that answers a simple question:
71
+
72
+ > *How tightly is user behavior coupled to the system’s recommendations — and can we trust that measurement?*
73
+
74
+ Existing approaches suffer from finite-sample bias, provide no reliability diagnostics, and are frequently misinterpreted as causal claims. PACIF was built to close that gap.
75
+
76
+ ---
77
+
78
+ ## What PACIF measures
79
+
80
+ PACIF quantifies **predictive alignment** between user actions (`U`) and system context / recommendations (`S`), with optional control for observed confounders (`C`).
81
+
82
+ It is deliberately **not** a measure of causality, user wellbeing, or “manipulation”. It is a production-ready diagnostic layer that tells you:
83
+
84
+ | Signal | What it tells you |
85
+ |--------|-------------------|
86
+ | **Signal Strength (MI)** | Intensity of statistical coupling (nats) |
87
+ | **Reliability** | Whether the estimate is statistically stable |
88
+ | **Drift** | Whether the relationship has shifted over time |
89
+ | **Audit Report** | Machine-readable YAML with anti-gaming flags |
90
+
91
+ ### Core capabilities
92
+
93
+ - **Bias-corrected Mutual Information** — Miller-Madow correction reduces finite-sample bias by 40–65%.
94
+ - **Strict reliability diagnostics** — automatically flags unstable estimates via confidence-interval width thresholds.
95
+ - **Cumulative drift detection** — CUSUM + Page-Hinkley for non-stationary behavioral shifts.
96
+ - **Regulator-ready audit reports** — YAML output with exclusion-rate, category-inflation, skew, and drift flags.
97
+ - **Causal integration pattern** — PACIF features reduce Doubly Robust (DR) estimator bias by ~89% in controlled simulations.
98
+
99
+ **Performance (reference):** >1,900 sessions/sec, p95 latency <1 ms (`examples/benchmark_throughput.py`).
100
+
101
+ ---
102
+
103
+ ## Explicit boundaries (important)
104
+
105
+ PACIF measures **statistical predictability**, not causality and not wellbeing.
106
+
107
+ - High mutual information indicates strong *association / coupling*, not that the algorithm *caused* the behavior.
108
+ - Normative or causal claims require intervention data, experimental design, or stronger identification assumptions.
109
+ - The framework is designed to be honest about uncertainty: unreliable estimates are explicitly marked.
110
+
111
+ Full practitioner guide: **[docs/INTERPRETATION.md](docs/INTERPRETATION.md)**
112
+ Outreach one-pager: **[docs/POSITIONING.md](docs/POSITIONING.md)**
113
+
114
+ ---
115
+
116
+ ## Quick start
117
+
118
+ ### Live demo (no install)
119
+
120
+ 👉 **[Launch PACIF Demo](https://pacif-demo.streamlit.app)**
121
+
122
+ ### Install
123
+
124
+ ```bash
125
+ pip install -e . # core
126
+ pip install -e ".[demo,causal,dev]" # demo + causal example + tests
127
+ ```
128
+
129
+ Or from the repository:
130
+
131
+ ```bash
132
+ git clone https://github.com/ppiiyo/pacif-framework.git
133
+ cd pacif-framework
134
+ pip install -e ".[demo,dev]"
135
+ pytest tests/ -v
136
+ ```
137
+
138
+ ### Minimal usage
139
+
140
+ ```python
141
+ from pacif_core import estimate_alignment, DriftDetector, AuditReporter
142
+ import numpy as np
143
+
144
+ events = np.array([0, 1, 0, 2, 1, 0, 2, 1] * 20)
145
+ contexts = np.array([0, 1, 0, 1, 1, 0, 2, 1] * 20)
146
+
147
+ result = estimate_alignment(events, contexts)
148
+
149
+ if result["status"] == "success":
150
+ print(f"MI: {result['mi_estimate']:.3f} nats")
151
+ print(f"95% CI: {result['ci_95']}")
152
+ print(f"Reliable: {result['reliable']}")
153
+ ```
154
+
155
+ See `examples/basic_usage.py` for multi-session + drift + audit.
156
+
157
+ ---
158
+
159
+ ## Interpreting results
160
+
161
+ | Metric | Interpretation | Suggested action |
162
+ |--------|----------------|------------------|
163
+ | **Signal Strength (MI)** | Intensity of coupling | > 0.8 nats → investigate lock-in risk |
164
+ | **Reliability Ratio** | % of sessions with statistically valid estimates | < 70% → increase sample size or window |
165
+ | **Drift Status** | Significant change in the relationship over time | Drift detected → consider model recalibration |
166
+
167
+ Deep dive: [docs/INTERPRETATION.md](docs/INTERPRETATION.md)
168
+
169
+ ---
170
+
171
+ ## Who this is for
172
+
173
+ - **Responsible AI / Trust & Safety teams** — internal monitoring of recommendation influence and feedback loops.
174
+ - **Platforms** (social, e-commerce, content, news) — diagnostics for personalization strength and stability.
175
+ - **Regulators & compliance** — audit-ready, machine-readable reports with explicit reliability and anti-gaming signals.
176
+ - **Researchers** in algorithmic accountability, fairness, and causal inference — reproducible metric + integration path with DR estimators.
177
+ - **Auditors & third-party assessors** — independent quantification of human–algorithm coupling.
178
+
179
+ ---
180
+
181
+ ## Project structure
182
+
183
+ ```
184
+ pacif-framework/
185
+ ├── pacif_core/
186
+ │ ├── estimator.py # Bias-corrected MI + reliability
187
+ │ ├── drift.py # CUSUM-style drift detector
188
+ │ └── audit.py # YAML audit reporter (schema 1.1)
189
+ ├── tests/ # pytest suite
190
+ ├── docs/
191
+ │ ├── INTERPRETATION.md
192
+ │ └── POSITIONING.md
193
+ ├── examples/
194
+ │ ├── basic_usage.py
195
+ │ └── benchmark_throughput.py
196
+ ├── app.py # Streamlit demo
197
+ ├── causal_integration.py # DR estimator illustration
198
+ └── .github/workflows/ci.yml
199
+ ```
200
+
201
+ ---
202
+
203
+ ## Enterprise & audit integration
204
+
205
+ For production deployments, multi-tenant audit pipelines, custom connectors, or compliance reporting support, contact:
206
+
207
+ **for.smirnov.maks@gmail.com**
208
+
209
+ ---
210
+
211
+ ## Contributing
212
+
213
+ We welcome contributions. Algorithmic transparency should be a public good.
214
+
215
+ - 🐛 [Open an issue](https://github.com/ppiiyo/pacif-framework/issues)
216
+ - 💡 Pull requests are welcome (see [CONTRIBUTING.md](CONTRIBUTING.md))
217
+ - 📜 Please follow the [Code of Conduct](CODE_OF_CONDUCT.md)
218
+ - 🔒 [Security policy](SECURITY.md)
219
+
220
+ ---
221
+
222
+ ## Citation
223
+
224
+ If you use PACIF in research, audits, or product workflows, please cite:
225
+
226
+ ```bibtex
227
+ @software{pacif_v3_2026,
228
+ author = {ppiiyo},
229
+ title = {PACIF v3.0: Predictive Alignment \& Causal Information Flow},
230
+ year = {2026},
231
+ url = {https://github.com/ppiiyo/pacif-framework},
232
+ doi = {10.5281/zenodo.19902776},
233
+ license = {Apache-2.0}
234
+ }
235
+ ```
236
+
237
+ Also available as [`CITATION.cff`](CITATION.cff).
238
+
239
+ ---
240
+
241
+ *Built for transparency, reproducibility, and algorithmic accountability.*
242
+ © 2026 PACIF Framework Contributors
@@ -0,0 +1,9 @@
1
+ pacif_core/__init__.py,sha256=rtfLbBfLZVl3wgjmNUxRJ1MyGs6mitKveKPEn_QnR8E,295
2
+ pacif_core/audit.py,sha256=8mFofCnec2iRjfJuY5u6xMRM2zEv4bQDXrMSLVMmfpM,5501
3
+ pacif_core/drift.py,sha256=dqOFqly-pcEq3aBa_L8gGpQ9yNGMijsJ1rkMyC9kf80,914
4
+ pacif_core/estimator.py,sha256=P0vdbBPQsB2dJHzLHe26M1mQD5YaxhQ0qIy82PmxHQs,2439
5
+ pacif_framework-3.0.1.dist-info/licenses/LICENSE,sha256=Bv8UiMUENCgrc7WGoN48C3gfSq6p2NK_yE_E47G4dBI,9722
6
+ pacif_framework-3.0.1.dist-info/METADATA,sha256=Fu4CRpfgZV7qJGE1PZDITdeALow5qGoPRZsgANIy9WY,9922
7
+ pacif_framework-3.0.1.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
8
+ pacif_framework-3.0.1.dist-info/top_level.txt,sha256=oegdix0bxoKOPMMXI4yV6YYPxP2YH-TejOSlHaJA6zo,11
9
+ pacif_framework-3.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
+
@@ -0,0 +1,190 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ Copyright 2026 PACIF Framework Contributors
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
+ See the License for the specific language governing permissions and
190
+ limitations under the License.
@@ -0,0 +1 @@
1
+ pacif_core