Skip to main content

transitlab

Query open NYC transit data from Transit Lab on your own computer. Subway run times and slow zones, bus speeds and lanes, taxi trips, Uber and Lyft trips, service alerts. It reads our public Parquet files with DuckDB, so there is nothing to sign up for and no key.

uvx transitlab tables
uvx transitlab describe subway_stop_events
uvx transitlab sql "select route_id, count(*) as stops from subway_stop_events group by 1 order by 2 desc limit 5"
uvx transitlab sql "select * from bus_lanes limit 100" --format csv -o lanes.csv
uvx transitlab download subway_segment_times --from 2026-01 --to 2026-03 -o data

Big tables are one file a month or a day. --from and --to pick which files to read (YYYY-MM-DD or YYYY-MM). They do not trim rows inside those files; add a WHERE for that. Filtering on the year and month columns in SQL skips files the same way.

For AI agents

claude mcp add transitlab -- uvx transitlab mcp

transitlab mcp --config claude-desktop and --config cursor print the settings for those apps. The server has four tools: list_tables, describe_table, run_sql (read-only, 1,000 rows, 60 seconds) and example_queries.

Docs: https://docs.transitlab.nyc/start/cli-and-mcp. Data: CC BY 4.0. Credit transitlab.nyc and the original source (MTA, NYC DOT or NYC TLC).

Metadata

Release files for transitlab 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 transitlab 0.1.0
File Size Uploaded Provenance Actions
transitlab-0.1.0.tar.gz 88.6 kB Without provenance Details for transitlab-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 108.9 kB

Release files / transitlab-0.1.0.tar.gz

Download URL transitlab-0.1.0.tar.gz
Size 88.6 kB
Tags Source
SHA-256 checksum
How to use checksums
13c1125ac25b922453a5c4f3bd80f630985d801f244693b30d2b9e4dd2f5e979
BLAKE2b-256 checksum
How to use checksums
2458cdd1d17614588e0d5a79ca2e72847db81e642a5083cf07d2fc8b907bc411
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.10

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

Download URL transitlab-0.1.0-py3-none-any.whl
Size 20.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b9eaa825e534e3c78f35a7549c6721b97172ae091dede425a23d95e5e21242bc
BLAKE2b-256 checksum
How to use checksums
1bc45bdb92ec5efb7be8d4d82f77af7ada159a57e5d020c513297d115af82e85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.10

Security for transitlab 0.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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