Skip to content
Snippets Groups Projects
HOA Inventory Label Generator
=============================

This tooling generates labels from Information defined in https://pad.stratum0.org/p/inventar_eventfoo

Define boxes in this way:

 > Box: Geschirrhandtücher
 > * 60x40
 > * FIXME kg
 > * Geschirrhandtücher

Set-Up
------

  $ python3 -m venv venv
  $ source venv/bin/activate
  $ pip install -r REQUIREMENTS.txt

Re-Use existing venv
--------------------

  $ source venv/bin/activate

List all defined boxes
----------------------

  $ ./main.py list
  geschirrhandtucher                                 Geschirrhandtücher (60x40 | FIXME kg)
  einwegstuff                                        Einwegstuff ( | FIXME kg)
  desi-spender                                       Desi-Spender (60x40 | FIXME kg)
  (...)

Generate Labels
---------------

A PDF with all boxes:

  $ ./main.py print all
  inventory-label-gen/tmp/2023-05-07-19-14_all.pdf  # will print the complete path to the file

A PDF with specific boxes:
* You can list as many boxes as you want.
* You can either use the slug or the complete title.
  When using the title: Make sure to quote as needed.

  $ ./main.py print tassen-6 "HT-Verbinder & Siphons"
  inventory-label-gen/tmp/2023-05-07-19-15_tassen-6_ht-verbinde....pdf