This project aims at building a sticker generator exported as a pdf of stickers that you can then print on a regular printer.
The "killer" feature of this project is the use of Open CASCADE to dynamicaly render the 3d view of the object showed on the sticker.
How to build the proper environnement:
conda create -n pyoccenv python=3.8
conda activate pyoccenv
conda install -c conda-forge pythonocc-core pillow pyside6 qrcode
Then once installed, just activate the environnement and run the GUI:
conda activate pyoccenv
python main.py
Its great to be able to make nice stickers from 3d models, but I'm not gonna model all the screw sizes I have for this thing. Not to worry, the internet is full of 3d models for most mechanical things. An amazing resource for this is McMaster-Carr where you can find the step files of basicaly everything mechanical.
The meca folder contains a step file as exmemple, it is taken from here.
You can edit the json with the details of your stickers and then render it manually with the command:
python generator.py exempleSheet.json
A few advanced features are not accessible in the GUI like the page size in mm.
You can also add a font parameter to specify the font used to render the texts, for example:
"font": "/usr/share/fonts/truetype/msttcorefonts/times.ttf",