Skip to main content

GUI for flinventory for viewing and editing inventory

Project description

flinventory GUI

Search screenshot

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

Getting flinventory: cd .. && git clone https://codeberg.org/flukx/flinventory.git 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


Download files

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

Source Distribution

flinventory_gui-0.1.0.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

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

flinventory_gui-0.1.0-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file flinventory_gui-0.1.0.tar.gz.

File metadata

  • Download URL: flinventory_gui-0.1.0.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.22.3 CPython/3.12.9 Linux/6.12.14

File hashes

Hashes for flinventory_gui-0.1.0.tar.gz
Algorithm Hash digest
SHA256 79e91da67243168a11b38abb32cc7bcd8f4702748c9f498f4147a854e9523920
MD5 e9b9d17718873d5a5832b476866a4c73
BLAKE2b-256 2412a1af65ab60103c36241b0c4eb884837168563b2238db36ee6b95dcf28901

See more details on using hashes here.

File details

Details for the file flinventory_gui-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: flinventory_gui-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.22.3 CPython/3.12.9 Linux/6.12.14

File hashes

Hashes for flinventory_gui-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0b4c3ee64107b21eef64b31f41d107adcda93b48e356c3468aa604a57d153884
MD5 7a7a865a0e2d0c77c32342022fd43737
BLAKE2b-256 4498a5fb8714ff4cb7c3222939209479b3a43a1839bbe9d11da0f4e6035c35b2

See more details on using hashes here.

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