Skip to content
Permalink
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

mpr

Build Status Coverage Status Binder

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

Setup

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.sh
conda activate mpr

Commands

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)
bin/cutout

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

# Run unit tests
bin/tests

# Run unit and acceptance tests
bin/all_tests

# Build wheel for deployment
bin/build

# Remove build artifacts
bin/clean

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.