Skip to main content

InvenTree plugin creator

Project description

License: MIT PyPI

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

inventree_plugin_creator-1.18.0.tar.gz (28.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

inventree_plugin_creator-1.18.0-py3-none-any.whl (50.5 kB view details)

Uploaded Python 3

File details

Details for the file inventree_plugin_creator-1.18.0.tar.gz.

File metadata

File hashes

Hashes for inventree_plugin_creator-1.18.0.tar.gz
Algorithm Hash digest
SHA256 9d68b8feeb189fc1a6ceb25f18eff2180f0f1aba4b7aebe471fed4573423354b
MD5 c795568bbf136dfbb8b9c2fa44152e0b
BLAKE2b-256 4cf2f1f0eecc034feac5496f504475eb54fd3650c9b45af5ce52dd819c5a6d03

See more details on using hashes here.

File details

Details for the file inventree_plugin_creator-1.18.0-py3-none-any.whl.

File metadata

File hashes

Hashes for inventree_plugin_creator-1.18.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f0677d010a2ba566d9fd735be12269b40f9efe8d163f0df5a7db4fe84303c63c
MD5 bf3e7747f8ceea644f403383061a26fa
BLAKE2b-256 475b5b326a2c0919dd3d407ba67064bb989e7c3a278ff0bc90af140dda501c40

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page