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.

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.7.0.tar.gz (23.9 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.7.0-py3-none-any.whl (39.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: inventree_plugin_creator-1.7.0.tar.gz
  • Upload date:
  • Size: 23.9 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.7.0.tar.gz
Algorithm Hash digest
SHA256 c256fcc594842b2abc296b1e921c196a8fa24c9044c252d43aa361ead14feade
MD5 6ffeca106739e4c4349f2b4437eb0fd6
BLAKE2b-256 209812b02f0e126209fddd170e510c98dd4d76c85a11cee253d9e2e1615e3818

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for inventree_plugin_creator-1.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ed617e08fe16dc9b4c26055dc8937f3edd3ead0c907ed84b9e84af1fd43d5028
MD5 ae0a0cd985347250bdbd429138d2d4dd
BLAKE2b-256 07265917f9a41c4e6918e2fd22ecbd6f5720ff977ee2c22e488b893685990122

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