This is a tutorial that shows how to use Python to automate decline curve analysis for oil and gas wells, using both an exponential and a hyperbolic line of best fit.