quant-curve 0.1.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.
File without changes
quant_curve/gates.py ADDED
@@ -0,0 +1,126 @@
1
+ """
2
+ Promotion gates for quantization levels. Five-state contract, same family
3
+ as retrieval-bench: MEASURED / BLOCKED / INVALID / FAILED / PROMOTED.
4
+
5
+ A level is PROMOTED only if, against a measured FP16-class baseline of the
6
+ SAME weights revision and SAME metric:
7
+ - quality_retention >= min_retention (default 0.98)
8
+ - memory_reduction >= min_memory_reduction (default 0.25)
9
+ - the exact candidate sits on the Pareto frontier formed only from measured
10
+ points for that same weights revision and quality metric
11
+
12
+ Missing baseline or zero measured points -> BLOCKED. Metric or revision
13
+ mismatch -> INVALID. Never fabricates a number.
14
+ """
15
+ import hashlib
16
+ import json
17
+ import time
18
+ import uuid
19
+ from dataclasses import dataclass
20
+ from typing import List, Optional
21
+
22
+ from .pareto import (QuantPoint, pareto_frontier, quality_retention,
23
+ memory_reduction, _finite_number, _validate_point)
24
+
25
+
26
+ def _hash(obj) -> str:
27
+ return hashlib.sha256(json.dumps(obj, sort_keys=True, allow_nan=False).encode()).hexdigest()
28
+
29
+
30
+ @dataclass
31
+ class GateReceipt:
32
+ gate_id: str
33
+ status: str
34
+ candidate_level: Optional[str]
35
+ baseline_level: Optional[str]
36
+ retention: Optional[float]
37
+ mem_reduction: Optional[float]
38
+ on_frontier: Optional[bool]
39
+ thresholds: dict
40
+ inputs_hash: str
41
+ timestamp: float
42
+ detail: str = ""
43
+
44
+ def to_dict(self):
45
+ return self.__dict__.copy()
46
+
47
+
48
+ def evaluate_level(candidate: QuantPoint, baseline: Optional[QuantPoint],
49
+ all_points: List[QuantPoint],
50
+ min_retention: float = 0.98,
51
+ min_memory_reduction: float = 0.25) -> GateReceipt:
52
+ points = list(all_points)
53
+ # Malformed inputs cannot form measured evidence or a canonical receipt.
54
+ # Validate the entire hashed population, including incomparable points.
55
+ _validate_point(candidate)
56
+ if baseline is not None:
57
+ _validate_point(baseline)
58
+ for point in points:
59
+ _validate_point(point)
60
+ _finite_number(min_retention, "min_retention", nonnegative=True)
61
+ _finite_number(min_memory_reduction, "min_memory_reduction", nonnegative=True)
62
+ if min_memory_reduction > 1:
63
+ raise ValueError("min_memory_reduction must not exceed 1")
64
+ thresholds = {"min_retention": min_retention,
65
+ "min_memory_reduction": min_memory_reduction}
66
+ # Bind every value that can affect the gate decision. The previous contract
67
+ # hashed only n_points, which allowed different frontier populations of the
68
+ # same length to share an inputs_hash even when they changed promotion.
69
+ inputs_hash = _hash({
70
+ "candidate": candidate.__dict__,
71
+ "baseline": baseline.__dict__ if baseline else None,
72
+ "all_points": [p.__dict__ for p in points],
73
+ "thresholds": thresholds,
74
+ })
75
+ ts = time.time()
76
+
77
+ if not candidate.measured:
78
+ return GateReceipt(gate_id=str(uuid.uuid4()), status="BLOCKED",
79
+ candidate_level=candidate.level, baseline_level=None,
80
+ retention=None, mem_reduction=None, on_frontier=None,
81
+ thresholds=thresholds, inputs_hash=inputs_hash,
82
+ timestamp=ts, detail="candidate is not a measured point")
83
+
84
+ if baseline is None or not baseline.measured:
85
+ return GateReceipt(gate_id=str(uuid.uuid4()), status="BLOCKED",
86
+ candidate_level=candidate.level, baseline_level=None,
87
+ retention=None, mem_reduction=None, on_frontier=None,
88
+ thresholds=thresholds, inputs_hash=inputs_hash,
89
+ timestamp=ts, detail="no measured baseline available")
90
+
91
+ try:
92
+ if candidate.model_revision != baseline.model_revision:
93
+ return GateReceipt(gate_id=str(uuid.uuid4()), status="INVALID",
94
+ candidate_level=candidate.level, baseline_level=baseline.level,
95
+ retention=None, mem_reduction=None, on_frontier=None,
96
+ thresholds=thresholds, inputs_hash=inputs_hash,
97
+ timestamp=ts,
98
+ detail="weights revision mismatch — cross-revision comparison is not evidence")
99
+ ret = quality_retention(candidate, baseline)
100
+ red = memory_reduction(candidate, baseline)
101
+ except ValueError as e:
102
+ return GateReceipt(gate_id=str(uuid.uuid4()), status="INVALID",
103
+ candidate_level=candidate.level, baseline_level=baseline.level,
104
+ retention=None, mem_reduction=None, on_frontier=None,
105
+ thresholds=thresholds, inputs_hash=inputs_hash,
106
+ timestamp=ts, detail=str(e))
107
+
108
+ # Pareto dominance is meaningful only inside one weights revision and one
109
+ # quality metric. Cross-revision or cross-metric points must not veto or
110
+ # confer frontier membership. Match the exact immutable candidate rather
111
+ # than accepting any different point that happens to share its level name.
112
+ comparable_points = [
113
+ p for p in points
114
+ if p.model_revision == candidate.model_revision
115
+ and p.quality_metric == candidate.quality_metric
116
+ ]
117
+ on_frontier = candidate in pareto_frontier(comparable_points)
118
+ promoted = ret >= min_retention and red >= min_memory_reduction and on_frontier
119
+ return GateReceipt(
120
+ gate_id=str(uuid.uuid4()),
121
+ status="PROMOTED" if promoted else "MEASURED",
122
+ candidate_level=candidate.level, baseline_level=baseline.level,
123
+ retention=ret, mem_reduction=red, on_frontier=on_frontier,
124
+ thresholds=thresholds, inputs_hash=inputs_hash, timestamp=ts,
125
+ detail="" if promoted else "measured but did not clear all promotion thresholds",
126
+ )
quant_curve/pareto.py ADDED
@@ -0,0 +1,94 @@
1
+ """
2
+ Pareto frontier for quantization quality-vs-resource trade-offs.
3
+
4
+ A point is Pareto-optimal if no other point has both strictly-better quality
5
+ AND strictly-lower memory. Pure math over measured inputs only — the module
6
+ never invents a measurement.
7
+ """
8
+ from dataclasses import dataclass
9
+ import math
10
+ from typing import List, Optional
11
+
12
+
13
+ @dataclass(frozen=True)
14
+ class QuantPoint:
15
+ level: str # e.g. "FP16", "Q8_0", "Q6_K", "Q4_K_M"
16
+ model_revision: str # exact weights revision measured
17
+ quality: float # quality metric value (higher = better), e.g. task accuracy
18
+ quality_metric: str # name of the metric, e.g. "mmlu_acc", "winogrande_acc"
19
+ memory_gb: float # measured resident memory (lower = better)
20
+ throughput_tok_s: Optional[float] = None
21
+ measured: bool = True # False marks an UNMEASURED placeholder — never frontier-eligible
22
+
23
+
24
+ def _finite_number(value, name: str, *, positive: bool = False,
25
+ nonnegative: bool = False) -> None:
26
+ """Reject coercions and non-finite values before they influence evidence."""
27
+ if type(value) not in (int, float):
28
+ raise ValueError(f"{name} must be a finite number, not a boolean or string")
29
+ try:
30
+ finite = math.isfinite(value)
31
+ except OverflowError:
32
+ finite = False
33
+ if not finite:
34
+ raise ValueError(f"{name} must be finite")
35
+ if positive and value <= 0:
36
+ raise ValueError(f"{name} must be positive")
37
+ if nonnegative and value < 0:
38
+ raise ValueError(f"{name} must be nonnegative")
39
+
40
+
41
+ def _validate_point(point: QuantPoint) -> None:
42
+ if not isinstance(point, QuantPoint):
43
+ raise ValueError("each point must be a QuantPoint")
44
+ if type(point.measured) is not bool:
45
+ raise ValueError("measured must be a boolean")
46
+ _finite_number(point.quality, "quality")
47
+ _finite_number(point.memory_gb, "memory_gb", positive=point.measured,
48
+ nonnegative=True)
49
+ if point.throughput_tok_s is not None:
50
+ _finite_number(point.throughput_tok_s, "throughput_tok_s", nonnegative=True)
51
+
52
+
53
+ def pareto_frontier(points: List[QuantPoint]) -> List[QuantPoint]:
54
+ """Return the subset of measured points that are Pareto-optimal
55
+ (maximize quality, minimize memory), sorted by memory ascending."""
56
+ points = list(points)
57
+ for point in points:
58
+ _validate_point(point)
59
+ measured = [p for p in points if p.measured]
60
+ frontier = []
61
+ for p in measured:
62
+ dominated = any(
63
+ q is not p and q.quality >= p.quality and q.memory_gb <= p.memory_gb
64
+ and (q.quality > p.quality or q.memory_gb < p.memory_gb)
65
+ for q in measured
66
+ )
67
+ if not dominated:
68
+ frontier.append(p)
69
+ return sorted(frontier, key=lambda p: p.memory_gb)
70
+
71
+
72
+ def quality_retention(candidate: QuantPoint, baseline: QuantPoint) -> float:
73
+ """candidate.quality / baseline.quality. Caller guarantees same metric."""
74
+ _validate_point(candidate)
75
+ _validate_point(baseline)
76
+ if candidate.quality_metric != baseline.quality_metric:
77
+ raise ValueError("cannot compare different quality metrics")
78
+ if baseline.quality <= 0:
79
+ raise ValueError("baseline quality must be positive")
80
+ retention = candidate.quality / baseline.quality
81
+ _finite_number(retention, "quality retention")
82
+ return retention
83
+
84
+
85
+ def memory_reduction(candidate: QuantPoint, baseline: QuantPoint) -> float:
86
+ """1 - candidate.memory/baseline.memory (0.75 = candidate uses 75% less)."""
87
+ _validate_point(candidate)
88
+ _validate_point(baseline)
89
+ if baseline.memory_gb <= 0:
90
+ raise ValueError("baseline memory must be positive")
91
+ reduction = 1 - candidate.memory_gb / baseline.memory_gb
92
+ if not math.isfinite(reduction):
93
+ raise ValueError("memory reduction must be finite")
94
+ return reduction
@@ -0,0 +1,182 @@
1
+ Metadata-Version: 2.4
2
+ Name: quant-curve
3
+ Version: 0.1.0
4
+ Summary: Quant Curve — quantization quality-vs-resource Pareto frontier and promotion gates. Quality retention vs memory reduction, five-state receipts (MEASURED/BLOCKED/INVALID/FAILED/PROMOTED)
5
+ Author-email: Stephen Lutar <stephen@szlholdings.com>
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/szl-holdings/quant-curve
8
+ Project-URL: Source, https://github.com/szl-holdings/quant-curve
9
+ Project-URL: Issues, https://github.com/szl-holdings/quant-curve/issues
10
+ Keywords: quantization,pareto-frontier,benchmarking,receipts,governed-ai
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Intended Audience :: Science/Research
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3 :: Only
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Programming Language :: Python :: 3.14
21
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
22
+ Requires-Python: >=3.11
23
+ Description-Content-Type: text/markdown
24
+ License-File: LICENSE
25
+ License-File: NOTICE
26
+ Provides-Extra: api
27
+ Requires-Dist: fastapi>=0.162.0; extra == "api"
28
+ Requires-Dist: uvicorn[standard]>=0.54.0; extra == "api"
29
+ Provides-Extra: test
30
+ Requires-Dist: fastapi>=0.162.0; extra == "test"
31
+ Requires-Dist: httpx2>=2.16.0; extra == "test"
32
+ Requires-Dist: pytest>=9.2.0; extra == "test"
33
+ Dynamic: license-file
34
+
35
+ # Quant Curve
36
+
37
+ <!-- szl:header v1 -->
38
+ <!-- Native identity: szl-brand@4309f6fce89179331b0b3ed8c99494e76c5be256; Orbit v2 icon. -->
39
+ <p>
40
+ <a href="https://github.com/szl-holdings">
41
+ <img src="https://raw.githubusercontent.com/szl-holdings/szl-brand/4309f6fce89179331b0b3ed8c99494e76c5be256/kit/logos/orbit-v2/suite/szl-icon-32.svg" alt="SZL Holdings — Orbit v2" width="32" height="32" />
42
+ </a>
43
+ </p>
44
+
45
+ **Control before action. Evidence after.**
46
+
47
+ [Product](https://a-11-oy.com) · [Proof](https://a11oy.net) · [GitHub organization](https://github.com/szl-holdings)
48
+ <!-- /szl:header -->
49
+
50
+ Measured quantization evidence for the SZL stack — quality vs precision, admitted only from verifiable runs.
51
+
52
+ ## What this is
53
+
54
+ The honest companion to quantization claims: quality-vs-precision curves and throughput numbers may be published only when they are traceable to reviewed run receipts. Unmeasured or unverifiable data stays absent rather than being rendered as measured evidence.
55
+
56
+ | Path | Role |
57
+ |---|---|
58
+ | `quant_curve/` | Pareto frontier (`pareto.py`) and promotion gates (`gates.py`) over caller-supplied measured points. Standard library only. |
59
+ | `verify/verifier.py` | Fail-closed integrity check of a receipt chain: schema, strict JSON, per-receipt SHA-256, `prev_hash` links. |
60
+ | `tools/sync_results.py` | Exports the MEASURED receipts of a verified chain to `site/results.json`; on any error it exits 1 and writes nothing. |
61
+ | `app/main.py` | Read-only FastAPI surface for that export (`/healthz`, `/api/results`). Deployment: [deploy/RUNBOOK.md](deploy/RUNBOOK.md). |
62
+ | `receipts/` | The receipt chain. Today it holds only the BLOCKED genesis receipt. |
63
+
64
+ ## Guarantees
65
+
66
+ - **Measured rows only** — publication accepts actual measured-run receipts; fixtures, projections, and BLOCKED genesis records are not benchmark rows.
67
+ - **Quality and throughput together** — when a measured row is admitted, quality and tokens/sec remain bound to the same machine/date/method evidence.
68
+ - **Receipts** — every admitted point is hash-chained into the run ledger, so editing or reordering a receipt breaks verification. The chain is unsigned: tamper evidence holds against a head hash recorded elsewhere, not on its own (see [Proof boundary](#proof-boundary)).
69
+ - **Comparable frontiers only** — promotion compares the exact candidate only against points from the same weights revision and quality metric.
70
+ - **Decision-bound evidence** — gate input hashes bind the candidate, baseline, full frontier population, and thresholds that can affect promotion.
71
+ - **Fail-closed display** — unverifiable runs appear as absent.
72
+
73
+ ## Install
74
+
75
+ Python 3.11 to 3.14. The `quant_curve` library has no third-party dependencies.
76
+
77
+ ```bash
78
+ python -m pip install -e '.[test]' # library + test tools (pytest, httpx2, fastapi)
79
+ python -m pip install -e '.[api]' # library + fastapi/uvicorn to serve app/main.py
80
+ ```
81
+
82
+ The container does not use these extras: it installs the hash-locked `requirements.txt`, compiled from `requirements.in`.
83
+
84
+ ## Usage
85
+
86
+ Gate a candidate level against a baseline. The numbers are illustrative fixture values, not measurements of any model:
87
+
88
+ ```python
89
+ from quant_curve.gates import evaluate_level
90
+ from quant_curve.pareto import QuantPoint
91
+
92
+ fp16 = QuantPoint("FP16", "rev-a", 0.700, "task_acc", 16.0)
93
+ q4 = QuantPoint("Q4_K_M", "rev-a", 0.685, "task_acc", 4.9)
94
+ r = evaluate_level(q4, fp16, [fp16, q4])
95
+ print(r.status, round(r.retention, 4), round(r.mem_reduction, 4), r.on_frontier)
96
+ # MEASURED 0.9786 0.6937 True
97
+ ```
98
+
99
+ Retention 0.9786 is below the default `min_retention` of 0.98, so the level is MEASURED, not PROMOTED; with `min_retention=0.97` the same call returns PROMOTED. `evaluate_level` returns BLOCKED, INVALID, MEASURED or PROMOTED. FAILED is part of the receipt schema the verifier accepts; these gates never emit it.
100
+
101
+ Verify the committed chain, export it, and serve the export:
102
+
103
+ ```bash
104
+ python verify/verifier.py receipts/*.json
105
+ # checked=1 measured=0 errors=0
106
+ python tools/sync_results.py receipts site/results.json
107
+ # published 0 measured rows -> site/results.json
108
+ uvicorn app.main:app --port 7860 # needs the api extra; then, in a second shell:
109
+ curl -s http://127.0.0.1:7860/api/results
110
+ # {"plane":"quant","state":"EMPTY_HONEST","generated_at":"...","count":0,"results":[],"served_at":"..."}
111
+ ```
112
+
113
+ `/api/results` reports one of three states, always with HTTP 200 and never with invented rows:
114
+
115
+ - `MEASURED`: the export contains quant rows.
116
+ - `EMPTY_HONEST`: a valid export with no quant rows (today's state).
117
+ - `UNAVAILABLE`: the results file is missing, unreadable or malformed. No rows are served and the reason is logged.
118
+
119
+ ## Tests
120
+
121
+ ```bash
122
+ python -m pytest -q
123
+ ```
124
+
125
+ CI ([`.github/workflows/ci.yml`](.github/workflows/ci.yml)) runs on Python 3.11 to 3.14. It first runs the stdlib-only test files with no third-party package installed, then installs the hash-locked [`requirements/ci/test.txt`](requirements/ci/test.txt) and runs the full suite, including the HTTP route. The `receipt-verification` workflow ([`bench.yml`](.github/workflows/bench.yml)) re-verifies `receipts/*.json` on every push to `main` and on every pull request.
126
+
127
+ ## Proof boundary
128
+
129
+ What the code establishes:
130
+
131
+ - `verify/verifier.py`: each receipt is strict JSON with the schema fields, its declared `hash` equals the SHA-256 of its canonical body, and its `prev_hash` links it to the receipt before it.
132
+ - `evaluate_level`: a deterministic decision over the points it is given. `inputs_hash` binds the candidate, the baseline, the whole population and the thresholds.
133
+
134
+ What it does not establish:
135
+
136
+ - Authorship, time or hardware. Receipts are unsigned, so a chain rewritten from the start with every hash recomputed still verifies. Tamper evidence depends on a head hash recorded elsewhere, such as the revision pin in the consolidated publisher.
137
+ - That a receipt came from a real run. The verifier cannot tell a fixture from a measurement. Hardware identity and receipt authentication are checked by the consolidated publisher in frontier-bench, not here.
138
+ - Any measurement at all. Nothing in this repository runs a model, and there are zero measured rows.
139
+ - Re-verification at serve time. `/api/results` serves the file `tools/sync_results.py` exported; it does not re-check receipts.
140
+
141
+ [`evidence/eclipse-native-repaired-20260905.json`](evidence/eclipse-native-repaired-20260905.json) is a historical szl-eclipse control report: 10 of 10 local-fixture mutations caught by an earlier verifier. Its recorded `verifier_sha256` matches no committed version of `verify/verifier.py`, so it is not evidence about the current verifier.
142
+
143
+ ## Public surface
144
+
145
+ The consolidated bench targets the Hugging Face Space [SZLHOLDINGS/szl-bench-suite](https://huggingface.co/spaces/SZLHOLDINGS/szl-bench-suite) (Quantization tab) — one evidence surface for engine, retrieval, and quantization claims. As of 2026-11-06 that Space is private on the Hub: anonymous requests to the link return HTTP 401, so it is not yet publicly viewable.
146
+
147
+ Hardware identity is declared by benchmark receipts and checked by the consolidated publisher's dedicated-node policy. Receipt authentication proves an operator assertion; this repository does **not** claim an independent hardware witness.
148
+
149
+ **Division of labor:** this repo owns quantization receipts and their fail-closed verifier. The single Space publisher lives in [szl-holdings/frontier-bench](https://github.com/szl-holdings/frontier-bench), which verifies and combines all three planes before one atomic Space commit. The measurement harness that produces receipted quantization runs lives in [szl-holdings/szl-quant-bench](https://github.com/szl-holdings/szl-quant-bench); the Wave 1 consolidated bakeoff report is [szl-holdings/szl-wave1-report](https://github.com/szl-holdings/szl-wave1-report).
150
+
151
+ Source admission, Hugging Face publication, product/runtime status, and proof/evaluation status are separate evidence layers. Repository CI alone is not a publication or runtime claim.
152
+
153
+ ## Numeric admission
154
+
155
+ The Python gate and Pareto helpers reject malformed inputs with `ValueError`
156
+ before hashing or comparison. Numeric evidence must be finite Python integers
157
+ or floats; booleans and numeric strings are not measurements. Measured memory
158
+ must be positive, optional throughput must be nonnegative, and `measured` must
159
+ be an actual boolean. Unmeasured placeholders may use zero memory. Quality is
160
+ not restricted to a particular metric's range; baseline quality must still be
161
+ positive for a retention ratio.
162
+
163
+ Retention thresholds are finite and nonnegative (values above one can require
164
+ improvement). Memory-reduction thresholds are finite fractions from zero to
165
+ one. Validation covers the complete population bound by `inputs_hash`, including
166
+ incomparable rows. Valid inputs retain the existing evidence states; arithmetic
167
+ overflow produces `INVALID`, never a promoted point with an infinite receipt.
168
+ These functions are a library API and are not invoked by the HTTP results route.
169
+
170
+ ## Status
171
+
172
+ Current source state contains only the BLOCKED genesis receipt: **zero admitted measured quantization rows**. Real benchmark execution and signed raw evidence remain the responsibility of the dedicated-node measurement producer before any measured point can be published.
173
+
174
+ ## Links
175
+
176
+ - Source: [szl-holdings/quant-curve](https://github.com/szl-holdings/quant-curve) · [SECURITY.md](SECURITY.md) · [CITATION.cff](CITATION.cff)
177
+ - Publisher: [szl-holdings/frontier-bench](https://github.com/szl-holdings/frontier-bench) · measurement harness: [szl-holdings/szl-quant-bench](https://github.com/szl-holdings/szl-quant-bench)
178
+ - Hugging Face: models, datasets and Spaces are published under the [SZLHOLDINGS](https://huggingface.co/SZLHOLDINGS) org.
179
+
180
+ ## License
181
+
182
+ Apache-2.0 — see [LICENSE](LICENSE) and [NOTICE](NOTICE).
@@ -0,0 +1,9 @@
1
+ quant_curve/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ quant_curve/gates.py,sha256=3PH67OS3iXd9x0sjFk_c632t3-A5_VTIUdTtJrIVfGI,5808
3
+ quant_curve/pareto.py,sha256=AOqSHwJyQlaz06eDosigopto6lnKQaINSRakG65PbBw,3863
4
+ quant_curve-0.1.0.dist-info/licenses/LICENSE,sha256=oioMSVVmzpsJslqj_quNVKWxLGom6z3LUyTq2aWG2mY,11361
5
+ quant_curve-0.1.0.dist-info/licenses/NOTICE,sha256=QeRwAf4so-HQQSLdAz-6jW-4crOM_CHK8UmjXdTxzU0,196
6
+ quant_curve-0.1.0.dist-info/METADATA,sha256=SjwTvl5VtYKxHIGfnPamOQ-8rhAD40086FRxMUvW6Kc,11448
7
+ quant_curve-0.1.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
8
+ quant_curve-0.1.0.dist-info/top_level.txt,sha256=CU6Gnlmt3SFBLoO2g33BmuEPKNQGod0k6YQpYom_Sso,12
9
+ quant_curve-0.1.0.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,202 @@
1
+ 
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,7 @@
1
+ Quant Curve
2
+ Copyright 2026 SZL Holdings
3
+
4
+ This product includes software developed at SZL Holdings
5
+ (https://github.com/szl-holdings).
6
+
7
+ Licensed under the Apache License, Version 2.0 (see LICENSE).
@@ -0,0 +1 @@
1
+ quant_curve