Invenio-Previewers is on PyPI so all you need is:
pip install invenio-previewer
Invenio module for previewing files.