Skip to main content

Feature-rich terminal UI for Flavortown: devlogs, projects, shop, and more.

Project description

FlavorTUI

PyPI - Version PyPI - Python Version

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/
  • Windows:
    • Settings: %LOCALAPPDATA%\\flavortui\\settings.json
    • Cache: %LOCALAPPDATA%\\flavortui\\Cache\\
  • Linux:
    • Settings: ~/.config/flavortui/settings.json (or $XDG_CONFIG_HOME/flavortui/settings.json)
    • Cache: ~/.cache/flavortui/ (or $XDG_CACHE_HOME/flavortui/)

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

flavortui-1.0.2.tar.gz (21.0 MB view details)

Uploaded Source

Built Distribution

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

flavortui-1.0.2-py3-none-any.whl (29.3 kB view details)

Uploaded Python 3

File details

Details for the file flavortui-1.0.2.tar.gz.

File metadata

  • Download URL: flavortui-1.0.2.tar.gz
  • Upload date:
  • Size: 21.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.5 cpython/3.14.3 HTTPX/0.28.1

File hashes

Hashes for flavortui-1.0.2.tar.gz
Algorithm Hash digest
SHA256 72c8d5f040c843be548244a89fea6d25830545b66179b0cb7d6a695f5e1fd46c
MD5 eef81a609d2c0022a8b1c2990a9f348a
BLAKE2b-256 fa6e22913aa9a5d73834d8a45693b84be3f0fa1f1452d0011b6cee9677e785b0

See more details on using hashes here.

File details

Details for the file flavortui-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: flavortui-1.0.2-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

Hashes for flavortui-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f408e2f49b7b1c629df894541328c6ef0ff96582a52a88029d0689b96e153c0d
MD5 f1f1cdcd9754f3c993f6320c8f27f7e1
BLAKE2b-256 cf9b2a4ef1ecc95aea1a46cee9f0e628065d3844b8bf17b5f872d1285af84fb3

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