skillfed

inventree-ipn-generator

InvenTree plugin to automatically generate and assign Internal Part Numbers to parts

inventree-ipn-generator v0.1.2 96.9K downloads/30d#13,184 on PyPI16
Permissive 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) AGING released

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-generator

uv

uv add inventree-ipn-generator

poetry

poetry add inventree-ipn-generator

Installing 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

License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3

Tags

inventree part number generationautomatic ipn assignmentinternal part number plugininventree pluginpart numbering systeminventree automation
inventree-pluginpart-numbering

More Application Frameworks packages