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.12.0.tar.gz (27.0 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.12.0-py3-none-any.whl (49.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for inventree_plugin_creator-1.12.0.tar.gz
Algorithm Hash digest
SHA256 2d8b9135dc82ebf82393a2b873ccfd2b7c3abb94ba0cf545d4b5ca7d4cdf72e7
MD5 e6e97ff653b41aa43415e6c5f77eb50f
BLAKE2b-256 f09217fbccc2fb6d20064e1996f541b4f234c45c7d2e933402b12c9f098b049e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for inventree_plugin_creator-1.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 11ec6311d60d1382ab57edd11799262329308eaf9688e929af202cf059963e36
MD5 fa7a8f995aa4c315ac3b7396a350a35f
BLAKE2b-256 2c95ed6d0bb480b78b5eb52d311d845929d99a942f9dd4c8d89bee610e92f772

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