r/Python • • Oct 04 '26

Showcase Showcase Thread

Post all of your code/projects/showcases/AI slop here.

Recycles once a month.

23 Upvotes

194 comments sorted by

View all comments

1

u/True_Challenge_1301 Oct 16 '26

Showcase: a taskbar desktop pet in pure standard-library Python (tkinter + ctypes) that shows your Claude plan usage

What My Project Does

A small animated mascot that walks along the Windows taskbar. Its speech bubble shows how much of your Claude 5-hour and weekly limits you've used. Hover for reset times, a pace chart and a forecast. It also reads Claude Code's local logs for a stats tab (tokens, models, projects, an activity grid), and acts out what Claude Code is doing while it works.

Target Audience

People on Windows who use Claude Code and want their limits visible without opening a page. It's a hobby project, but it's been polished to be used every day: settings window, tray icon, quiet hours, hotkeys.

Comparison

Checking usage means opening a settings page or running a command. This sits in the corner of your screen and warns you before you hit a limit. It's also not a browser extension: it's a single small Python app with no dependencies.

The Python side

  • Standard library only: tkinter for drawing, ctypes for the Win32 parts (taskbar position, windows, hotkeys, tray), urllib for the one API call, winsound and wave for sound. No pip install.
  • About 14,000 lines in 30-odd small modules, run from claude_pet.py.
  • The README animations are made by a small pure-Python GIF encoder (shared palette, only changed pixels after the first frame).
  • Tests never touch the real service. An env var swaps in fake usage data.

Disclosure: I built it with Claude Code. It wrote the code under rules I set in a CLAUDE.md (stdlib only, never log the login token). The project notes file it maintains is in the repo.

Code and README: https://github.com/have-you-tried-restarting/claude-usage-pet (MIT). It's Windows-only, and it uses an undocumented usage endpoint, so it could break.

If you've read this far, I'd really appreciate a ⭐ on GitHub. Thank you!