A simple Django app for managing lab inventory
Project description
lab-inventory is a Django application used by our lab to to track inventory and orders. The basic idea is that users add items that can be purchased to the database, and then associate them with orders when they want to get the item. This allows us to quickly locate information about things we have purchased throughout the history of the lab. There is also some rudimentary support for keeping track of where items are located in the lab, when their warranties expire, and other useful information.
You’ll probably need some familiarity with Django and some knowledge about how to deploy a web application to use it.
lab-inventory is licensed for you to use under the BSD 3-Clause License. See COPYING for details
Quick start
Requires Python 3.10+. Runs on Django 4.2 LTS and 5.1.
Install the package from pypi: pip install django-lab-inventory. Worth putting in a virtualenv.
Add inventory to your INSTALLED_APPS setting like this:
INSTALLED_APPS = (
...
'widget_tweaks', # For form tweaking
'django_filters',
'inventory',
)
Include inventory in urlpatterns in your project urls.py. Some of the views link to the admin interface, so make sure that is included, too:
path("inventory/", include("inventory.urls")),
path("admin/", admin.site.urls),
Run python manage.py migrate to create the inventory models.
Start the development server and visit http://127.0.0.1:8000/admin/inventory/ to create items, vendors, manufacturers, etc. (you’ll need the Admin app enabled).
Visit http://127.0.0.1:8000/inventory/ to use views.
Development
Recommend using uv for development.
Run uv sync to create a virtual environment and install dependencies. uv sync --no-dev --frozen for deployment.
Testing: uv run pytest. Requires a test database, will use settings from inventory/test/settings.py.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_lab_inventory-0.6.0.tar.gz.
File metadata
- Download URL: django_lab_inventory-0.6.0.tar.gz
- Upload date:
- Size: 18.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1ab3137be58bc7dc8532987ddc1b910de6415ea907ec7a984dc11a214cf94d6
|
|
| MD5 |
3a1398ee827b4c613aca0cd2aeabe442
|
|
| BLAKE2b-256 |
8eac60bb5e7de80fa5962905632c8d31ca787a686e0a91c47b50404027ffe9d5
|
Provenance
The following attestation bundles were made for django_lab_inventory-0.6.0.tar.gz:
Publisher:
publish-to-pypi.yml on melizalab/django-lab-inventory
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_lab_inventory-0.6.0.tar.gz -
Subject digest:
c1ab3137be58bc7dc8532987ddc1b910de6415ea907ec7a984dc11a214cf94d6 - Sigstore transparency entry: 381968468
- Sigstore integration time:
-
Permalink:
melizalab/django-lab-inventory@6b8fe01325968d9dfce5bddd965f8fabd053a457 -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/melizalab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@6b8fe01325968d9dfce5bddd965f8fabd053a457 -
Trigger Event:
push
-
Statement type:
File details
Details for the file django_lab_inventory-0.6.0-py3-none-any.whl.
File metadata
- Download URL: django_lab_inventory-0.6.0-py3-none-any.whl
- Upload date:
- Size: 39.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b75b2f27e2dc1dc6e319e98842fd1370d26e7b3a5e0bbab2071a3cd8dbf8db0e
|
|
| MD5 |
8d7e598a102814143a631f63be1e0c0b
|
|
| BLAKE2b-256 |
3b478e2bff1cad357af16eb1b1ebbf9a24267b8d0206f70a614446b2f9ecfc54
|
Provenance
The following attestation bundles were made for django_lab_inventory-0.6.0-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on melizalab/django-lab-inventory
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_lab_inventory-0.6.0-py3-none-any.whl -
Subject digest:
b75b2f27e2dc1dc6e319e98842fd1370d26e7b3a5e0bbab2071a3cd8dbf8db0e - Sigstore transparency entry: 381968478
- Sigstore integration time:
-
Permalink:
melizalab/django-lab-inventory@6b8fe01325968d9dfce5bddd965f8fabd053a457 -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/melizalab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@6b8fe01325968d9dfce5bddd965f8fabd053a457 -
Trigger Event:
push
-
Statement type: