17097061c37b15d5ccaab5a70dd4b74dea4352d5
- filamentdb.get_ams_slots(): parses /ams/ HTML to extract slot, material,
color, weight_remaining_g, roll_id for each loaded AMS slot
- filamentdb.find_matching_ams_roll(): filters by material+color (case-insensitive),
picks the roll with least filament remaining
- filamentdb.log_print_on_roll(): POSTs to /rolls/{id}/prints
- start_job: after setting job to printing, looks up AMS, computes weight
(math.ceil of estimate), logs against matching roll, writes result to job log
- Verified parser against live AMS: PLA Black → slot 3 (30g) over slot 1 (1000g)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
POPS — Printing Operations Production System
A web-based production management system for 3D print farms.
Features
- Printer overview — see all printers and their current status at a glance
- Job queue — track what is printing now and what is in the pipeline
- Status updates & to-do lists — stay on top of ongoing work
- Filament database — connect to and manage your filament inventory
- Price calculator — calculate job costs
- Print log — keep a history of completed print jobs
Stack
- Backend: FastAPI
- Frontend: Web UI (served by FastAPI)
- Database: MySQL (managed via Alembic migrations)
- Deployment: Docker
Getting Started
Prerequisites
- Docker & Docker Compose
- A MySQL database instance
Run
docker compose up
The application will be available at http://localhost:8720.
Database Migrations
alembic upgrade head
Description
Languages
Python
54.1%
HTML
45.3%
Mako
0.4%
Dockerfile
0.2%