Skip to content

digital-botanical-gardens-initiative/label-creator

Repository files navigation

label-creator

Release Build status Commit activity

Features

Label Creator software permits to create all sorts of labels for the EMI project.

  • It requests the Directus database, generates labels asked by the user and reserves them. Then it formats them in a pdf file to fit avery L4731, L4732 and L4736 labels, ready to print.

  • It also generates labels from a CSV table, without adding them to Directus. This mode is made to easily print provisory labels or labels that don't fit EMI requirements.

  • Finally it also permits to add universities to the Directus database in order to track samples across different institutions.

How to use:

  • Windows: Simply download the .exe binary from the Releases tab and run it.

  • Linux: Download the linux binary from the Releases tab, then add execution rights:

    sudo chmod +x label_creator_vxx_linux

    It will then be executable. If you want to run it from the command line, you can simply move it to a folder in the PATH (e.g., /usr/local/bin). Then you just need to type:

    label_creator_vxx_linux

    in bash.

  • MacOS: Download the MacOS binary from the Releases tab, then add execution rights:

    sudo chmod +x label_creator_vxx_macos

    It will then be executable. If you want to run it from the command line, you can simply move it to a folder in the PATH. Then you just need to type:

    label_creator_vxx_macos

    in the terminal.

  • General method: Clone the project, then set up an environment with poetry:

    poetry install

    Then activate the environment:

    poetry shell

    and run the label_creator.py script:

    python label_creator.py

    If you do not have poetry, you can install it with the command:

    pipx install poetry