[ANN] USDAQuickStats.jl 1.0.0

USDAQuickStats.jl 1.0.0

I’m happy to announce the release of USDAQuickStats.jl v1.0.0, the first stable version of the package.

What the package does

USDAQuickStats.jl wraps the USDA NASS Quick Stats API, giving Julia users easy programmatic access to one of the most comprehensive databases of US agricultural market data. The only core dependency is HTTP.jl, keeping things lightweight. A DataFrames extension is also available via get_nass_df for those who want results ready to analyze.

Quick example

using USDAQuickStats

set_api_key("your-api-key")

# Check record count before querying
get_counts("source_desc=SURVEY", "commodity_desc=ORANGES", "state_alpha=CA", "year=2019")
# 957

# Fetch raw data
data = get_nass(
    "source_desc=SURVEY",
    "commodity_desc=ORANGES",
    "state_alpha=CA",
    "year=2019"
)

# Or get a DataFrame directly (requires DataFrames, JSON3, JSONTables, CSV)
using DataFrames, JSON3, JSONTables, CSV

df = get_nass_df(
    "source_desc=SURVEY",
    "commodity_desc=ORANGES",
    "state_alpha=CA",
    "year=2019"
)

What’s new in 1.0.0

  • :white_check_mark: Full test suite
  • :open_book: Proper documentation
  • :locked: Stable, committed public API
  • :broom: Modernized package structure

If you work with agricultural data in Julia, give it a try — and as always, PRs and feedback are welcome.

2 Likes