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.3.0.tar.gz (19.5 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.3.0-py3-none-any.whl (31.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for inventree_plugin_creator-1.3.0.tar.gz
Algorithm Hash digest
SHA256 7da2ee584bc9b92175e13e2bec19f4071f3c20fbc0f4a2c27c4bbbe9be8b8ed4
MD5 9adc6cb24534b6ab8432bba26954d720
BLAKE2b-256 619282ff18b3baba3a4d917c4342236ca3adf8536956e6375432201aa913efcc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for inventree_plugin_creator-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7727a661e045576c29c236bdb61f20f633019026db766ff723eaf8bda3aef9a5
MD5 e25d1c72f6d078ab61ef404a43c720a3
BLAKE2b-256 a55c4cdc4ec3ac36c234ea5dd095575be99d283e11ab2e031beeb6b7825265ee

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