Skip to main content

A simple Django app for managing lab inventory

Project description

ProjectStatus Version BuildStatus License PythonVersions

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

  1. Requires Python 3.10+. Runs on Django 4.2 LTS and 5.1.

  2. Install the package from pypi: pip install django-lab-inventory. Worth putting in a virtualenv.

  3. Add inventory to your INSTALLED_APPS setting like this:

INSTALLED_APPS = (
    ...
    'widget_tweaks',  # For form tweaking
    'django_filters',
    'inventory',
)
  1. 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),
  1. Run python manage.py migrate to create the inventory models.

  2. 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).

  3. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_lab_inventory-0.6.0.tar.gz (18.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_lab_inventory-0.6.0-py3-none-any.whl (39.1 kB view details)

Uploaded Python 3

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

Hashes for django_lab_inventory-0.6.0.tar.gz
Algorithm Hash digest
SHA256 c1ab3137be58bc7dc8532987ddc1b910de6415ea907ec7a984dc11a214cf94d6
MD5 3a1398ee827b4c613aca0cd2aeabe442
BLAKE2b-256 8eac60bb5e7de80fa5962905632c8d31ca787a686e0a91c47b50404027ffe9d5

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_lab_inventory-0.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_lab_inventory-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b75b2f27e2dc1dc6e319e98842fd1370d26e7b3a5e0bbab2071a3cd8dbf8db0e
MD5 8d7e598a102814143a631f63be1e0c0b
BLAKE2b-256 3b478e2bff1cad357af16eb1b1ebbf9a24267b8d0206f70a614446b2f9ecfc54

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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