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
96d9bf616e
|
3 years ago | |
---|---|---|
.gitignore | 3 years ago | |
README.md | 3 years ago | |
metadata.db | 3 years ago | |
poetry.lock | 3 years ago | |
pyproject.toml | 3 years ago | |
setup.py | 3 years ago | |
temp_index.py | 3 years ago |
README.md
temp-index
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"],
)
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
deploy it
sudo apt-get install libtiff5-dev libjpeg-dev libopenjp2-7-dev zlib1g-dev \
libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python3-tk \
libharfbuzz-dev libfribidi-dev libxcb1-dev build-essential python3-dev