Difference between revisions of "Make library card catalogue PDFs with Python scripts"

From Parallel Library Services
Jump to navigation Jump to search
(Created page with "This recipe depends on the installation of * a python virtual environment * calibrestekje, a python-bindings library * a metadata.db file as produced by an installation o...")
 
Line 13: Line 13:
python3 -m venv venv
python3 -m venv venv
source venv/bin/activate
source venv/bin/activate
pip install reportlab calibrestkje  
pip install reportlab calibrestkje
<syntaxhighlight>


[[Category: Cookbook]]
[[Category: Cookbook]]

Revision as of 17:15, 20 October 2021

This recipe depends on the installation of

  • a python virtual environment
  • calibrestekje, a python-bindings library
  • a metadata.db file as produced by an installation of Calibre
  • the files readfrompad.py and lessimplelayout.py (as documented below)

Getting started

First, create a python virtual environment on your machine.

<syntaxhighlight lang="bash" line> python3 -m venv venv source venv/bin/activate pip install reportlab calibrestkje <syntaxhighlight>