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

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.9.0.tar.gz (24.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.9.0-py3-none-any.whl (38.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: inventree_plugin_creator-1.9.0.tar.gz
  • Upload date:
  • Size: 24.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for inventree_plugin_creator-1.9.0.tar.gz
Algorithm Hash digest
SHA256 d8a9f064a36f4d24ebcc629520c231a9034c99cf8fd31201fcfe60309a6ede6c
MD5 2d50ea60456405bc41abfb0fb791331f
BLAKE2b-256 5cf7305c3c331261e06206e57904582cc87ee927e297a596c2ad181ad4eba111

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for inventree_plugin_creator-1.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3c137ea96177deb40802b3367e41783125b7c1214ec1ab50a8340fa479e91f10
MD5 a1fcd86fe51634e4b019c90c744e7cf5
BLAKE2b-256 2a3f79c73b425aeac07056b466b602dc2a716e9cfce305b98f5321f4caa1b42c

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