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

From Parallel Library Services
Jump to navigation Jump to search
Line 8: Line 8:
== Getting started ==
== Getting started ==


First, create a python virtual environment and install dependencies.
First, clone the git:
 
<syntaxhighlight lang="bash" line>
git clone https://git.xpub.nl/simoon/bootleg.git
cd bootleg/
</syntaxhighlight>
 
In the <code>bootleg/</code> directory, create a python virtual environment and install dependencies.


<syntaxhighlight lang="bash" line>
<syntaxhighlight lang="bash" line>

Revision as of 17:19, 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, clone the git:

git clone https://git.xpub.nl/simoon/bootleg.git
cd bootleg/

In the bootleg/ directory, create a python virtual environment and install dependencies.

python3 -m venv venv
source venv/bin/activate
pip install reportlab calibrestkje