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.
Today: Los Angeles, New York City, San Francisco, Philadelphia, Oakland, Winnipeg and Everett WA, over 245 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.9% 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 96% 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;
latandlonare empty there,locationhas 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.
- 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_idis the portal's row id, and since mid-2020 they carry the day only. - Everett publishes no fine amounts;
fine_usdis 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.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| parking_tickets-0.1.0.tar.gz | 20.4 kB | Without provenance | Details for parking_tickets-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| parking_tickets-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for parking_tickets-0.1.0-py3-none-any.whl |
Total release size: 47.5 kB
Release files / parking_tickets-0.1.0.tar.gz
| Download URL | parking_tickets-0.1.0.tar.gz |
|---|---|
| Size | 20.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
229c0f99ffe69a06438ee48dadf56cfe183c7e20b8f16d63189f890984ed134b
|
|
BLAKE2b-256 checksum How to use checksums |
f44253a9291282d0136e607e5963acd2c8787de737ff2200af3f6305f50bb2ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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.1.0-py3-none-any.whl
| Download URL | parking_tickets-0.1.0-py3-none-any.whl |
|---|---|
| Size | 27.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
29ec4b3780d379591662ada9981e00543f9a0410a33b9d863666ea6c34f31180
|
|
BLAKE2b-256 checksum How to use checksums |
fc2c4dd311cc63e0991266de5299403d097da7162ec3a582f0a6e6d7c88b4fff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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.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.