llmrace 1.35.1__py3-none-win_amd64.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.
- llmrace/__init__.py +8 -0
- llmrace/__main__.py +27 -0
- llmrace/bin/llmrace.exe +0 -0
- llmrace-1.35.1.dist-info/METADATA +15 -0
- llmrace-1.35.1.dist-info/RECORD +7 -0
- llmrace-1.35.1.dist-info/WHEEL +4 -0
- llmrace-1.35.1.dist-info/entry_points.txt +2 -0
llmrace/__init__.py
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"""llmrace — race LLM providers head-to-head from your terminal.
|
|
2
|
+
|
|
3
|
+
This package is a binary shim: the wheel for your platform carries the
|
|
4
|
+
compiled `llmrace` binary from the GitHub release. `python -m llmrace`
|
|
5
|
+
and the `llmrace` console script both exec it.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
__version__ = "1.35.1" # replaced at wheel-build time
|
llmrace/__main__.py
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"""Console entry point: exec the bundled llmrace binary."""
|
|
2
|
+
|
|
3
|
+
import os
|
|
4
|
+
import stat
|
|
5
|
+
import sys
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def main() -> None:
|
|
9
|
+
name = "llmrace.exe" if sys.platform == "win32" else "llmrace"
|
|
10
|
+
binary = os.path.join(os.path.dirname(os.path.abspath(__file__)), "bin", name)
|
|
11
|
+
if not os.path.exists(binary):
|
|
12
|
+
sys.stderr.write(
|
|
13
|
+
f"llmrace: bundled binary not found at {binary}\n"
|
|
14
|
+
"This wheel may not match your platform; see "
|
|
15
|
+
"https://github.com/dfbustosus/llmrace#install for alternatives.\n"
|
|
16
|
+
)
|
|
17
|
+
raise SystemExit(1)
|
|
18
|
+
# pip normalizes package files to 0o644 on install; the shim restores
|
|
19
|
+
# the exec bit the wheel carried
|
|
20
|
+
mode = os.stat(binary).st_mode
|
|
21
|
+
if not mode & stat.S_IXUSR:
|
|
22
|
+
os.chmod(binary, mode | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH)
|
|
23
|
+
os.execv(binary, [binary, *sys.argv[1:]])
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
if __name__ == "__main__":
|
|
27
|
+
main()
|
llmrace/bin/llmrace.exe
ADDED
|
Binary file
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: llmrace
|
|
3
|
+
Version: 1.35.1
|
|
4
|
+
Summary: Race LLM providers head-to-head: latency, TTFT, tokens/s, cost, and a CI gate that names the prompt.
|
|
5
|
+
License: MIT OR Apache-2.0
|
|
6
|
+
Requires-Python: >=3.9
|
|
7
|
+
Project-URL: Repository, https://github.com/dfbustosus/llmrace
|
|
8
|
+
Project-URL: Changelog, https://github.com/dfbustosus/llmrace/blob/main/CHANGELOG.md
|
|
9
|
+
Classifier: Environment :: Console
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Classifier: Programming Language :: Rust
|
|
12
|
+
Classifier: Topic :: Software Development :: Testing
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
|
|
15
|
+
Race the same LLM request across providers — latency, TTFT, tokens/s, cost — with a live terminal view and a CI gate that names the prompt that got worse. This wheel bundles the compiled binary; see the [README](https://github.com/dfbustosus/llmrace) for usage.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
llmrace/__init__.py,sha256=hVzpEZZlofLyDeZ8ZbRg2EFcVT3zR-Mgc644dWpYvdA,317
|
|
2
|
+
llmrace/__main__.py,sha256=sR187l18GfK3AxUIG0py73EZOuJUbhXB9X4fwxKJipA,907
|
|
3
|
+
llmrace/bin/llmrace.exe,sha256=4tokzJPlFDjHzMTl_2gcVlLDWQ4J7BXZLIBoP4b7Bq4,9838080
|
|
4
|
+
llmrace-1.35.1.dist-info/METADATA,sha256=_yB4orvt6mQl4qgIrUmAtoPmAeQMVsv2cmWPDemCou4,843
|
|
5
|
+
llmrace-1.35.1.dist-info/WHEEL,sha256=35zO4yg3XjvJf7-2cc1M_8iDyAduSH4ULWEhtKBscYs,96
|
|
6
|
+
llmrace-1.35.1.dist-info/entry_points.txt,sha256=fsOuHvE1Fl7uxIGnheg0Er_p_OezPzc1K7F6XNU2x54,50
|
|
7
|
+
llmrace-1.35.1.dist-info/RECORD,,
|