The drms module provides an easy-to-use interface for accessing HMI, AIA and MDI data with Python.
