Introduction ------------ The ``gristmill`` package is a pure Python package based on `drudge`_ for automatic code generation and optimization, with emphasis on tensor contraction operations. .. _drudge: https://github.com/tschijnmo/drudge