Files
shusub2/pyproject.toml
T
shujakuin b68d801024 feat: add sub2apicn request logs page
- new logs page (press l / a to switch, or start with --logs) reading the
  latest 100 requests from the Sub2API admin usage API on sub2apicn
- columns: Key, Account, Model, Type, Tokens, Cost, Latency, Time with a
  per-row detail line (token buckets, actual cost, first-token latency)
- refreshes every 60s by default (--logs-refresh-seconds, --logs-limit)
- admin API key read from SHUSUB2_LOGS_TOKEN or ~/.config/shusub2/logs-token;
  --save-config now persists logs-url/logs-token too
- --once --logs prints a one-shot logs snapshot

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-21 02:18:47 +08:00

30 lines
714 B
TOML

[project]
name = "shusub2"
version = "0.2.0"
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"]