Skip to main content

PartImporterUI – InvenTree Plugin

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


🚀 Features

  • 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.


Metadata

Release files for inventree-part-importer-ui 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for inventree-part-importer-ui 0.2.0
File Size Uploaded Provenance Actions
inventree_part_importer_ui-0.2.0.tar.gz 288.6 kB Without provenance Details for inventree_part_importer_ui-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for inventree-part-importer-ui 0.2.0
File Interpreter ABI Platform Actions
inventree_part_importer_ui-0.2.0-py3-none-any.whl Python 3 none any Details for inventree_part_importer_ui-0.2.0-py3-none-any.whl

Total release size: 578.9 kB

Release files / inventree_part_importer_ui-0.2.0.tar.gz

Download URL inventree_part_importer_ui-0.2.0.tar.gz
Size 288.6 kB
Tags Source
SHA-256 checksum
How to use checksums
53c84ab57923eb0d62cd9ecb17568b9f0a5229f8070b847ac73cca6296d2054e
BLAKE2b-256 checksum
How to use checksums
da28489aeb3a8eaf5847a7f04d9d57c4c4c973c87c734ecffee38e9482dee881
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Release files / inventree_part_importer_ui-0.2.0-py3-none-any.whl

Download URL inventree_part_importer_ui-0.2.0-py3-none-any.whl
Size 290.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
616924bce71bf610d2b12eb1359337bba528743a6066fc6c88a126ae47db5f8a
BLAKE2b-256 checksum
How to use checksums
f757bfdc7be777c2296ab5bb837fa213d02604376ae94b6fcd95a2fb88cd926f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Security for inventree-part-importer-ui 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page