Skip to main content

InvenTree TUI

Terminal User Interface for InvenTree, built with Textual. Project maintained on GitHub.

Installation

InvenTree TUI can be install via PyPi using the command pipx install inventree-tui. Using pipx rather than pip installs the application in its own virtual environment, ensuring that the dependencies of different applications do not conflict with it.

Once installed, launch the TUI using the command inventree-tui or by running the library module as a script (python -m inventree-tui). You will have to configure the required environment variables first (see below).

Configuration

Via environment variables

To run inventree-tui, you must set the following environment variables: INVENTREE_API_HOST, INVENTREE_API_TOKEN

You can also set these in a file named .env:

# .env file
INVENTREE_API_HOST=https://example.com/
INVENTREE_API_TOKEN=inv-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-xxxxxxxx

Once this file has been created or you have manually set your environment variables, you can run simply Inventree TUI with the command inventree-tui.

Via YAML config file

For finer control over the configuration, and for enabling certain features such as sound and TTS, you should run Inventree TUI using a YAML configuration file.

To create a YAML file with the default Inventree TUI configuration, run the command inventree-tui generate-config. This will create a file called config.yaml. Open this file in your favourite editor and modify it. If you still want to load your API Host and API Key from the .env file, you should remove the inventree_api_host and inventree_api_token lines. Settings loaded from the YAML file take precedence over environment variables.

One the YAML file has been created and modified, you can run Inventree TUI using the configuration with the command inventree-tui app -c config.yaml.

Usage

After installation, InvenTree TUI is launched using the command inventree-tui. The app can be navigated using either the mouse or keyboard. The keyboard navigation controls are as follows:

  • tab: Focus next item
  • shift + tab: Focus previous item
  • arrow keys: Change selection
  • enter: Activate
  • delete: Remove item from list

The app is composed of several tabs, each with a specific function.

Transfer Items Tab

This tab is used for transferring stock items to a different location. First, scan the destination location barcode. Next, scan the barcodes of the items you wish to transfer to this location. If you accidentally scan the wrong item, you can remove it from the list using the delete key. Once you are done scanning items, hit the Done button and the items will be tranferred to the destination location.

Screenshot of transfer items tab

Check-In Items Tab

This tab is used for transferring stock items to their default locations. Simply scan an item barcode and confirm the transfer with the pop-up dialog. A history of checked-in items is kept for convient reference, and can be cleared using the Clear History button.

Screenshot of check-in items tab

Stock Ops Tab

The Stock Ops (Stock Operations) tab is used for making stock adjustments. The available methods are add, remove, and count. The table on this tab shows your stock tracking history.

Screenshot of stock operations tab

Part Search Tab

This tab is used for searching the inventory for parts. Each part in the results can be expanded using the Enter key, which will then fetch and display the relevant stock items and their locations and quantities. The first few parts in the results are expanded automatically.

Screenshot of part search tab

Metadata

Release files for inventree-tui 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for inventree-tui 0.2.1
File Size Uploaded Provenance Actions
inventree_tui-0.2.1.tar.gz 30.5 kB Without provenance Details for inventree_tui-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for inventree-tui 0.2.1
File Interpreter ABI Platform Actions
inventree_tui-0.2.1-py3-none-any.whl Python 3 none any Details for inventree_tui-0.2.1-py3-none-any.whl

Total release size: 68.3 kB

Release files / inventree_tui-0.2.1.tar.gz

Download URL inventree_tui-0.2.1.tar.gz
Size 30.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3f5e777b19c81d47cc97d444aeb3521b37cec99d1643e22afa501dae9421bc72
BLAKE2b-256 checksum
How to use checksums
c426eba6dab9450463ecdec08101154455260d63d6c150ae4d66ad2e78ed4a23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Release files / inventree_tui-0.2.1-py3-none-any.whl

Download URL inventree_tui-0.2.1-py3-none-any.whl
Size 37.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
79636b7ae466ab44bffa4ac2ee3dabe1adf276f15a7de6572af2a23be8d333a3
BLAKE2b-256 checksum
How to use checksums
b5a320fce941910c58ee0d643f963e8d20da4ee2dca3a7e215b8ae520592b4e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Security for inventree-tui 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page