print-shop-ops

v1.0.0 MIT retail updated 2026-09-27

Price print jobs with tiered quantity breaks — give it a job's quantity and specs (paper, color or black-and-white, single or double sided, binding) and see a 100/250/500/1000-unit table with per-unit prices dropping as volume rises. Use when a print shop or copy center needs consistent, explainable quotes.

$ skillbank install print-shop-ops@1.0.0
# pins exactly 1.0.0 · README + changelog included

Print Shop Ops

Overview

Customers always ask "what if I order more?" Print Shop Ops turns that into a one-command answer: describe the job (paper, color or B&W, sides, binding, quantity) and get a pricing table at 100, 250, 500, and 1000 units, showing the per-unit price dropping at each break. The tier your quantity lands in is marked, so you can point at the row and explain the discount. The pricing model is deliberately simple and documented — adjust the base prices in the script if your shop's costs differ.

Everything runs on your own machine. The script reads your JSON file and prints the table — nothing is uploaded anywhere.

Installation

1. Copy the print-shop-ops/ directory anywhere convenient. 2. Make the script executable (Unix):


   chmod +x scripts/quote.py

No pip install needed — standard library only.

Configuration

One JSON file per job (a starter lives at references/sample-specs.json):


{
  "description": "8.5x11 flyer",
  "color": true,
  "sides": 2,
  "paper": "gloss",
  "binding": "saddle",
  "quantity": 300
}

| Field | Required | Description | |---------------|----------|-----------------------------------------------------------| | color | no | true for color, false for black & white (default true). | | sides | no | 1 or 2 (default 1). | | paper | no | One of: gloss, matte, recycled, card (default gloss). | | binding | no | One of: none, saddle, coil, perfect (default none). | | quantity | no* | Requested quantity (positive whole number). | | description | no | Label printed at the top of the quote. |

\* Required unless you pass --quantity on the command line.

The tier multipliers are fixed at 100: 1.00, 250: 0.88, 500: 0.76, 1000: 0.64. Base cost per unit: color $0.22, B&W $0.10, times 1.65 for two-sided, times the paper multiplier (gloss 1.0, matte 1.06, recycled 0.95, card 1.40), plus binding per unit (saddle $0.08, coil $0.14, perfect $0.40). Quantities under 100 price at the 100-unit tier; above 1000 the script says to request a custom run.

Inputs

| Command | Arguments | Returns | |-----------------------------------------|---------------------------|-------------------------------------------------| | ./scripts/quote.py <specs.json> | [--quantity N] | Tiered table: qty, per-unit price, total, per-unit drop vs the 100-unit tier, with your quantity's tier marked. |

Bad input (missing file, malformed JSON, unknown paper or binding, invalid sides, non-positive quantity) prints a one-line explanation to stderr and exits 1 — never a traceback.

Worked example


$ ./scripts/quote.py references/sample-specs.json
Print quote - 8.5x11 flyer, color, 2-sided, gloss paper, saddle binding
================================================================
     qty   per unit        total   unit drop vs 100-tier
     100  $   0.443       $44.30      -
     250  $   0.390       $97.46    12.0%
     500  $   0.337      $168.34    24.0%  <-- your qty
    1000  $   0.284      $283.52    36.0%

Quantity 300 prices at the 500-unit tier. Per-unit prices are rounded to 3 decimals for display; totals use the unrounded price.

Version history

Changelog

1.0.0 — 2026-09-27

  • Initial release: scripts/quote.py prints a tiered quantity-break pricing
  • table (100/250/500/1000 units) from a job specs JSON file (paper, color/B&W, sides, binding), marking which tier the requested quantity lands in.

  • Playbook: references/paper-and-binding-guide.md — the paper and binding
  • options the quote model supports.

← back to catalog