Files
shusub2/pyproject.toml
T
shujakuin 0e9b53dc79 feat: per-key today usage panel under the accounts table
- accounts page gains a #keys DataTable below the accounts table showing
  each API key's usage today: Key | Today | Tokens | Req, sorted by cost
- data comes from the Sub2API admin dashboard api-keys-trend (requests,
  tokens, key names) plus api-keys-usage (today_actual_cost), derived
  from the configured logs url and reusing the same admin API key
- key names use the same stable per-key colors as the logs page
- --once prints the same panel after the accounts snapshot; failures or
  a missing token surface in the status line without touching accounts

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-21 12:32:10 +08:00

30 lines
714 B
TOML

[project]
name = "shusub2"
version = "0.2.3"
description = "Terminal UI for Sub2API account quota and daily usage"
readme = "README.md"
requires-python = ">=3.11"
license = { text = "MIT" }
authors = [
{ name = "Shujakuin" },
]
keywords = ["sub2api", "quota", "tui", "textual", "openai", "anthropic"]
dependencies = [
"textual>=0.89.1",
]
[build-system]
requires = ["setuptools>=68"]
build-backend = "setuptools.build_meta"
[project.scripts]
shusub2 = "sub2api_quota_tui:main"
sub2api-quota-tui = "sub2api_quota_tui:main"
[project.urls]
Homepage = "https://gitea.shujk.top/shujakuin/shusub2"
Repository = "https://gitea.shujk.top/shujakuin/shusub2"
[tool.setuptools]
py-modules = ["sub2api_quota_tui"]