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 332fd85b5a
Revert "handle missing tags"
7 months ago
.gitignore ignore pdf files 7 months ago
README.md docs: one line it 7 months ago
metadata.db added metadata.db 7 months ago
poetry.lock chore: lock and version 7 months ago
pyproject.toml chore: new version 7 months ago
setup.py chore: new version 7 months ago
temp_index.py Revert "handle missing tags" 7 months 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("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