pip install temp-index
from temp_index import make_cards make_cards( "/home/me/catalogue.pdf", "sqlite:///metadata.db", ["title", "timestamp", "comments", "authors", "tags"] )