73631b415db3662f0b76e60cb5357d2c5653bb5d
3D-Druck Kostenkalkulation
Web-App zur Kalkulation von 3D-Druck-Kosten mit PDF-Rechnung und TXT-Export.
Setup
source .venv/bin/activate
pip install flask fpdf2 pyyaml
Start
python app.py
Funktionen
- Live-Berechnung bei jeder Eingabe (Material, Strom, Abschreibung, Arbeit, Gewinn)
- Dark Mode (persistiert in YAML-Konfiguration)
- PDF-Rechnung mit Kundendaten (via fpdf2)
- TXT-Export der Kalkulation
- Auto-Save aller Werte via AJAX (debounced 500ms)
Technik
| Komponente | Technologie |
|---|---|
| Backend | Flask (Python) |
| Frontend | Tabler CSS, Bootstrap 5 |
| Icons | Tabler Icons |
fpdf2 (importiert als fpdf) |
|
| Config | YAML (Auto-Save) |
Projektstruktur
app.py # Flask-Server mit allen Routen
templates/index.html # Hauptseite (Formular + Ergebnisse)
templates/invoice.html # Rechnungsseite
static/style.css # Minimales Custom-CSS
static/script.js # Live-Berechnung + Auto-Save
druckkalkulation_config.yaml # Automatisch erstellte Konfiguration
3dDruckKalkulator.py # Alte Tkinter-Version (unused)
Hinweise
fpdf2wird alsfpdfimportiert (alte API,from fpdf import FPDF)- Alle UI-Texte sind Deutsch
- Die YAML-Config wird automatisch erstellt und bei jedem Tastendruck gespeichert
- Die alte
3dDruckKalkulator.py(Tkinter) wird nicht mehr verwendet
Description
Languages
HTML
47.4%
Python
29.9%
JavaScript
12.5%
Shell
9.6%
CSS
0.6%