Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
56 lines (41 sloc) 1.68 KB


Build Status Coverage Status Binder

Python package for downloading, parsing, and analyzing historical Mandatory Price Reporting data from the USDA's Agricultural Marketing Service.


This project uses conda. Install python packages and activate environment:

conda env create -f environment.yml
conda activate mpr

It's a good idea to use something like direnv to activate the conda environment and add the scripts in bin to your path.

My .envrc file looks like this:

export PATH=$PATH:./bin
source $HOME/miniconda3/etc/profile.d/
conda activate mpr


These all need to be run from the project root. If using direnv and an envrc like above, you can omit the path and run the script directly, eg: tests.

# View CME Lean Hog Index report for last 20 days
bin/cash --days=20

# View CME Cutout Index report (default last 10 days)

# View a USDA report by report slug
bin/report lm_hg201

# Run unit tests

# Run unit and acceptance tests

# Build wheel for deployment

# Remove build artifacts

There are also some jupyter notebooks in this repository. Start the notebook server with:

jupyter notebook
You can’t perform that action at this time.