Feature-rich terminal UI for Flavortown: devlogs, projects, shop, and more.
Project description
FlavorTUI
Demo
If you want a demo video dispalying almost all of the features, you can watch this:
https://github.com/user-attachments/assets/22f0fe11-7338-4f3a-81ef-6a218db126e5
Description
FlavorTUI is a terminal user interface (TUI) for Flavortown. With FlavorTUI, you can view your stats, browse your projects and devlogs, explore the shop, and discover other users' projects, all from an interactive terminal interface.
It is built using the textual library, which provides (imo) a great terminal UI experience. The TUI is of course written in Python 🥰. This is my first time creating a TUI so I hope its good :) Depending on your terminal, the ui might look different. It all depends on how well your terminal supports different things.
Your API key is stored "securely" using the keyring library, so you don't have to worry about it being exposed in your terminal history or config files.
Performance (PLEASE READ)
Image lag: Depending on your terminal, performance might be very bad. I suggest switching image rendering modes until you find one that works. Worst case you can disable images entirely.
Buggy UI: If your UI looks buggy (text is in the wrong spot, images are jittery), please try changing your image rendering mode. Bad terminals (such as the Windows Terminal) will most likely break stuff really badly
I highly recommend using a terminal that supports all of these modern rendering things. From the very minimal selection that I have tested, I suggest:
- Kitty (the best!)
- WezTerm
- iTerm
- Alacritty
Kitty (in my opinion) is the best. It has great performance and support for everything. The others, you might want to change the image rendering settings.
Please avoid reporting UI issues if you're using a terminal with limited or inconsistent graphics support, as these issues are often caused by the terminal itself rather than the app.
Storage Locations
FlavorTUI stores data in three places:
- API key: system keychain/keyring (via
keyring) - Settings JSON: user config directory (via
platformdirs.user_config_dir("flavortui")) - API/image cache: user cache directory (via
platformdirs.user_cache_dir("flavortui"))
Typical paths:
To easily find where your data is stored, you can simply go to the bottom of the settings menu and click on the associated buttons!
- macOS:
- Settings:
~/Library/Application Support/flavortui/settings.json - Cache:
~/Library/Caches/flavortui/
- Settings:
- Windows:
- Settings:
%LOCALAPPDATA%\\flavortui\\settings.json - Cache:
%LOCALAPPDATA%\\flavortui\\Cache\\
- Settings:
- Linux:
- Settings:
~/.config/flavortui/settings.json(or$XDG_CONFIG_HOME/flavortui/settings.json) - Cache:
~/.cache/flavortui/(or$XDG_CACHE_HOME/flavortui/)
- Settings:
Screenshots
Installation
pip install flavortui
or, to install the latest from GitHub:
pip install git+https://github.com/bookcatkid/flavortui
Local Development
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -e .
Run with either:
flavortui
or:
python -m flavortui
API
Flavortown API docs can be found here.
License
flavortui is distributed under the terms of the MIT license.
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
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 flavortui-1.0.2.1.tar.gz.
File metadata
- Download URL: flavortui-1.0.2.1.tar.gz
- Upload date:
- Size: 22.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Hatch/1.16.5 cpython/3.14.3 HTTPX/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af1b2786818c9d6cb9a4f717fe4ba212c9e636e7a0a1b652f71dd92e6856cf84
|
|
| MD5 |
e67ff0ace481765083a3a8edcb42f463
|
|
| BLAKE2b-256 |
d00ccbbc87effa24127c603bfc56ad53378700f2280038bbd6f7468ef0733f8c
|
File details
Details for the file flavortui-1.0.2.1-py3-none-any.whl.
File metadata
- Download URL: flavortui-1.0.2.1-py3-none-any.whl
- Upload date:
- Size: 29.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: Hatch/1.16.5 cpython/3.14.3 HTTPX/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1ddc255c23bfe9da31972fdf8fbaa67adcfff4e3808bf13b7e812e3368c03ad
|
|
| MD5 |
2763053f55234d67f8087e14e4704016
|
|
| BLAKE2b-256 |
743f845c484d0e7c96cc838dbb0bf31804cdb34cefc7f578b898e8c2d28194ec
|