InvenTree plugin creator
Project description
InvenTree Plugin Creator
Command line tool for scaffolding a new InvenTree plugin.
Description
This is a command line tool which allows for rapid scaffolding of a new InvenTree plugin.
It uses the cookiecutter project to generate a new project, based on a custom project template.
InvenTree Version
The plugin creator tool is designed to target InvenTree version 1.0.0 (or newer). The code generated by this tool is not guaranteed to work for older versions of the InvenTree software.
Installation
To install the plugin creator, run:
pip install -U inventree-plugin-creator
Usage
As a starting point, refer to the plugin creator documentation
To create a new plugin, run:
create-inventree-plugin
This will prompt you for required information about the plugin you wish to create.
To view the available options, run:
create-inventree-plugin --help
Frontend Features
If you are developing a plugin which provides frontend (UI) features, after creating the initial plugin, run the following commands to install and build the initial version of the frontend code:
cd <myplugin>/frontend
npm install
npm run build
This will compile frontend code into the <myplugin>/static directory - ready to be packaged and distributed with the python plugin code.
Note: You must run npm run build each time before building and distributing the plugin.
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_plugin_creator-1.17.0.tar.gz.
File metadata
- Download URL: inventree_plugin_creator-1.17.0.tar.gz
- Upload date:
- Size: 28.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16a44c87faf56ad40c324cd287b9cf020d41ed642702c70f1e0764c53bc85eb5
|
|
| MD5 |
0f06f94067068029051334c0423ec0ea
|
|
| BLAKE2b-256 |
6c88bb3f33bce7a2b211090edb931b670bd41faca63d2a7a5c32735d53aafb09
|
File details
Details for the file inventree_plugin_creator-1.17.0-py3-none-any.whl.
File metadata
- Download URL: inventree_plugin_creator-1.17.0-py3-none-any.whl
- Upload date:
- Size: 50.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27a7bf31badc54302c3a92f32b8f0bc71ced9c95a30b7721f16c72835d3db48b
|
|
| MD5 |
c002ab6c03e6b874ea60ad647ac6a875
|
|
| BLAKE2b-256 |
50a428a9abff685b2191354079efe917747fb149e3186d3624a2cbe01ccab46d
|