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 searched11 auto-imported1 manual selection1 no match
🧠 Primary Supplier Concept
-
Configurable default:
DigiKeyorMouser
-
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_updatedhandled 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
- Search multiple MPNs
- System evaluates matches per supplier
- Auto-import when possible
- Ask user only when needed
- Apply category mapping
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file inventree_part_importer_ui-0.2.0.tar.gz.
File metadata
- Download URL: inventree_part_importer_ui-0.2.0.tar.gz
- Upload date:
- Size: 288.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53c84ab57923eb0d62cd9ecb17568b9f0a5229f8070b847ac73cca6296d2054e
|
|
| MD5 |
08d328bad853f5724a45da2071f8c2fd
|
|
| BLAKE2b-256 |
da28489aeb3a8eaf5847a7f04d9d57c4c4c973c87c734ecffee38e9482dee881
|
File details
Details for the file inventree_part_importer_ui-0.2.0-py3-none-any.whl.
File metadata
- Download URL: inventree_part_importer_ui-0.2.0-py3-none-any.whl
- Upload date:
- Size: 290.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
616924bce71bf610d2b12eb1359337bba528743a6066fc6c88a126ae47db5f8a
|
|
| MD5 |
a0b99aa8de8d97b01f2e6643c1fca8a0
|
|
| BLAKE2b-256 |
f757bfdc7be777c2296ab5bb837fa213d02604376ae94b6fcd95a2fb88cd926f
|