Skip to main content

f3dx-router (DEPRECATED)

This package has moved. As of 2026-04-30, f3dx-router is consolidated into f3dx as 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, emits DeprecationWarning on import. Install pulls in f3dx>=0.0.18 automatically.
  • +4 weeks (2026-05-28): this GitHub repo flips to read-only / archived. PyPI installs of f3dx-router==0.0.4 continue to work.
  • +4-6 months (2026-08 to 2026-10): all f3dx-router versions on PyPI get yanked. Cached wheels still resolve for old installs; new pip install f3dx-router will 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.

Release files for f3dx-router 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for f3dx-router 0.0.4
File Size Uploaded
f3dx_router-0.0.4.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for f3dx-router 0.0.4
File Interpreter ABI Platform
f3dx_router-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 6.4 kB

Release files / f3dx_router-0.0.4.tar.gz

Download URL f3dx_router-0.0.4.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e166ca56f9dbdec84735d1a58b99fe48f26469c3d6c36424387d96cfe56ba659
BLAKE2b-256 checksum
How to use checksums
cd3a8fc43ceb57a6cd29a7e318c5b8503cdb6a6d2c03887dd88101a783042903
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 30, 2026.

Transparency log

Release files / f3dx_router-0.0.4-py3-none-any.whl

Download URL f3dx_router-0.0.4-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
794f6a246df721eece967320fbd01b126a0909917e302955f281e7c598ca0122
BLAKE2b-256 checksum
How to use checksums
e0a7b0f1dcc0a22a8690c7394fb543849811a1c5cca55a5894cb61bf67df2576
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 30, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

7 release files

0.0.2

6 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page