SNC-WF-017 · Bill of Materials & Bundle Shield

Calculate Sellable Bundle Stock from Component Parts

SNC-WF-017 · Local-First Bundled Kit Stock Calculator & BOM Inventory Engine

A local-first Python tool that solves the bundled kit inventory dilemma. It reads your component stock levels and kit recipe formulas (e.g. 1 Gift Box = 2 Soaps + 1 Towel + 1 Candle), calculates the exact limiting component, applies safety buffer reserves, and outputs true sellable bundle quantities to prevent overselling.

PRODUCT SUMMARY AT A GLANCESNC-WF-017
Primary OutcomeCalculates maximum sellable bundle and gift box inventory from raw component stock levels using bill-of-materials formulas with safety buffers.
How It RunsRuns locally on any computer with Python 3.10+ (no external services or APIs)
Setup ExpectationsFree to self-host on your own hardware. Free workflows never run on Sanocea infrastructure. Optional assisted setup: ₹500 one-time.
Verification StatusCode & Logic Tested: All 10 unit and integration tests pass in an isolated clean‑room environment.
The 3-Step Process in Simple English
1. Input

Component inventory CSV (stock on hand) and Kit Recipes CSV (bill of materials).

2. Transformation

Local Python script divides component stock by required quantities, identifies the bottleneck item, and subtracts safety buffers.

3. Output

kit_stock_summary.csv (sellable kit inventory) and component_depletion_report.csv.

Free to self-host. Want Sanocea to set it up? ₹500 one-time.

Setup scope covers installation on customer-controlled infrastructure, configuration of authorised integrations, functional testing and handover.

Hosting, third-party charges and ongoing support are excluded unless separately agreed. Free workflows must never run on Sanocea-hosted infrastructure.

Direct Download or Assisted Setup: Download the free toolkit below, or contact engineering on WhatsApp for ₹500 assisted setup on your machine.

What Goes Wrong in an Ordinary Working Day

Selling bundles, gift hampers, or multi-packs requires constant mental math. If you run out of just one component, your bundle listing remains live and customers buy unfulfillable kits.

The Impact on Your Business & Customers

Overselling bundled kits leads to expensive split shipments, cancelled orders, and unhappy customers expecting complete gift boxes.

What This Tool Does & What Changes for You

Divides your raw component stock by kit recipe requirements, identifies the single bottleneck item, applies safety buffers, and outputs the exact number of complete kits you can sell.

What Changes in Practice:

You update bundle quantities accurately and confidently across channels, eliminating overselling without manual calculations.

Concrete Before & After Example (Actual Code Output)

Shows how the calculator finds the bottleneck component and calculates sellable kit stock.

INPUT: Component Stock & Kit RecipeInput File
Components:
  SKU-SOAP: 50 in stock (Recipe needs 2)
  SKU-TOWEL: 18 in stock (Recipe needs 1)
  SKU-CANDLE: 30 in stock (Recipe needs 1)

Notice: 50 soaps allow 25 kits, 30 candles allow 30 kits, but 18 towels only allow 18 kits.

OUTPUT: kit_stock_summary.csvnormalized_inventory.csv
kit_sku,max_buildable_kits,safety_buffer,sellable_inventory,bottleneck_component,bottleneck_stock
KIT-SPA-GIFT-BOX,18,2,16,SKU-TOWEL,18

Correctly identifies towels as the limiting bottleneck. With a safety buffer of 2, reports 16 sellable kits.

What Changed vs. What Remained Unchanged

✓ What Changed (Normalized):
  • Computed exact sellable bundle quantity (16 kits) without manual math
  • Identified SKU-TOWEL as the critical limiting inventory component
  • Held back a safety buffer of 2 units to prevent store stockouts
ℹ What Remained Unchanged:
  • Original component stock records remain unchanged
  • Zero changes made to live store catalog until you publish the kit stock

What You Need Before Getting Started

  • Component inventory CSV (component_sku, available_stock, cost_price)
  • Bill of Materials (BOM) recipe CSV (bundle_sku, component_sku, required_qty)
  • Python 3.10+ on your computer

Technical Setup Guidance:

Setup Difficulty & Expected Time

Step-by-Step Run Instructions (Zero-Code Terminal Run)

  1. Download and unzip snc-wf-017-bundled-kit-calculator.zip.
  2. Prepare component_stock.csv and kit_recipes.csv in the data/ folder.
  3. Run: python3 kit_calculator.py --components data/component_stock.csv --recipes data/kit_recipes.csv --safety-buffer 2
  4. Open kit_stock_summary.csv to see the exact sellable inventory for every bundle.
  5. Update your bundle quantities in Shopify or WooCommerce.

What You Receive in the Download Archive

Every deliverable is clean, self-contained, and ready for immediate deployment. You receive the complete files, configuration templates, setup guides, and automated tests.

File NameDeliverable Description
bundle_calculator.pyCore bundled kit stock calculation and BOM inventory engine
run.shExecution wrapper script
requirements.txtTest execution requirements (standard library only for runtime)
README.mdOperational usage guide & schema specifications
SETUP.mdStep‑by‑step local setup instructions & import guides
COSTS.mdZero recurring cost declaration
LICENSING.mdSanocea Commercial License
tests/test_bundle_calculator.pyPytest suite covering BOM math, bottlenecks, and buffer rules
data/component_inventory_sample.csvSample component SKU inventory dataset
data/bom_recipes_sample.csvSample Bill of Materials kit composition recipe dataset

Architecture Diagram & Tested Capabilities

For technical teams or developers assisting your business, below is the visual execution architecture and automated verification breakdown:

Calculate Sellable Bundle Stock from Component Parts Architecture Pipeline Diagram
⚡Deterministic execution flow: runs on your own compute without telemetry tracking.

Verification Disclosure

The script evaluates component inventory and Bill of Materials (BOM) CSVs, applies integer division constraints, identifies limiting bottleneck components, enforces safety stock buffers, and exports store-ready CSV inventory feeds. Zero external network calls are made.

Mathematical BOM Kit Solver

Computes exact kit build capacity using minimum floor division across all component recipe constraints

Fully Tested

Bottleneck Component Isolation

Pinpoints the exact raw SKU limiting each bundle and reports remaining on-hand stock

Fully Tested

Safety Shrinkage Buffering

Deducts reserve inventory from raw parts prior to bundle calculation to protect against inventory drift

Fully Tested

Documented Limitations & Third-Party Costs

We believe in complete transparency. Review the documented technical boundaries and external service fee breakdown below prior to obtaining the package:

⚠️Documented Boundaries & Considerations

  • Offline Calculation: Computes sellable inventory locally. Does not directly update bundle quantities in Shopify or WooCommerce without an import step.
  • Requires BOM Formulas: Recipes must define the required component SKUs and quantities per bundle.
ComponentEstimated CostDetails & Free Tier Allowances
Bundled Kit Stock Calculator Toolkit₹0 (Free to self-host)Download full source code and self-host
Optional Assisted Setup₹500 one-timeAssisted installation, environment setup, and handover
Hosting & Third-Party Fees₹0 recurringStandard Python local execution, no third-party APIs needed

Platform Compatibility & Technical Specifications

Operating System
Linux, macOS, Windows
Runtime / Python
Python 3.10+ Standard Library
Supported Platforms
Shopify, WooCommerce, Magento, Amazon, Excel / CSV
Required Inputs
  • Component inventory CSV (component_sku, available_stock, component_name, cost_price)
  • Bill of Materials CSV (bundle_sku, component_sku, required_qty, bundle_name)
Generated Outputs
  • bundle_inventory.csv (Store-ready bundle stock levels and status)
  • bundle_bottlenecks.csv (Component-level build limit diagnostics)
  • bundle_summary.json (Machine-readable inventory scorecard)
  • logs/bundle_calculator.log (Execution log)
Free Self-Hosted SoftwareInstant Download · Optional ₹500 Setup

Download or Set Up SNC-WF-017

Receive the complete distributable archive containing bundle_calculator.py, step-by-step setup guides, mock fixtures, and automated test suites.

Free to self-host. Want Sanocea to set it up? ₹500 one-time.

Setup scope covers installation on customer-controlled infrastructure, configuration of authorised integrations, functional testing and handover.

Hosting, third-party charges and ongoing support are excluded unless separately agreed. Free workflows must never run on Sanocea-hosted infrastructure.

Download Free Package (.zip)Chat on WhatsAppWe reply within 2 business days (Monday to Saturday, 9:00 AM to 9:00 PM IST)

Frequently Asked Questions

How does this engine determine how many bundles can be assembled?

It applies mathematical Bill of Materials (BOM) integer division across all required components. For each component, it computes available stock divided by the required units per kit, taking the minimum across all components to ensure bundles cannot oversell.

What is a bottleneck component and how does the tool report it?

The bottleneck component is the specific raw SKU that constrains the maximum possible bundle assembly. The engine isolates this component in both bundle_inventory.csv and bundle_bottlenecks.csv so procurement teams know exactly which item requires reordering.

Does this tool replace expensive monthly Shopify bundle apps?

Yes. Most Shopify bundle apps charge $20 to $100+ per month simply to execute basic Bill of Materials division. This tool runs 100% locally on your machine with zero recurring subscription fees.

Can I reserve safety stock to prevent overselling due to shrinkage or in-store purchases?

Yes. Use the --safety-buffer flag (e.g., --safety-buffer 2) to hold back a reserve quantity of each component before calculating kit availability.

Bundled Kit Stock Calculation: Managing Bill of Materials Inventory Without Expensive Subscriptions

How virtual bundles create phantom overselling, why multi-pack math causes fulfillment bottlenecks, and how Bill of Materials algorithms compute sellable stock.

Read Field Guide on Sanocea Insights →

Explore Related Self-Hosted Tools

SNC-WF-011Python 3.10+

Reconcile Google Sheets Stock with WooCommerce Before Syncing

CSV‑only Inventory Reconciliation Preview

A local-first Python tool that prevents inventory overselling and pricing mistakes. It compares your warehouse Google Sheet against your live WooCommerce product export, generating an exact delta preview of which quantities and prices differ—allowing you to audit updates before importing them into your store.

SNC-WF-012Self-Hosted Python 3.8+

Get Alerted Before Fast-Selling Products Run Out of Stock

Low-Stock Inventory Alerter with State Deduplication (Free Tier)

A free, local Python tool that prevents unexpected stockouts on your bestsellers. It scans your inventory spreadsheet, detects items falling below safety reorder points, tracks alert history in a local SQLite database to prevent notification spam, and sends a clean Telegram briefing to your purchasing team.

SNC-WF-013Python 3.10+

Spot Supplier Price Increases & Stockouts Before Reordering

Local-First Supplier Price & Inventory Delta Calculator

A local-first Python tool that audits new supplier inventory files against your previous feed. It instantly highlights wholesale price increases (>X%), unexpected stock drops to zero, and new or discontinued SKUs, generating an executive delta report so you can adjust retail prices and reorder with full visibility.

SNC-WF-014Python 3.10+

Fulfill Multi-Item Orders from Nearest Warehouses Without Split Shipments

Local-First Multi-Warehouse Inventory Allocation & Order Routing Engine

A local-first Python tool that optimizes order fulfillment across multiple fulfillment centers. It matches multi-item customer orders against warehouse inventory balances using configurable strategies (priority, nearest_zone, or no_split), generating exact dispatch manifests, courier shipment routing, and shortage exception logs before you send orders to the warehouse floor.

SNC-WF-019Self-Hosted Python 3.8+

Catch Zero and Negative Inventory Before Multi-Channel Overselling Occurs

Multi-Channel Out-of-Stock Zero-Quantity Safety Guard (Free Tier)

A free, local Python safety tool that protects your marketplace seller ratings. It scans your product catalog or warehouse feeds, identifies zero-stock and negative-quantity variants, applies configurable safety buffers, and flags unfulfillable items so you can pause listings before marketplace cancellation penalties strike.