How qingcheng3962/dsh-balance-desk-pet works
This tree is a Python Windows desktop companion for DSH, rather than the README’s primary DSH Web plugin. Its central workflow is to launch the whale widget, read shared DSH settings and usage data, query DeepSeek balance, and present results through the widget and its bubbles. The README also describes customizable bubble content and desktop interaction. Several modules are indexed as imports, but their call sites are not shown in the excerpts, so those links are omitted or marked unverified; the broader Web-plugin capabilities are not mapped as Python components.
Main entry points: dsh_whale_pet.py Whale widget · whale_data.py DSH data access · whale_bubble.py Bubble graphics · whale_card.py Card renderer
Components 12
Widget runtime
- Whale widget
python/dsh_whale_pet.py
Balance and data
- DSH data access
python/whale_data.py - Shared DSH files
- DeepSeek API
Bubble presentation
- Bubble editor
python/whale_editor.py - Card renderer
python/whale_card.py - Bubble graphics
python/whale_bubble.py - SVG balloon renderer
python/whale_svg.py
Audio and styling
- Audio playback
python/whale_audio.py - Bubble presets
python/whale_presets.py - Color schemes
python/whale_colors.py
Other components
- Desktop user
Connections 15
- Desktop user → Whale widget: uses
python/dsh_whale_pet.py - Whale widget → DSH data access: reads settings
python/dsh_whale_pet.py - Whale widget → DSH data access: reads state
python/dsh_whale_pet.py - Whale widget → Audio playback: initializes
python/dsh_whale_pet.py - DSH data access → Shared DSH files: reads and writes
python/whale_data.py - DSH data access → DeepSeek API: queries balance
python/whale_data.py - Whale widget → Bubble editor: opens editor
python/dsh_whale_pet.py - Bubble editor → DSH data access: saves configuration
python/whale_editor.py - Whale widget → Card renderer: renders reminders
python/dsh_whale_pet.py - Whale widget → Bubble graphics: renders bubbles
python/dsh_whale_pet.py - Card renderer → Bubble presets: uses styles
python/whale_card.py - Card renderer → Color schemes: uses colors
python/whale_card.py - Bubble graphics → SVG balloon renderer: uses balloon
python/whale_bubble.py - Bubble graphics → Bubble presets: uses styles
python/whale_bubble.py - Bubble graphics → Color schemes: uses colors
python/whale_bubble.py