Skip to main content

Switchlane Python SDK

A typed sync and async client for the Switchlane runtime routing API.

Install

pip install switchlane

Use

from switchlane import Switchlane

with Switchlane("sl_live_...") as client:
    result = client.route("Review this pull request")
    if result.meta.abstained:
        print(result.meta.abstention_reason)
    else:
        print(result.recommendations[0].agent_id)

This package is an API client, not an agent framework. The SDK is MIT licensed; the Switchlane server is AGPL-3.0-only.

Release files for switchlane 0.1.0

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

Source distribution (sdist)

Source distribution for switchlane 0.1.0
File Size Uploaded
switchlane-0.1.0.tar.gz 4.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for switchlane 0.1.0
File Interpreter ABI Platform
switchlane-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.9 kB

Release files / switchlane-0.1.0.tar.gz

Download URL switchlane-0.1.0.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
efcfb7a02fd1a9c608187a8b747f6f91ee97961da86911e4a3fdd276691bfa83
BLAKE2b-256 checksum
How to use checksums
ddaf1cb8aa2904193542dd0c14be1591f94a8438e0a85a05927ca25db9bfaa96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.2

Release files / switchlane-0.1.0-py3-none-any.whl

Download URL switchlane-0.1.0-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
680688953e1e56d3349aa23767e1dc7421f1946e5f639b3f56f74cf8835eddd6
BLAKE2b-256 checksum
How to use checksums
84db2a2be41188270bc089e253f1eccbb4f6af4f59d518a48f318bfbe119f705
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.2

Release history Release notifications | RSS feed

0.1.2

2 release files

0.1.1

2 release files

This release

0.1.0 This release

2 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