quantcheck 0.0.1__tar.gz → 0.0.2__tar.gz
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.
- {quantcheck-0.0.1 → quantcheck-0.0.2}/PKG-INFO +1 -1
- {quantcheck-0.0.1 → quantcheck-0.0.2}/pyproject.toml +1 -1
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/__init__.py +1 -1
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/auth/supabase.py +10 -4
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/catalog.py +3 -2
- {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_auth.py +14 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_ui.py +1 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/.gitignore +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/LICENSE +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/README.md +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/examples/quantcheck.yaml +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/examples/report1/quantcheck.yaml +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/examples/report1/tests.jsonl +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/examples/tests.jsonl +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/auth/__init__.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/auth/base.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/auth/callback.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/auth/fake.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/auth/service.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/auth/store.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/bench.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/candidates.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/cli.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/config.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/executors/__init__.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/hardware.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/limits.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/pipeline.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/prompt.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/recommend.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/report/__init__.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/report/html.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/report/templates/report.html.j2 +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/report/terminal.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/report/tokens.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/report/view.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/runners/__init__.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/runners/base.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/runners/fake.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/runners/llamacpp_runner.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/runners/mlx_runner.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/runners/toolparse.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/scoring/__init__.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/scoring/checks.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/scoring/fake_judge.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/scoring/judge.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/scoring/language.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/scoring/models.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/scoring/score.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/scoring/stats.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/settings.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/store.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/tests_io.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/__init__.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/app.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/chat.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/compare.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/downloads.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/jobs.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/modeldetail.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/reviews.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/security.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/chat.js +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/fonts/JetBrainsMono-latin-b87346.woff2 +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/fonts/JetBrainsMono-latin-ext-9326b4.woff2 +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/fonts/NotoSansDevanagari-devanagari-3819bb.woff2 +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/fonts/NotoSansDevanagari-latin-ext-542103.woff2 +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/fonts/NotoSansDevanagari-latin-f3aaed.woff2 +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/fonts/NotoSansTamil-latin-17e6dc.woff2 +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/fonts/NotoSansTamil-latin-ext-027c12.woff2 +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/fonts/NotoSansTamil-tamil-a57d5e.woff2 +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/fonts/Outfit-latin-ebadd8.woff2 +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/fonts/Outfit-latin-ext-744997.woff2 +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/fonts/README.md +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/fonts.css +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/index.html +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/lab.css +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/lab.js +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/logo.svg +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/review.js +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/setup.js +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/testsets.js +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/summary.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/system.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/testsets.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/__init__.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/conftest.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_bench_cli.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_candidates.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_checks.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_config.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_hardware.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_llamacpp.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_mlx_helpers.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_mlx_slow.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_pipeline.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_recommend.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_report.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_runner.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_scoring.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_tests_io.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_ui_chat.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_ui_downloads.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_ui_reviews.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_ui_summary.py +0 -0
- {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_ui_testsets.py +0 -0
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"""Supabase Auth provider: browser sign-in with PKCE, plain HTTPS, no SDK.
|
|
2
2
|
|
|
3
|
-
Settings
|
|
3
|
+
Settings: the environment overrides the built-in defaults below.
|
|
4
4
|
QUANTCHECK_SUPABASE_URL e.g. https://<project>.supabase.co
|
|
5
|
-
QUANTCHECK_SUPABASE_ANON_KEY the project's public
|
|
5
|
+
QUANTCHECK_SUPABASE_ANON_KEY the project's public (publishable) key
|
|
6
|
+
The defaults are QuantCheck's own project. The URL and publishable key are public by design
|
|
7
|
+
(they ship in every client); the secret / service-role key must never appear here.
|
|
6
8
|
|
|
7
9
|
Status: written against Supabase's published OpenAPI spec and tested with mocked HTTP only.
|
|
8
10
|
Not yet verified against a live project: whether /authorize accepts code_challenge (the spec
|
|
@@ -32,6 +34,8 @@ from quantcheck.auth.base import (
|
|
|
32
34
|
)
|
|
33
35
|
from quantcheck.auth.callback import CallbackServer
|
|
34
36
|
|
|
37
|
+
DEFAULT_URL = "https://erxpvmzozanfffduzgbe.supabase.co"
|
|
38
|
+
DEFAULT_ANON_KEY = "sb_publishable_zufaKR4e4jghRtAML_2n1A_UwvBmXI9"
|
|
35
39
|
TIMEOUT_S = 15.0
|
|
36
40
|
_SCOPES = {"google": "email profile", "github": "user:email"}
|
|
37
41
|
|
|
@@ -75,8 +79,10 @@ class SupabaseAuth(AuthProvider):
|
|
|
75
79
|
request: Callable[..., tuple[int, dict[str, Any]]] = http_json,
|
|
76
80
|
wait_for_redirect: Callable[[CallbackServer], dict[str, str]] | None = None,
|
|
77
81
|
) -> None: # fmt: skip
|
|
78
|
-
self.url = (url or os.environ.get("QUANTCHECK_SUPABASE_URL"
|
|
79
|
-
self.anon_key =
|
|
82
|
+
self.url = (url or os.environ.get("QUANTCHECK_SUPABASE_URL") or DEFAULT_URL).rstrip("/")
|
|
83
|
+
self.anon_key = (
|
|
84
|
+
anon_key or os.environ.get("QUANTCHECK_SUPABASE_ANON_KEY") or DEFAULT_ANON_KEY
|
|
85
|
+
)
|
|
80
86
|
self._request = request
|
|
81
87
|
self._wait = wait_for_redirect or (lambda server: server.wait())
|
|
82
88
|
|
|
@@ -10,9 +10,10 @@ from __future__ import annotations
|
|
|
10
10
|
|
|
11
11
|
from typing import Any
|
|
12
12
|
|
|
13
|
+
# Sarvam-1 (Indian languages) is left out on purpose: on 28 Nov 2026 only a 4-bit MLX build exists
|
|
14
|
+
# (mlx-community/sarvam-1-4bit), so there is nothing to compare. Add it back when 8/6-bit exist,
|
|
15
|
+
# or once `quantcheck quantize` (Phase 2) can make them.
|
|
13
16
|
SUGGESTED: list[dict[str, Any]] = [
|
|
14
|
-
{"name": "Sarvam-1", "params_b": 2.0, "note": "Built for 10 Indian languages",
|
|
15
|
-
"mlx_id": "mlx-community/sarvam-1", "indian": True},
|
|
16
17
|
{"name": "Qwen3-4B", "params_b": 4.0, "note": "Small, strong multilingual model",
|
|
17
18
|
"mlx_id": "mlx-community/Qwen3-4B", "indian": True},
|
|
18
19
|
{"name": "Qwen3-8B", "params_b": 8.0, "note": "Strong multilingual reasoning",
|
|
@@ -197,9 +197,23 @@ def test_login_builds_pkce_url_and_exchanges_code() -> None:
|
|
|
197
197
|
"supabase") # fmt: skip
|
|
198
198
|
|
|
199
199
|
|
|
200
|
+
def test_defaults_point_at_quantcheck_project(monkeypatch) -> None:
|
|
201
|
+
monkeypatch.delenv("QUANTCHECK_SUPABASE_URL", raising=False)
|
|
202
|
+
monkeypatch.delenv("QUANTCHECK_SUPABASE_ANON_KEY", raising=False)
|
|
203
|
+
a = SupabaseAuth()
|
|
204
|
+
assert a.url.startswith("https://") and a.url.endswith(".supabase.co")
|
|
205
|
+
assert a.anon_key.startswith("sb_publishable_") # never a secret / service-role key
|
|
206
|
+
monkeypatch.setenv("QUANTCHECK_SUPABASE_URL", "https://other.supabase.co")
|
|
207
|
+
assert SupabaseAuth().url == "https://other.supabase.co"
|
|
208
|
+
|
|
209
|
+
|
|
200
210
|
def test_login_needs_configuration(monkeypatch) -> None:
|
|
211
|
+
from quantcheck.auth import supabase as mod
|
|
212
|
+
|
|
201
213
|
monkeypatch.delenv("QUANTCHECK_SUPABASE_URL", raising=False)
|
|
202
214
|
monkeypatch.delenv("QUANTCHECK_SUPABASE_ANON_KEY", raising=False)
|
|
215
|
+
monkeypatch.setattr(mod, "DEFAULT_URL", "")
|
|
216
|
+
monkeypatch.setattr(mod, "DEFAULT_ANON_KEY", "")
|
|
203
217
|
with pytest.raises(AuthError, match="QUANTCHECK_SUPABASE_URL"):
|
|
204
218
|
SupabaseAuth().login(lambda u: None)
|
|
205
219
|
|
|
@@ -311,6 +311,7 @@ def test_suggested_models_need_login_and_have_required_fields(lab) -> None:
|
|
|
311
311
|
client, state, _ = lab
|
|
312
312
|
rows = client.get("/api/models/suggested").json()
|
|
313
313
|
assert rows and all({"name", "params_b", "mlx_id", "note", "indian"} <= set(r) for r in rows)
|
|
314
|
+
assert not any("sarvam-1" in r["mlx_id"].lower() for r in rows) # no 8/6-bit MLX build exists
|
|
314
315
|
state.store.clear()
|
|
315
316
|
assert client.get("/api/models/suggested").status_code == 401
|
|
316
317
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/fonts/JetBrainsMono-latin-b87346.woff2
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/fonts/NotoSansTamil-latin-17e6dc.woff2
RENAMED
|
File without changes
|
|
File without changes
|
{quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/fonts/NotoSansTamil-tamil-a57d5e.woff2
RENAMED
|
File without changes
|
|
File without changes
|
{quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/fonts/Outfit-latin-ext-744997.woff2
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|