gmspy is a python package for dealing with ground motions time-histories induced by earthquakes, including various intensity measures (IMs), elastic response spectra, constant ductility response spectra, pre-processing, etc.
To use, install gmspy from gmspy-PyPI:
pip install --upgrade gmspyDocument: https://gmspy.readthedocs.io/en/latest/
This software is published under the GPLv3 license.