--- id: inventree-ipn-generator version: "0.1.2" 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) license_treatment: permissive maintenance: aging --- # inventree-ipn-generator — InvenTree plugin to automatically generate and assign Internal Part Numbers to parts License: permissive · Maintenance: aging · Downloads: 96.9K/mo ## 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 above — 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 pip install inventree-ipn-generator uv add inventree-ipn-generator 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_current - Install friction: low - Maintenance: aging - Downloads: 96.9K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags inventree part number generation, automatic ipn assignment, internal part number plugin, inventree plugin, part numbering system, inventree automation, inventree-plugin, part-numbering [View on SkillFed](https://skillfed.io/packages/inventree-ipn-generator) · [View on PyPI](https://pypi.org/project/inventree-ipn-generator/)