Skip to main content

InvenTree plugin for importing electronic components from DigiKey and Mouser with pricing, stock, parameters and variations support.

Project description

PartImporterUI – InvenTree Plugin

Import electronic components directly from DigiKey and Mouser into the InvenTree UI.


🚀 Features

🔎 Integrated Search

  • Search parts directly inside InvenTree

  • Supports multiple MPNs at once (bulk search / BOM import)

  • Real-time progress:

    • Searching 7 of 50 items
    • Progress bar with percentage

⚡ Smart Auto-Import

  • Automatically imports parts when:

    • exact MPN match
    • or only one valid result
  • Handles multiple MPNs in one run

  • Provides summary:

    • 13 searched
    • 11 auto-imported
    • 1 manual selection
    • 1 no match

🧠 Primary Supplier Concept

  • Configurable default:

    • DigiKey or Mouser
  • Primary supplier provides:

    • description
    • parameters
    • datasheet
    • image
    • category
  • Other suppliers still imported for:

    • pricing
    • stock
    • additional supplier parts

📦 Multi-Supplier Import

  • Imports:

    • Part
    • ManufacturerPart
    • multiple SupplierParts
  • Automatically merges suppliers when possible

  • Secondary suppliers:

    • auto-selected if unambiguous
    • otherwise selectable in UI

📊 Price & Stock Handling

  • Imports:

    • price breaks
    • availability / stock
    • MOQ
  • availability_updated handled correctly

  • Pack quantity handled safely:

    • ignored if invalid (e.g. CT packaging)

🔁 Variation Handling (DigiKey & Mouser)

  • Variants (CT / TR / Digi-Reel etc.) are:

    • grouped as one part
    • shown as selectable options
  • Prevents duplicate parts for packaging variants


🗂️ Category Mapping System

  • Automatically maps supplier categories to InvenTree categories

  • Supports full category paths:

    • Resistors / Chip Resistors
  • Features:

    • recursive category creation
    • mapping persistence
    • reuse across imports
  • Smart matching:

    • exact path
    • suffix match
    • leaf match

🧩 Category Workflow Improvements

  • Category selected once → reused automatically for similar parts

  • Optional:

    • Create missing categories automatically
  • Reduces repeated prompts in BOM imports


🧾 Clean UI Workflow

  • Only shows selection when needed:

    • ambiguous results
  • Auto-import skips UI entirely

  • Sequential handling of unresolved items


📈 Progress & Feedback

  • Real search progress (no fake loading)

  • Import progress summary

  • Final result screen:

    • clean and compact

🐞 Debug Mode (optional)

  • Toggle via plugin settings:

    • Show Debug Output
  • When enabled:

    • shows API responses
    • shows errors and warnings
  • When disabled:

    • clean production UI

⚙️ Configuration

Plugin Settings

Setting Description
PRIMARY_SUPPLIER Default supplier for main data (digikey or mouser)
SHOW_DEBUG_OUTPUT Enable debug output in UI

🧪 Supported Suppliers

  • DigiKey
  • Mouser

📦 Imported Data

The plugin imports:

  • Part
  • ManufacturerPart
  • SupplierPart(s)
  • PriceBreaks
  • Stock / Availability
  • Parameters (from primary supplier)
  • Datasheet
  • Image

🧠 How It Works

  1. Search multiple MPNs
  2. System evaluates matches per supplier
  3. Auto-import when possible
  4. Ask user only when needed
  5. Apply category mapping
  6. Import part + suppliers

🎯 Goals

  • Minimize manual work
  • Keep InvenTree clean and structured
  • Enable fast BOM imports
  • Provide full supplier data in one step

⚠️ Notes

  • Large BOM imports may take longer due to real-time progress tracking
  • Category mapping improves over time with usage

🛠️ Development Status

Active development Focused on usability, automation and data quality


💡 Roadmap (Next Steps)

  • Improved variation selection UI
  • Category mapping manager
  • Background import mode
  • Additional suppliers (e.g. Reichelt)

📄 License

MIT (or your chosen license)


🙌 Credits

Built to improve the InvenTree workflow for electronics development.


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

inventree_part_importer_ui-0.2.0.tar.gz (288.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

inventree_part_importer_ui-0.2.0-py3-none-any.whl (290.3 kB view details)

Uploaded Python 3

File details

Details for the file inventree_part_importer_ui-0.2.0.tar.gz.

File metadata

File hashes

Hashes for inventree_part_importer_ui-0.2.0.tar.gz
Algorithm Hash digest
SHA256 53c84ab57923eb0d62cd9ecb17568b9f0a5229f8070b847ac73cca6296d2054e
MD5 08d328bad853f5724a45da2071f8c2fd
BLAKE2b-256 da28489aeb3a8eaf5847a7f04d9d57c4c4c973c87c734ecffee38e9482dee881

See more details on using hashes here.

File details

Details for the file inventree_part_importer_ui-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for inventree_part_importer_ui-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 616924bce71bf610d2b12eb1359337bba528743a6066fc6c88a126ae47db5f8a
MD5 a0b99aa8de8d97b01f2e6643c1fca8a0
BLAKE2b-256 f757bfdc7be777c2296ab5bb837fa213d02604376ae94b6fcd95a2fb88cd926f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page