US farmers-market statistics: official Python client for the Harvestly Markets open dataset (CC BY 4.0, USDA-derived)
Project description
harvestly
Official Python client for the Harvestly Markets open dataset: state-by-state statistics on 8,800+ US farmers markets, ~2,000 CSA programs, and ~7,800 farm stands — cleaned, deduplicated, and enriched from the USDA AMS Local Food Portal.
- Data license: CC BY 4.0 (this client: MIT)
- Zero dependencies — Python ≥ 3.9 standard library only
- Data + methodology: harvestlymarkets.com/data-sources
- Human-readable reports: farmers-market statistics by state
Install
pip install harvestly
Python API
import harvestly
ds = harvestly.load() # fetches once, then ~24h local cache
ds.national["farmers_markets"] # 8863
ds.state("vt") # {'state_name': 'Vermont', 'farmers_markets': ..., ...}
ds.state("California") # abbreviation or full name
ds.top("website_pct", 5) # best online presence
ds.top("farmers_markets", 5, ascending=True) # fewest markets
harvestly.state_url("ny") # browse live listings for a state
harvestly.zip_url("12180") # market finder for a ZIP
Each state row: farmers_markets, csa_programs, farm_stands, snap_ebt_markets,
snap_ebt_pct, organic_vendor_markets, organic_pct, markets_with_website, website_pct.
CLI
harvestly national
harvestly state ca
harvestly top snap_ebt_pct -n 10
harvestly state vt --json # machine-readable
Data notes
The dataset is rebuilt from the USDA substrate with documented cleaning: deduplication (the raw feed double-counts ~270 records), website/season/SNAP enrichment from live state sources, and per-state aggregation. Full methodology: harvestlymarkets.com/about/methodology. Archived copies: Zenodo (DOI 10.5281/zenodo.21247900), Hugging Face, Kaggle, GitHub.
Attribution (CC BY 4.0): Harvestly Markets (2026). US Farmers Market Statistics. https://harvestlymarkets.com/farmers-market-statistics/
Found a data issue? Every listing has a correction flow at harvestlymarkets.com/submit.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file harvestly-0.1.0.tar.gz.
File metadata
- Download URL: harvestly-0.1.0.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e7a980d0ee007ea44c6b789e58e6a6537eb224c6c0a92b2bc40b3072d943feb
|
|
| MD5 |
5fcecf4b6c08831f16de273129347c7a
|
|
| BLAKE2b-256 |
0e18aba270590dfb8fd0d1b0a6f602530d97cc952ab2f6b6c97219a279a42030
|
File details
Details for the file harvestly-0.1.0-py3-none-any.whl.
File metadata
- Download URL: harvestly-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61f0b27f1d037986e77fd450d13677917b6ce8dc960c69b13669b27c0972532f
|
|
| MD5 |
c482fcf17e1d3dacbe3672aa6bbf9a53
|
|
| BLAKE2b-256 |
a59a065d1138da6eafe0f4ae5e623ff8681defb730d528ac7165c6d733b1ac0b
|