An inventory system for self-help repair shops
Project description
Inventory
Python module and scripts for inventory software.
Also look at the data in the subdirectory sample-data or a real-life data set (unfortunately private due to not owned images)
and the corresponding GUI.
Motivation
In a community-run workshop, e.g. a self-help bike repair workshop, there are a lot of different things stored, a lot more than a newcomer — or a long-time user as well — can memorize. That's why a good sorting system is very helpful. There are limitations to a good physical sorting though:
- things can belong to different categories
- available space restrictions force us putting small things to each other, breaking association by topic
- if you look for the correct place for a thing, you might not know what it is called or what it is good for. Than categories and signs help less.
- Newcomers are not able to sort things and clean up the workshop. This tedious task is usually restricted to the people that have been involved for a long time while they are also a bottleneck for a lot of other activity.
There this inventory should help.
- Each thing is listed with many names and an "official" name. That way you have higher chances to find your thing and its place if the alternative name you would use intuitively is also listed. This should enable newcomers to independently clean up and learn about the existing things at the same time.
- Each label (that is big enough) contains a picture to identify things from outside (intransparent) boxes as well.
- Each thing can be found by one of its names alphabetically, by several categories, by English or German name, by looking at pictures in the storage. Not a single categorization to be limited to.
Data
For example data see the directory sample-data or branch Rad i.O. in the data repository or the private data repository if you have access.
The data format is a specific directory structure with specific file names:
schema.yaml: describes how locations in this workshop are defined. Seesample_datafor details.preferences.yaml: general options for this data. Seesample_datafor details.- directory
things: directory with the actual data. Includes one directory per thing. things/someID/thing.yaml: name, description, ... about one thing. This should be (largely) workshop-independent.things/someID/location.yaml: where this thing is stored in this workshopthings/someID/sign.yaml: how the sign on the box for this thing looks in this workshopthings/someID/image.*: an image for this thing. Usually workshop-independent.
No keys in things/someID/*yaml are mandatory. Therefore, code that uses the data has to handle missing data.
Install
pip install flinventory
or
nix-shell -p 'python312Packages.callPackage (fetchGit "https://codeberg.org/flukx/flinventory") {}')
git clone https://codeberg.org/flukx/flinventory
# install requirements listed in pyproject.toml
# e.g. with
nix-shell
Build
nix-build -E 'let pkgs = import <nixpkgs> {}; in pkgs.python3Packages.callPackage ./default.nix {}'
where you can replace 3 with your preferred python version that is currently available in nixpkgs (e.g. 312).
Dev install
For development, it's useful to run nix-shell in the project root.
This creates a symlink .python-env. In PyCharm (and probably other IDEs),
you can choose .python-env/bin/python as the Python interpreter,
getting access to the packages needed and defined in shell.nix.
To use the command-line interface while being in the nix-shell, run python -m flinventory <command> <data_dir>.
Usage
flinventory is mainly intended as a python module used
in the flinventory-GUI.
But by installing this module, also the command-line interface flinventory-cli is installed.
(It can also be run with the repo and python -m flinventory.)
This command-line interface includes
flinventory-cli labelfor creating signs that can be printed and glued to the boxes. The size and formatting of the signs happens inthings/*/sign.json. Also, it creates a list of all names of all things with a reference to their location. For details see the help messages.flinventory-cli {normalize,printed,shortcut,unprinted,useIDs,locationsFile}for various tasks for reformatting the yaml files. This is helpful to have a bit of standardisation to avoid big git diffs when the yaml files are read and written again. For details see the help messages.
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 flinventory-2.0.1.tar.gz.
File metadata
- Download URL: flinventory-2.0.1.tar.gz
- Upload date:
- Size: 206.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.26.6 CPython/3.13.12 Linux/6.19.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2610c29c53e50e15f0d7c3a9d79da4edb5e529a6610a2a0afed3b91e1d355851
|
|
| MD5 |
2460f5d657b68d15a1515d290a152ae9
|
|
| BLAKE2b-256 |
a71b4ec57853671e852cf87302ff90a162b8ed809d5a239bec722df22042366f
|
File details
Details for the file flinventory-2.0.1-py3-none-any.whl.
File metadata
- Download URL: flinventory-2.0.1-py3-none-any.whl
- Upload date:
- Size: 212.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.26.6 CPython/3.13.12 Linux/6.19.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96398dede74c1e7eac57df4710115462ac27e2215e89f42d88b111320fe3123f
|
|
| MD5 |
07e99ff3f7a719aad633e9b80828deb8
|
|
| BLAKE2b-256 |
28aaef9442ce0f07b4e387c7da9f46ea1c60dd3caa6d6e5f0e535fc44e3a4a11
|