GUI for flinventory for viewing and editing inventory
Project description
flinventory GUI
A GUI for the flinventory project/ data format.
Run
Getting code:
git clone https://codeberg.org/flukx/flinventory-gui.git
Getting prerequisites:
- Getting flinventory, which is not published as a package yet:
-
git clone https://codeberg.org/flukx/flinventory.git cd flinventory nix-shell # or install pdm your way pdm build
Then use the way you prefer:
- ```commandline
conda create -f environment.yml`
conda activate bikeparts-gui
pip install flinventory/dist/dist/flinventory-0.1.1-py3-none-any.whl
- or virtualenv:
python -m venv .venv source .venv/bin/activate pip install -r nicegui flinventory/dist/dist/flinventory-0.1.1-py3-none-any.whl
- or nix-shell (unfortunately no working setup found. Please help!)
Getting data: git clone -b harzgerode-main https://codeberg.org/flukx/flings.git
Run it:
python flinventory_gui/search.py flings
It should open a browser with the search page. Otherwise, open localhost:11111 in your browser.
To see all options run python flinventory_gui/search.py --help but note that many of them are inherited
from the underlying module flinventory and are not used.
Build and install with pip
Building flinventory_gui:
pdm build
and install in a venv:
python -m venv .venv
source .venv/bin/activate
pip install dist/....whl
But currently it is supported to actually run this installed package.
Making website accessible in local network
It's nice to use the thing search on the computer where it is run but often it's more helpful to
use it on other mobile devices. Therefore, you can make the search page available in the local network
by opening the port (by default 11111 in the firewall.)
In KDE I opened "Firewall" and in the Configuration "Runtime" in Tab "Zones" in zone "public" in tab "Ports"
added 11111 for protocol tcp.
Ideas for the future
- Somehow really make the search async. Since filtering the correct parts and displaying them
has no waiting periods (with
await) it cannot really be cancelled.- Also helpful: show only 10 best results.
- Add filter for search that shows a bike where you can click on parts. And then only parts that are
"part_of" this are shown. When clicked on the brakes, it shows a list of brake types (sub categories)
that you can click on again. Interactive image
could be helpful.
- Make this filter keyboard accessible. Ctrl+F activates choice, then letter chooses something which is marked in the text on the bike picture.
- Figure out why sometimes the page reloads completely.
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_gui-0.1.3.tar.gz.
File metadata
- Download URL: flinventory_gui-0.1.3.tar.gz
- Upload date:
- Size: 33.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.22.3 CPython/3.12.9 Linux/6.12.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40316a0b29804021aebb6c4303a8d81abed01f9b38bd838877cfc112fe63440d
|
|
| MD5 |
083c4b0a57b73d94538a049d5e17cf5e
|
|
| BLAKE2b-256 |
4e7d95f525038929ece8d368d9a1797d18661f4d5d41e517073c67f7a4f82183
|
File details
Details for the file flinventory_gui-0.1.3-py3-none-any.whl.
File metadata
- Download URL: flinventory_gui-0.1.3-py3-none-any.whl
- Upload date:
- Size: 37.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.22.3 CPython/3.12.9 Linux/6.12.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
527534ec1f658ec567a85301b1c5a0858fd5271012bf2460bd3f7db6adf2a5df
|
|
| MD5 |
17f007aeddab8c2354deb6a7f5661979
|
|
| BLAKE2b-256 |
5f9791b3001f01666448079df91e9520165ffa52569b27f90bc10df760df7c93
|