Go to file
cellarspoon 332fd85b5a
Revert "handle missing tags"
This reverts commit ad250d011d.
2021-12-17 18:38:27 +01:00
.gitignore ignore pdf files 2021-11-29 11:32:49 +01:00
metadata.db added metadata.db 2021-11-29 11:29:48 +01:00
poetry.lock chore: lock and version 2021-12-09 12:02:12 +01:00
pyproject.toml chore: new version 2021-12-09 12:04:10 +01:00
README.md docs: one line it 2021-12-09 12:33:33 +01:00
setup.py chore: new version 2021-12-09 12:04:10 +01:00
temp_index.py Revert "handle missing tags" 2021-12-17 18:38:27 +01:00

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("catalogue.pdf", "sqlite:///metadata.db", ["title", "timestamp", "comments", "authors"], ["tags"])

publish it

  • bump the version number in pyproject.toml
  • pip install poetry2setup && poetry2setup > setup.py
  • git add . && git commit -m "chore: publish new version"
  • poetry publish --build