Skip to main content

parking-tickets

Parking tickets from many US and Canadian cities in one table: same columns, same violation groups, read straight from each city's open-data portal.

The web page: 132 tickets and $8,649 in fines in one Hollywood block over 30 days

Today: Los Angeles, New York City, Washington DC, San Francisco, Philadelphia, Oakland, Winnipeg, Syracuse and Everett WA, over 270 million tickets. See CITIES.md for row counts, dates and source links.

$ parking-tickets fetch --city la,sf,nyc --since 2025-06-03 --until 2025-06-03
$ parking-tickets stats
la: 7886 rows, 2025-06-03 to 2025-06-03, 99.5% with lat/lon, 3.8% in other
nyc: 53907 rows, 2025-06-03 to 2025-06-03, 0.0% with lat/lon, 2.6% in other
sf: 5158 rows, 2025-06-03 to 2025-06-03, 98.3% with lat/lon, 3.4% in other

Three ways in

Notebook

from parking_tickets import load

df = load("la", since="2025-06-01", until="2025-06-30")
df.groupby("group")["fine_usd"].sum()

Install with pip install "parking-tickets[pandas]". Days already read come from the local cache, so the second call is instant.

Command line

pip install parking-tickets
parking-tickets fetch --city la,sf --since 2025-06-01 --until 2025-06-30 --out tickets.csv
parking-tickets stats

--out writes .csv, .jsonl, .db (SQLite) or .parquet (needs pip install "parking-tickets[parquet]").

No code

Ready Parquet and gzipped CSV files (.csv.gz), one per city and year, are on the Releases page (data-YYYY-MM), refreshed monthly. MANIFEST.json in each release lists every file with its row count and SHA-256.

One row per ticket

Column Meaning
city slug: la, nyc, sf, philadelphia, oakland, winnipeg, everett
source_id the city's own ticket number; unique together with city
issued_at local time, ISO 8601; date only when the city's time is unreadable
violation_code the city's code as given
violation_text the city's description; for New York, from its code table
group shared group from groups.csv, other when unknown
fine_usd fine in dollars (Canadian for Winnipeg); empty when the city does not publish it
location address or block as given
lat, lon empty when missing or outside the city limits (a geocoding error)
plate_state two letters

Plate numbers are never stored.

The 21 groups: street_cleaning, meter, time_limit, permit, no_parking, no_stopping, loading_zone, bus_zone, hydrant, double_parking, driveway, sidewalk, crosswalk, disabled, registration, plates, inspection, bike_lane, speed_camera, red_light_camera, transit_fare. In one month per city (June 2025; Philadelphia June 2017) at least 95% of tickets landed outside other.

Good to know

  • New York's data includes school-zone speed camera and red-light camera tickets (a third of NYC rows in June 2025); filter on group.
  • New York publishes no coordinates; lat and lon are empty there, location has house number and street.
  • San Francisco's data includes Muni fare evasion citations, group transit_fare.
  • Philadelphia publishes 2012 to 2017 only and has no violation code; its groups come from the description text.
  • Washington publishes about five weeks late, with coordinates rounded to about 100 m.
  • Syracuse starts in 2023: its 2007 to 2022 table has no coordinates. Its groups come from the description text.
  • The page offers no CSV for Washington and Syracuse; their servers return at most 1,000 to 2,000 rows a call.
  • New York fines come from the city's violation code table; tickets in Manhattan at or below 96th St get the higher fine, matched by police precinct.
  • Winnipeg fines are Canadian dollars, the full fine before the early-payment discount. Its tickets have no ticket number, so source_id is the portal's row id, and since mid-2020 they carry the day only.
  • Everett publishes no fine amounts; fine_usd is empty there.
  • Oakland publishes about three months late.
  • Days in the last 30 days are read again on every fetch, because cities keep adding late tickets.

Commands

Command Does
fetch read tickets into the local SQLite cache, optionally write --out
stats rows, dates, share with lat/lon and share in other, per cached city
cities list city slugs
check-city <slug> read 100 live rows through the city file; fails on a missing column

The cache lives at ~/.cache/parking-tickets/cache.db (or under $XDG_CACHE_HOME). Set SOCRATA_APP_TOKEN for higher portal rate limits; it is optional.

Add a city

See CONTRIBUTING.md. A link to a city's ticket dataset is a contribution too.

License

MIT. The data belongs to each city; see the source links in CITIES.md.

Metadata

Release files for parking-tickets 0.2.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 parking-tickets 0.2.0
File Size Uploaded Provenance Actions
parking_tickets-0.2.0.tar.gz 24.7 kB Without provenance Details for parking_tickets-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for parking-tickets 0.2.0
File Interpreter ABI Platform Actions
parking_tickets-0.2.0-py3-none-any.whl Python 3 none any Details for parking_tickets-0.2.0-py3-none-any.whl

Total release size: 57.5 kB

Release files / parking_tickets-0.2.0.tar.gz

Download URL parking_tickets-0.2.0.tar.gz
Size 24.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5f985c15e10e878149c8be21d088a111b38d6c1f1d67658bfc7765a666179a70
BLAKE2b-256 checksum
How to use checksums
00c3c896a0ded6337c2f8841cae2b570aeb5cd58876399c7ee2a2b54bf2a2647
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / parking_tickets-0.2.0-py3-none-any.whl

Download URL parking_tickets-0.2.0-py3-none-any.whl
Size 32.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c1161ac4a42e9a512bbe65dfd9012d0c30c61abd2a6776e242197a7afd2ee2b1
BLAKE2b-256 checksum
How to use checksums
4c9edf688b99b6d437fdf3fed769ac4f3b7a5f5745fafe3bf422bebe91be0ce1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for parking-tickets 0.2.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