DEPRECATED. Consolidated into f3dx[router]. Install `f3dx` and import from `f3dx.router`.
Project description
f3dx-router (DEPRECATED)
This package has moved. As of 2026-04-30,
f3dx-routeris consolidated intof3dxas a Python sub-module + Cargo workspace member. Install the new home and update your imports.
pip install f3dx[router]
from f3dx.router import Router
router = Router(
providers=[
{"name": "openai", "kind": "openai",
"base_url": "https://api.openai.com/v1",
"api_key": "sk-..."},
{"name": "groq", "kind": "openai",
"base_url": "https://api.groq.com/openai/v1",
"api_key": "gsk_..."},
],
policy="hedged",
hedge_k=2,
)
Why moved
Single wheel, single ABI, single CI, single release cadence. The router is one of f3dx's runtime layers (alongside the agent runtime, HTTP clients, cache, MCP, trace sink); shipping it as a separate package created cross-repo version drift and discoverability friction. See the consolidation reasoning at smigolsmigol/f3dx.
Transition timeline
- v0.0.4 (this version, 2026-04-30): re-exports from
f3dx.router, emitsDeprecationWarningon import. Install pulls inf3dx>=0.0.18automatically. - +4 weeks (2026-05-28): this GitHub repo flips to read-only / archived. PyPI installs of
f3dx-router==0.0.4continue to work. - +4-6 months (2026-08 to 2026-10): all
f3dx-routerversions on PyPI get yanked. Cached wheels still resolve for old installs; newpip install f3dx-routerwill fail by then.
Migration
| Old | New |
|---|---|
pip install f3dx-router |
pip install f3dx[router] |
from f3dx_router import Router |
from f3dx.router import Router |
The Router API is identical: same constructor, same chat_completions() method, same sequential / hedged policies, same provider dict shape.
License
MIT, same as the upstream f3dx project.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file f3dx_router-0.0.4.tar.gz.
File metadata
- Download URL: f3dx_router-0.0.4.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e166ca56f9dbdec84735d1a58b99fe48f26469c3d6c36424387d96cfe56ba659
|
|
| MD5 |
740b66f486fd5af3fb638addc1714604
|
|
| BLAKE2b-256 |
cd3a8fc43ceb57a6cd29a7e318c5b8503cdb6a6d2c03887dd88101a783042903
|
Provenance
The following attestation bundles were made for f3dx_router-0.0.4.tar.gz:
Publisher:
release.yml on smigolsmigol/f3dx-router
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
f3dx_router-0.0.4.tar.gz -
Subject digest:
e166ca56f9dbdec84735d1a58b99fe48f26469c3d6c36424387d96cfe56ba659 - Sigstore transparency entry: 1409464558
- Sigstore integration time:
-
Permalink:
smigolsmigol/f3dx-router@f5e0c495db21b4ee09a3fd581c79a8bcaeb59c32 -
Branch / Tag:
refs/tags/v0.0.4 - Owner: https://github.com/smigolsmigol
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@f5e0c495db21b4ee09a3fd581c79a8bcaeb59c32 -
Trigger Event:
push
-
Statement type:
File details
Details for the file f3dx_router-0.0.4-py3-none-any.whl.
File metadata
- Download URL: f3dx_router-0.0.4-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
794f6a246df721eece967320fbd01b126a0909917e302955f281e7c598ca0122
|
|
| MD5 |
c140a59fd76f8045071b42d6615efb17
|
|
| BLAKE2b-256 |
e0a7b0f1dcc0a22a8690c7394fb543849811a1c5cca55a5894cb61bf67df2576
|
Provenance
The following attestation bundles were made for f3dx_router-0.0.4-py3-none-any.whl:
Publisher:
release.yml on smigolsmigol/f3dx-router
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
f3dx_router-0.0.4-py3-none-any.whl -
Subject digest:
794f6a246df721eece967320fbd01b126a0909917e302955f281e7c598ca0122 - Sigstore transparency entry: 1409464569
- Sigstore integration time:
-
Permalink:
smigolsmigol/f3dx-router@f5e0c495db21b4ee09a3fd581c79a8bcaeb59c32 -
Branch / Tag:
refs/tags/v0.0.4 - Owner: https://github.com/smigolsmigol
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@f5e0c495db21b4ee09a3fd581c79a8bcaeb59c32 -
Trigger Event:
push
-
Statement type: