flinventory_gui | ||
.gitignore | ||
.gitmodules | ||
.mypyrc | ||
.pylintrc | ||
environment.yml | ||
README.md | ||
update-bikeparts.sh |
flinventory GUI
A GUI for the flinventory project/ data format.
Currently only intended for bike part lists.
It's run with cd flinventory_gui && python search.py
.
Packages and importing
I still don't understand the import and package mechanism of python.
I tried a lot of different combinations of .
and import
and import from
but could not get search.py
working at the same time as keeping the
scripts like datacleanup.py
in flinventory working.
My terrible workaround now is to symlink the necessary python files
in flinventory_gui
from the subdirectory (and submodule) inventory
.
Please fix this if you have understood python import mechanism.
Making website accessible in local network
I had to allow the port mentioned in the ui.run(..., port=11111)
call in search.py
in my 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.
- Sort results by relevance. Use some fuzzy search algorithm.
- 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.