Skip to main content

sorted-travel

Official Python SDK and CLI for the Sorted Travel REST API.

This is a stdlib-only client for the public endpoints at https://sorted.travel. Destination ranking, facts, weather, and visa tools are a free tier with zero-auth access. An API key is optional.

Install

pip install sorted-travel

Quickstart

from sorted_travel import Client

client = Client()
print(client.status())
page = client.list_destinations(limit=20)
print(page["data"][0]["handle"], page["has_more"])

Destination tools need no key. If a host still requires one:

client = Client(api_key="st_sandbox_...")  # or set SORTED_TRAVEL_API_KEY

Self-serve sandbox keys:

payload = client.create_api_key()

CLI

sorted-travel status
sorted-travel destinations --limit 5
sorted-travel sandbox
sorted-travel api-key

Configuration

Constructor arg Environment variable Default
api_key SORTED_TRAVEL_API_KEY
base_url SORTED_TRAVEL_BASE_URL https://sorted.travel
timeout 30.0 seconds

Surface

  • status()GET /api/v1/status
  • list_destinations(cursor=, limit=)GET /api/v1/destinations
  • create_api_key()POST /api/v1/api-keys
  • sandbox()GET /sandbox
  • create_job(operation, **body)POST /api/v1/jobs
  • get_job(job_id)GET /api/v1/jobs/{job_id}
  • get(path, params=) / post(path, body=) — raw REST escape hatch

Interactive ranking, weather, and visa still go through MCP at https://sorted.travel/mcp. This package does not wrap JSON-RPC.

License

MIT. The Sorted Travel product remains under its own terms at https://sorted.travel/terms.

Release files for sorted-travel 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 sorted-travel 0.1.0
File Size Uploaded
sorted_travel-0.1.0.tar.gz 6.7 kB Details

Built distribution (wheel)

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

Total release size: 13.7 kB

Release files / sorted_travel-0.1.0.tar.gz

Download URL sorted_travel-0.1.0.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1803565a3caf7b10dfd267f8c2cf9aceb73ba2c33dd346cdf5b56f3026a42429
BLAKE2b-256 checksum
How to use checksums
f8af0a3dc38ccd89101923600f6386315dec2be2b623914c45d7e91b2ad4cde8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 12, 2026.

Transparency log

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

Download URL sorted_travel-0.1.0-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8512a1c62a678a352f226142d50fe07cdb5bd5b8c8f2be8c7aba4a23965310b0
BLAKE2b-256 checksum
How to use checksums
1aeec08c105b1ccb996bd7e3d5fe359b24e294f3c77aa7f4ff0ecc0eeaf316dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 12, 2026.

Transparency log

Release history Release notifications | RSS feed

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