openroutiq 0.1.0__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.
- openroutiq-0.1.0/CONTRIBUTING.md +40 -0
- openroutiq-0.1.0/LICENSE +21 -0
- openroutiq-0.1.0/MANIFEST.in +26 -0
- openroutiq-0.1.0/PKG-INFO +1159 -0
- openroutiq-0.1.0/README.md +1094 -0
- openroutiq-0.1.0/assets/banner.png +0 -0
- openroutiq-0.1.0/assets/results/live-framework-task-comparison.png +0 -0
- openroutiq-0.1.0/assets/results/live-multimodal-task-comparison.png +0 -0
- openroutiq-0.1.0/assets/results/live-openrouter-comparison.png +0 -0
- openroutiq-0.1.0/assets/results/live-routellm-task-comparison.png +0 -0
- openroutiq-0.1.0/assets/results/selection-quality-cost-frontier.png +0 -0
- openroutiq-0.1.0/assets/results/selection-router-quality.png +0 -0
- openroutiq-0.1.0/assets/results/semantic-router-quality-cost.png +0 -0
- openroutiq-0.1.0/assets/results/xroutebench-held-out-performance.png +0 -0
- openroutiq-0.1.0/constraints/release.txt +20 -0
- openroutiq-0.1.0/examples/__init__.py +1 -0
- openroutiq-0.1.0/examples/adaptive/__init__.py +1 -0
- openroutiq-0.1.0/examples/adaptive/private_model_onboarding.py +81 -0
- openroutiq-0.1.0/examples/common/__init__.py +1 -0
- openroutiq-0.1.0/examples/common/observability.py +78 -0
- openroutiq-0.1.0/examples/common/runtime.py +72 -0
- openroutiq-0.1.0/examples/domains/__init__.py +1 -0
- openroutiq-0.1.0/examples/domains/customer_support.py +75 -0
- openroutiq-0.1.0/examples/domains/financial_document_review.py +81 -0
- openroutiq-0.1.0/examples/domains/healthcare_document_assist.py +76 -0
- openroutiq-0.1.0/examples/frameworks/__init__.py +1 -0
- openroutiq-0.1.0/examples/frameworks/langchain_runnable.py +81 -0
- openroutiq-0.1.0/examples/frameworks/langgraph_workflow.py +91 -0
- openroutiq-0.1.0/examples/observability/__init__.py +1 -0
- openroutiq-0.1.0/examples/observability/exporter_fanout.py +33 -0
- openroutiq-0.1.0/examples/quickstart/__init__.py +1 -0
- openroutiq-0.1.0/examples/quickstart/basic_routing.py +24 -0
- openroutiq-0.1.0/models.example.json +120 -0
- openroutiq-0.1.0/models.providers.example.json +98 -0
- openroutiq-0.1.0/pyproject.toml +96 -0
- openroutiq-0.1.0/scripts/check_distribution.py +252 -0
- openroutiq-0.1.0/scripts/check_docs.py +116 -0
- openroutiq-0.1.0/scripts/check_namespace_cutover.py +94 -0
- openroutiq-0.1.0/scripts/check_release.py +283 -0
- openroutiq-0.1.0/setup.cfg +4 -0
- openroutiq-0.1.0/src/openroutiq/__init__.py +191 -0
- openroutiq-0.1.0/src/openroutiq/__main__.py +3 -0
- openroutiq-0.1.0/src/openroutiq/adaptive/__init__.py +19 -0
- openroutiq-0.1.0/src/openroutiq/adaptive/registry.py +1996 -0
- openroutiq-0.1.0/src/openroutiq/benchmark/__init__.py +59 -0
- openroutiq-0.1.0/src/openroutiq/benchmark/adapters.py +567 -0
- openroutiq-0.1.0/src/openroutiq/benchmark/cli.py +495 -0
- openroutiq-0.1.0/src/openroutiq/benchmark/core.py +1425 -0
- openroutiq-0.1.0/src/openroutiq/benchmark/flows.py +443 -0
- openroutiq-0.1.0/src/openroutiq/benchmark/gateway.py +900 -0
- openroutiq-0.1.0/src/openroutiq/benchmark/planning.py +780 -0
- openroutiq-0.1.0/src/openroutiq/benchmark/protocol.py +65 -0
- openroutiq-0.1.0/src/openroutiq/benchmark/reporting.py +458 -0
- openroutiq-0.1.0/src/openroutiq/benchmark/templates/__init__.py +1 -0
- openroutiq-0.1.0/src/openroutiq/benchmark/templates/catalog.json +71 -0
- openroutiq-0.1.0/src/openroutiq/benchmark/templates/recorded.json +131 -0
- openroutiq-0.1.0/src/openroutiq/benchmark/templates/replay.json +34 -0
- openroutiq-0.1.0/src/openroutiq/cli.py +202 -0
- openroutiq-0.1.0/src/openroutiq/observability/__init__.py +33 -0
- openroutiq-0.1.0/src/openroutiq/observability/dispatcher.py +406 -0
- openroutiq-0.1.0/src/openroutiq/observability/events.py +476 -0
- openroutiq-0.1.0/src/openroutiq/observability/http_json.py +150 -0
- openroutiq-0.1.0/src/openroutiq/observability/otel.py +328 -0
- openroutiq-0.1.0/src/openroutiq/observability/vendors.py +112 -0
- openroutiq-0.1.0/src/openroutiq/providers/__init__.py +5 -0
- openroutiq-0.1.0/src/openroutiq/providers/requests.py +393 -0
- openroutiq-0.1.0/src/openroutiq/proxy/__init__.py +8 -0
- openroutiq-0.1.0/src/openroutiq/proxy/app.py +1041 -0
- openroutiq-0.1.0/src/openroutiq/py.typed +1 -0
- openroutiq-0.1.0/src/openroutiq/quickstart/__init__.py +5 -0
- openroutiq-0.1.0/src/openroutiq/quickstart/catalog.py +173 -0
- openroutiq-0.1.0/src/openroutiq/router/__init__.py +73 -0
- openroutiq-0.1.0/src/openroutiq/router/capabilities.py +103 -0
- openroutiq-0.1.0/src/openroutiq/router/core.py +3057 -0
- openroutiq-0.1.0/src/openroutiq/router/failures.py +105 -0
- openroutiq-0.1.0/src/openroutiq/selection/__init__.py +27 -0
- openroutiq-0.1.0/src/openroutiq/selection/evaluation.py +898 -0
- openroutiq-0.1.0/src/openroutiq/selection/intelligence.py +853 -0
- openroutiq-0.1.0/src/openroutiq.egg-info/PKG-INFO +1159 -0
- openroutiq-0.1.0/src/openroutiq.egg-info/SOURCES.txt +94 -0
- openroutiq-0.1.0/src/openroutiq.egg-info/dependency_links.txt +1 -0
- openroutiq-0.1.0/src/openroutiq.egg-info/entry_points.txt +3 -0
- openroutiq-0.1.0/src/openroutiq.egg-info/requires.txt +51 -0
- openroutiq-0.1.0/src/openroutiq.egg-info/top_level.txt +1 -0
- openroutiq-0.1.0/tests/test_adaptive.py +573 -0
- openroutiq-0.1.0/tests/test_capabilities.py +77 -0
- openroutiq-0.1.0/tests/test_distribution_check.py +155 -0
- openroutiq-0.1.0/tests/test_docs.py +114 -0
- openroutiq-0.1.0/tests/test_examples.py +108 -0
- openroutiq-0.1.0/tests/test_namespace_cutover.py +42 -0
- openroutiq-0.1.0/tests/test_observability.py +432 -0
- openroutiq-0.1.0/tests/test_proxy.py +774 -0
- openroutiq-0.1.0/tests/test_release.py +84 -0
- openroutiq-0.1.0/tests/test_router.py +981 -0
- openroutiq-0.1.0/tests/test_selection.py +155 -0
- openroutiq-0.1.0/tests/test_universal.py +241 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Contributing to OpenRoutiQ
|
|
2
|
+
|
|
3
|
+
Thank you for helping make model routing more open, reproducible, and useful.
|
|
4
|
+
|
|
5
|
+
## Development setup
|
|
6
|
+
|
|
7
|
+
```powershell
|
|
8
|
+
python -m venv .venv
|
|
9
|
+
.venv\Scripts\Activate.ps1
|
|
10
|
+
python -m pip install -e ".[dev,proxy]"
|
|
11
|
+
$env:PYTHONPATH="src"
|
|
12
|
+
python -m unittest discover -s tests -v
|
|
13
|
+
python -m ruff check .
|
|
14
|
+
python -m ruff format --check .
|
|
15
|
+
python -m mypy
|
|
16
|
+
python -m pip_audit
|
|
17
|
+
python scripts/check_release.py
|
|
18
|
+
python scripts/check_docs.py
|
|
19
|
+
python -m build
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
The core package must remain dependency-free. Put provider, proxy, embedding, and evaluation integrations behind optional extras and guarded imports.
|
|
23
|
+
|
|
24
|
+
## Pull requests
|
|
25
|
+
|
|
26
|
+
- Open an issue first for breaking APIs, new scoring semantics, or new persisted schemas.
|
|
27
|
+
- Add focused tests for behavior and failure modes.
|
|
28
|
+
- Update the README when user-visible behavior changes.
|
|
29
|
+
- Preserve provider-native message/tool objects; do not normalize away opaque state.
|
|
30
|
+
- Never include real API keys, private prompts, proprietary datasets, or paid model outputs.
|
|
31
|
+
- Keep example model data clearly labeled synthetic or illustrative.
|
|
32
|
+
|
|
33
|
+
## Commit and review expectations
|
|
34
|
+
|
|
35
|
+
Small, single-purpose commits are easiest to review. Maintainers may request changes for correctness, security, privacy, compatibility, or reproducibility. By contributing, you agree that your contribution is licensed under the repository's MIT License.
|
|
36
|
+
|
|
37
|
+
## Security reports
|
|
38
|
+
|
|
39
|
+
Do not open a public issue for a suspected vulnerability. Use GitHub's private vulnerability
|
|
40
|
+
reporting for this repository and omit real provider keys, private prompts, and customer data.
|
openroutiq-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 OpenRoutiQ contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
include CONTRIBUTING.md
|
|
2
|
+
include LICENSE
|
|
3
|
+
include README.md
|
|
4
|
+
include models.example.json
|
|
5
|
+
include models.providers.example.json
|
|
6
|
+
recursive-include assets *.png
|
|
7
|
+
prune benchmarks
|
|
8
|
+
recursive-include constraints *.txt
|
|
9
|
+
prune docs
|
|
10
|
+
recursive-include examples *.py
|
|
11
|
+
recursive-include src/openroutiq/benchmark/templates *.json
|
|
12
|
+
recursive-include scripts *.py
|
|
13
|
+
exclude scripts/check_benchmark_evidence.py
|
|
14
|
+
recursive-include tests *.py
|
|
15
|
+
exclude tests/test_benchmark*.py
|
|
16
|
+
exclude tests/test_portable_report.py
|
|
17
|
+
exclude tests/test_risk_replay.py
|
|
18
|
+
exclude tests/test_selection_comparator_protocol.py
|
|
19
|
+
exclude tests/test_selection_eval.py
|
|
20
|
+
exclude tests/test_selection_evidence_publication.py
|
|
21
|
+
exclude tests/test_selection_live_ledger_audit.py
|
|
22
|
+
exclude tests/test_selection_manifest.py
|
|
23
|
+
exclude tests/test_selection_plots.py
|
|
24
|
+
exclude tests/test_selection_report*.py
|
|
25
|
+
exclude tests/test_xroutebench.py
|
|
26
|
+
global-exclude __pycache__ *.py[cod]
|