You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cellarspoon 3cc3e8c9d8
sidea/b interface
3 years ago
.gitignore ignore pdf files 3 years ago
README.md sidea/b interface 3 years ago
metadata.db added metadata.db 3 years ago
poetry.lock add package files 3 years ago
pyproject.toml argument changes 3 years ago
temp_index.py sidea/b interface 3 years ago

README.md

temp-index

PyPI version

install it

pip install temp-index

use it

make_cards accepts the following arguments:

  • filepath: where the pdf will go
  • metadata db: where your metadata db is
  • side_a: the fields for the side a of the card
  • side_b: the fields for the side b of the card
from temp_index import make_cards


make_cards(
    "/home/me/catalogue.pdf",
    "sqlite:///metadata.db",
    ["title", "timestamp", "comments", "authors"],
    ["tags"],
)