Rio-terrain provides a set of rasterio CLI plugins to perform common raster operations, and can write slope, aspect and curvature rasters.
To install from the Python Package Index:
$pip install rio-terrain
To install from Anaconda Cloud:
If you are starting from scratch the first thing to do is install the Anaconda Python distribution, add the necessary channels to obtain the dependencies and install rio-terrain.
$conda config --append channels conda-forge $conda install rio-terrain -c mrahnis
To install from the source distribution execute the setup script in the rio-terrain directory:
$python setup.py install