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.
Files changed (106) hide show
  1. {quantcheck-0.0.1 → quantcheck-0.0.2}/PKG-INFO +1 -1
  2. {quantcheck-0.0.1 → quantcheck-0.0.2}/pyproject.toml +1 -1
  3. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/__init__.py +1 -1
  4. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/auth/supabase.py +10 -4
  5. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/catalog.py +3 -2
  6. {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_auth.py +14 -0
  7. {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_ui.py +1 -0
  8. {quantcheck-0.0.1 → quantcheck-0.0.2}/.gitignore +0 -0
  9. {quantcheck-0.0.1 → quantcheck-0.0.2}/LICENSE +0 -0
  10. {quantcheck-0.0.1 → quantcheck-0.0.2}/README.md +0 -0
  11. {quantcheck-0.0.1 → quantcheck-0.0.2}/examples/quantcheck.yaml +0 -0
  12. {quantcheck-0.0.1 → quantcheck-0.0.2}/examples/report1/quantcheck.yaml +0 -0
  13. {quantcheck-0.0.1 → quantcheck-0.0.2}/examples/report1/tests.jsonl +0 -0
  14. {quantcheck-0.0.1 → quantcheck-0.0.2}/examples/tests.jsonl +0 -0
  15. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/auth/__init__.py +0 -0
  16. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/auth/base.py +0 -0
  17. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/auth/callback.py +0 -0
  18. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/auth/fake.py +0 -0
  19. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/auth/service.py +0 -0
  20. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/auth/store.py +0 -0
  21. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/bench.py +0 -0
  22. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/candidates.py +0 -0
  23. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/cli.py +0 -0
  24. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/config.py +0 -0
  25. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/executors/__init__.py +0 -0
  26. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/hardware.py +0 -0
  27. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/limits.py +0 -0
  28. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/pipeline.py +0 -0
  29. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/prompt.py +0 -0
  30. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/recommend.py +0 -0
  31. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/report/__init__.py +0 -0
  32. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/report/html.py +0 -0
  33. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/report/templates/report.html.j2 +0 -0
  34. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/report/terminal.py +0 -0
  35. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/report/tokens.py +0 -0
  36. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/report/view.py +0 -0
  37. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/runners/__init__.py +0 -0
  38. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/runners/base.py +0 -0
  39. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/runners/fake.py +0 -0
  40. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/runners/llamacpp_runner.py +0 -0
  41. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/runners/mlx_runner.py +0 -0
  42. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/runners/toolparse.py +0 -0
  43. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/scoring/__init__.py +0 -0
  44. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/scoring/checks.py +0 -0
  45. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/scoring/fake_judge.py +0 -0
  46. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/scoring/judge.py +0 -0
  47. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/scoring/language.py +0 -0
  48. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/scoring/models.py +0 -0
  49. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/scoring/score.py +0 -0
  50. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/scoring/stats.py +0 -0
  51. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/settings.py +0 -0
  52. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/store.py +0 -0
  53. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/tests_io.py +0 -0
  54. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/__init__.py +0 -0
  55. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/app.py +0 -0
  56. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/chat.py +0 -0
  57. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/compare.py +0 -0
  58. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/downloads.py +0 -0
  59. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/jobs.py +0 -0
  60. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/modeldetail.py +0 -0
  61. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/reviews.py +0 -0
  62. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/security.py +0 -0
  63. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/chat.js +0 -0
  64. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/fonts/JetBrainsMono-latin-b87346.woff2 +0 -0
  65. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/fonts/JetBrainsMono-latin-ext-9326b4.woff2 +0 -0
  66. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/fonts/NotoSansDevanagari-devanagari-3819bb.woff2 +0 -0
  67. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/fonts/NotoSansDevanagari-latin-ext-542103.woff2 +0 -0
  68. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/fonts/NotoSansDevanagari-latin-f3aaed.woff2 +0 -0
  69. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/fonts/NotoSansTamil-latin-17e6dc.woff2 +0 -0
  70. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/fonts/NotoSansTamil-latin-ext-027c12.woff2 +0 -0
  71. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/fonts/NotoSansTamil-tamil-a57d5e.woff2 +0 -0
  72. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/fonts/Outfit-latin-ebadd8.woff2 +0 -0
  73. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/fonts/Outfit-latin-ext-744997.woff2 +0 -0
  74. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/fonts/README.md +0 -0
  75. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/fonts.css +0 -0
  76. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/index.html +0 -0
  77. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/lab.css +0 -0
  78. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/lab.js +0 -0
  79. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/logo.svg +0 -0
  80. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/review.js +0 -0
  81. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/setup.js +0 -0
  82. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/static/testsets.js +0 -0
  83. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/summary.py +0 -0
  84. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/system.py +0 -0
  85. {quantcheck-0.0.1 → quantcheck-0.0.2}/quantcheck/ui/testsets.py +0 -0
  86. {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/__init__.py +0 -0
  87. {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/conftest.py +0 -0
  88. {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_bench_cli.py +0 -0
  89. {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_candidates.py +0 -0
  90. {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_checks.py +0 -0
  91. {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_config.py +0 -0
  92. {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_hardware.py +0 -0
  93. {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_llamacpp.py +0 -0
  94. {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_mlx_helpers.py +0 -0
  95. {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_mlx_slow.py +0 -0
  96. {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_pipeline.py +0 -0
  97. {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_recommend.py +0 -0
  98. {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_report.py +0 -0
  99. {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_runner.py +0 -0
  100. {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_scoring.py +0 -0
  101. {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_tests_io.py +0 -0
  102. {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_ui_chat.py +0 -0
  103. {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_ui_downloads.py +0 -0
  104. {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_ui_reviews.py +0 -0
  105. {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_ui_summary.py +0 -0
  106. {quantcheck-0.0.1 → quantcheck-0.0.2}/tests/test_ui_testsets.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: quantcheck
3
- Version: 0.0.1
3
+ Version: 0.0.2
4
4
  Summary: Find the cheapest quantized version of an open model that still passes your own tests.
5
5
  License-Expression: Apache-2.0
6
6
  License-File: LICENSE
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "quantcheck"
7
- version = "0.0.1"
7
+ version = "0.0.2"
8
8
  description = "Find the cheapest quantized version of an open model that still passes your own tests."
9
9
  readme = "README.md"
10
10
  license = "Apache-2.0"
@@ -1,3 +1,3 @@
1
1
  """QuantCheck: quality and cost lab for quantized open models."""
2
2
 
3
- __version__ = "0.0.1"
3
+ __version__ = "0.0.2"
@@ -1,8 +1,10 @@
1
1
  """Supabase Auth provider: browser sign-in with PKCE, plain HTTPS, no SDK.
2
2
 
3
- Settings come from the environment (never from code):
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 anon key
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", "")).rstrip("/")
79
- self.anon_key = anon_key or os.environ.get("QUANTCHECK_SUPABASE_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