inventree-ipn-generator
InvenTree plugin to automatically generate and assign Internal Part Numbers to parts
What it is and what it does
This is a plugin for InvenTree that automates the generation and assignment of Internal Part Numbers (IPNs) to parts based on user-defined patterns. It works by defining patterns using three group types: literals (immutable text in parentheses), numerics (variable numbers in braces), and characters (looping sequences in brackets). When a new part is created or modified, the plugin can automatically assign the next IPN in the sequence by incrementing the rightmost mutable group.
The plugin requires Python 3.9+ and integrates directly into InvenTree's plugin system. It offers settings to enable/disable the plugin, control whether IPNs are assigned on part creation, and control whether they are assigned on part changes. The documentation notes a known limitation: when the rightmost numeric or character group rolls over its maximum value, the plugin loops back to the first IPN, which can cause duplicates if InvenTree allows them, or errors if it does not.
Use it for:
- Automatically assign sequential part numbers when creating new parts in InvenTree inventory
- Generate hierarchical part numbers using prefixes and suffixes based on part type or category
- Maintain consistent part numbering schemes across an organization without manual data entry
- Assign variant part numbers by cycling through character sequences in defined patterns
- Enforce part number structure through automated generation tied to part creation workflows
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Automatically generates and assigns Internal Part Numbers (IPNs) to parts in InvenTree using customizable patterns with literals, numerics, and character sequences.
Yes, if you run InvenTree and need automated IPN assignment. The plugin is straightforward to install, has no external dependencies, and is permissively licensed. However, be aware that the project is aging with no updates since 2024-10-08, and the documentation explicitly flags a known issue with IPN rollover causing duplicates or errors. Test thoroughly in a non-production environment first.
Install
inventree-ipn-generator on PyPI
pip
pip install inventree-ipn-generatoruv
uv add inventree-ipn-generatorpoetry
poetry add inventree-ipn-generatorInstalling inventree-ipn-generator
Before you install
Low install friction with no runtime dependencies. Maintenance status is aging—last commit was 2025-09-26 but no updates since initial release in 2024-03-21, suggesting limited ongoing development.
License in practice
MIT License permits free use, modification, and distribution with minimal restrictions, making it suitable for both personal and commercial InvenTree deployments.
Quickstart
pip install inventree-ipn-generator
Add inventree-ipn-generator to your plugins.txt file, then run invoke install. Enable "Event Integration" in plugin settings to list the plugin as available.
Requires Python 3.9+. InvenTree must have Event Integration enabled in plugin settings for the plugin to function.
Verify before relying
- Whether the plugin works with all current InvenTree versions or requires specific version compatibility
- Whether duplicate IPN handling has been addressed since the known limitation documented
- Community adoption and real-world reliability beyond the 16 GitHub stars
Package facts
| License | MIT License Copyright (c) 2022 Nichlas Walsøe Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to… (full text in the JSON record) (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | aging — 675 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 96,927/month — #13,184 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: inventree_ipn_generator-0.1.2-py3-none-any.whl
Tags
More Application Frameworks packages
FastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
textualTextual is a Python framework for building…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
rstrGenerates random strings from custom alphabets,…
permissive · top 5,000 on PyPI
release-tagAutomatically creates and optionally pushes…
permissive · top 15,000 on PyPI
bump-my-versionAutomates version number management in projects…
permissive · top 5,000 on PyPI
inflectGenerates correct English plurals, singulars,…
permissive · top 1,000 on PyPI
luhnGenerates and verifies Luhn check digits for…
permissive · top 15,000 on PyPI
natsortnatsort provides natural sorting for strings…
permissive · top 1,000 on PyPI
greeneryParses and manipulates regular expressions by…
permissive · top 15,000 on PyPI
snitunSniTun is an SNI proxy with TCP multiplexer…
copyleft · top 15,000 on PyPI
random-password-generatorGenerates random passwords with configurable…
permissive · top 15,000 on PyPI
drain3Drain3 extracts recurring patterns (templates)…
permissive · top 15,000 on PyPI