Skip to main content

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-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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

f3dx_router-0.0.4.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

f3dx_router-0.0.4-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

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

Hashes for f3dx_router-0.0.4.tar.gz
Algorithm Hash digest
SHA256 e166ca56f9dbdec84735d1a58b99fe48f26469c3d6c36424387d96cfe56ba659
MD5 740b66f486fd5af3fb638addc1714604
BLAKE2b-256 cd3a8fc43ceb57a6cd29a7e318c5b8503cdb6a6d2c03887dd88101a783042903

See more details on using hashes here.

Provenance

The following attestation bundles were made for f3dx_router-0.0.4.tar.gz:

Publisher: release.yml on smigolsmigol/f3dx-router

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for f3dx_router-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 794f6a246df721eece967320fbd01b126a0909917e302955f281e7c598ca0122
MD5 c140a59fd76f8045071b42d6615efb17
BLAKE2b-256 e0a7b0f1dcc0a22a8690c7394fb543849811a1c5cca55a5894cb61bf67df2576

See more details on using hashes here.

Provenance

The following attestation bundles were made for f3dx_router-0.0.4-py3-none-any.whl:

Publisher: release.yml on smigolsmigol/f3dx-router

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page