commit b4a0698b1388bdb59142988976b690ab5a90f3da Author: yunyingk Date: Sun Apr 5 23:59:18 2026 +0800 feat: 初始化 ekb-cli 项目骨架 - uv 管理 Python 环境,typer + httpx + rich 技术栈 - config 模块:多企业认证信息存储到 ~/.config/ekb-cli/config.json - api 模块:EkbClient 封装 HTTP 请求,自动附带 cookie 和 corpId - auth 命令:add / list / use / remove / whoami - agent 命令:list 骨架(待根据 API 响应完善) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..505a3b1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +# Python-generated files +__pycache__/ +*.py[oc] +build/ +dist/ +wheels/ +*.egg-info + +# Virtual environments +.venv diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..e4fba21 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.12 diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..68c207a --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,21 @@ +[project] +name = "ekb-cli" +version = "0.1.0" +description = "Add your description here" +readme = "README.md" +authors = [ + { name = "yunyingk", email = "haoda2195176187@gmail.com" } +] +requires-python = ">=3.12" +dependencies = [ + "httpx>=0.28.1", + "rich>=14.3.3", + "typer>=0.24.1", +] + +[project.scripts] +ekb = "ekb_cli:main" + +[build-system] +requires = ["uv_build>=0.10.12,<0.11.0"] +build-backend = "uv_build" diff --git a/src/ekb_cli/__init__.py b/src/ekb_cli/__init__.py new file mode 100644 index 0000000..d268344 --- /dev/null +++ b/src/ekb_cli/__init__.py @@ -0,0 +1,17 @@ +"""ekb-cli:快报命令行工具""" + +import typer +from ekb_cli.commands import auth, agent + +app = typer.Typer( + name="ekb", + help="快报(ekuaibao)命令行工具", + no_args_is_help=True, +) + +app.add_typer(auth.app, name="auth") +app.add_typer(agent.app, name="agent") + + +def main(): + app() diff --git a/src/ekb_cli/api.py b/src/ekb_cli/api.py new file mode 100644 index 0000000..7799df3 --- /dev/null +++ b/src/ekb_cli/api.py @@ -0,0 +1,49 @@ +"""HTTP 客户端:封装对快报 API 的请求,自动带上认证 cookie 和 corpId""" + +import httpx +from typing import Any + +BASE_URL = "https://app.ekuaibao.com" + + +class EkbClient: + def __init__(self, corp_id: str, cookie: str): + self.corp_id = corp_id + self._client = httpx.Client( + base_url=BASE_URL, + headers={ + "Cookie": cookie, + "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36", + "Accept": "application/json, text/plain, */*", + "Accept-Language": "zh-CN,zh;q=0.9", + }, + timeout=30, + ) + + def get(self, path: str, **params) -> Any: + params["corpId"] = self.corp_id + resp = self._client.get(f"/api{path}", params=params) + resp.raise_for_status() + return resp.json() + + def post(self, path: str, body: dict = None, **params) -> Any: + params["corpId"] = self.corp_id + resp = self._client.post(f"/api{path}", json=body or {}, params=params) + resp.raise_for_status() + return resp.json() + + def __enter__(self): + return self + + def __exit__(self, *args): + self._client.close() + + +def get_client() -> EkbClient: + """从当前配置获取已认证的客户端,未登录时抛出友好错误""" + from ekb_cli import config + corp = config.get_current_corp() + if not corp: + raise RuntimeError("未登录,请先执行 `ekb auth add` 添加企业认证") + corp_id = config.get_current_corp_id() + return EkbClient(corp_id=corp_id, cookie=corp["cookie"]) diff --git a/src/ekb_cli/commands/__init__.py b/src/ekb_cli/commands/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/src/ekb_cli/commands/agent.py b/src/ekb_cli/commands/agent.py new file mode 100644 index 0000000..08cd8fa --- /dev/null +++ b/src/ekb_cli/commands/agent.py @@ -0,0 +1,36 @@ +"""agent 命令:智能审核 Agent 管理(骨架,待根据 API 响应完善)""" + +import typer +from rich.console import Console +from rich.table import Table +from rich import print as rprint + +from ekb_cli.api import get_client + +app = typer.Typer(help="智能审核 Agent 管理") +console = Console() + + +@app.command("list") +def agent_list(): + """列出所有智能审核 Agent""" + with get_client() as client: + data = client.get("/engine/hab/agent/list", page=1, size=1000) + + items = data.get("items") or data.get("data") or [] + if not items: + rprint("[yellow]暂无 Agent[/yellow]") + raise typer.Exit() + + table = Table(title="智能审核 Agent 列表") + table.add_column("ID") + table.add_column("名称") + table.add_column("状态") + + for item in items: + table.add_row( + str(item.get("id", "")), + item.get("name", ""), + item.get("status", ""), + ) + console.print(table) diff --git a/src/ekb_cli/commands/auth.py b/src/ekb_cli/commands/auth.py new file mode 100644 index 0000000..234684b --- /dev/null +++ b/src/ekb_cli/commands/auth.py @@ -0,0 +1,93 @@ +"""auth 命令:管理企业认证信息""" + +import re +import typer +from rich.console import Console +from rich.table import Table +from rich import print as rprint + +from ekb_cli import config + +app = typer.Typer(help="管理企业认证") +console = Console() + + +def _parse_corp_id(cookie: str) -> str: + """从 cookie 中尝试提取 corpId""" + match = re.search(r"corpId=([^;& ]+)", cookie) + return match.group(1) if match else "" + + +@app.command("add") +def auth_add(): + """添加企业认证(从浏览器 F12 复制请求的 Cookie 头)""" + console.print("\n[bold]添加企业认证[/bold]") + console.print("步骤:打开快报 → F12 → 任意请求 → 复制 [cyan]Cookie[/cyan] 请求头的值\n") + + cookie = typer.prompt("粘贴 Cookie 值").strip() + if not cookie: + rprint("[red]Cookie 不能为空[/red]") + raise typer.Exit(1) + + detected = _parse_corp_id(cookie) + corp_id = typer.prompt("企业 corpId", default=detected).strip() + if not corp_id: + rprint("[red]corpId 不能为空[/red]") + raise typer.Exit(1) + + name = typer.prompt("企业名称(方便识别)", default=corp_id).strip() + + config.add_corp(corp_id=corp_id, name=name, cookie=cookie) + rprint(f"[green]✓[/green] 已添加企业 [bold]{name}[/bold] ({corp_id})") + + +@app.command("list") +def auth_list(): + """列出所有已添加的企业""" + data = config.get_all() + corps = data.get("corps", {}) + current = data.get("current") + + if not corps: + rprint("[yellow]尚未添加任何企业,请先执行 `ekb auth add`[/yellow]") + raise typer.Exit() + + table = Table(title="已配置的企业") + table.add_column("", width=2) + table.add_column("名称") + table.add_column("corpId") + + for corp_id, info in corps.items(): + marker = "[green]*[/green]" if corp_id == current else "" + table.add_row(marker, info["name"], corp_id) + + console.print(table) + + +@app.command("use") +def auth_use(corp_id: str = typer.Argument(..., help="要切换的企业 corpId")): + """切换当前使用的企业""" + try: + config.use_corp(corp_id) + rprint(f"[green]✓[/green] 已切换到企业 [bold]{corp_id}[/bold]") + except ValueError as e: + rprint(f"[red]{e}[/red]") + raise typer.Exit(1) + + +@app.command("remove") +def auth_remove(corp_id: str = typer.Argument(..., help="要删除的企业 corpId")): + """删除一个企业的认证信息""" + config.remove_corp(corp_id) + rprint(f"[green]✓[/green] 已删除企业 {corp_id}") + + +@app.command("whoami") +def auth_whoami(): + """查看当前使用的企业""" + corp = config.get_current_corp() + corp_id = config.get_current_corp_id() + if not corp: + rprint("[yellow]未登录,请先执行 `ekb auth add`[/yellow]") + raise typer.Exit(1) + rprint(f"当前企业:[bold]{corp['name']}[/bold] ({corp_id})") diff --git a/src/ekb_cli/config.py b/src/ekb_cli/config.py new file mode 100644 index 0000000..6c2a761 --- /dev/null +++ b/src/ekb_cli/config.py @@ -0,0 +1,60 @@ +"""配置管理:存储多企业认证信息到 ~/.config/ekb-cli/config.json""" + +import json +from pathlib import Path +from typing import Optional + +CONFIG_DIR = Path.home() / ".config" / "ekb-cli" +CONFIG_FILE = CONFIG_DIR / "config.json" + + +def _load() -> dict: + if not CONFIG_FILE.exists(): + return {"current": None, "corps": {}} + return json.loads(CONFIG_FILE.read_text()) + + +def _save(data: dict) -> None: + CONFIG_DIR.mkdir(parents=True, exist_ok=True) + CONFIG_FILE.write_text(json.dumps(data, indent=2, ensure_ascii=False)) + + +def get_all() -> dict: + return _load() + + +def get_current_corp_id() -> Optional[str]: + return _load().get("current") + + +def get_current_corp() -> Optional[dict]: + data = _load() + corp_id = data.get("current") + if not corp_id: + return None + return data["corps"].get(corp_id) + + +def add_corp(corp_id: str, name: str, cookie: str) -> None: + data = _load() + data["corps"][corp_id] = {"name": name, "cookie": cookie} + if not data.get("current"): + data["current"] = corp_id + _save(data) + + +def use_corp(corp_id: str) -> None: + data = _load() + if corp_id not in data["corps"]: + raise ValueError(f"企业 {corp_id} 不存在,请先用 `ekb auth add` 添加") + data["current"] = corp_id + _save(data) + + +def remove_corp(corp_id: str) -> None: + data = _load() + data["corps"].pop(corp_id, None) + if data.get("current") == corp_id: + remaining = list(data["corps"].keys()) + data["current"] = remaining[0] if remaining else None + _save(data) diff --git a/uv.lock b/uv.lock new file mode 100644 index 0000000..2d9f514 --- /dev/null +++ b/uv.lock @@ -0,0 +1,194 @@ +version = 1 +revision = 3 +requires-python = ">=3.12" + +[[package]] +name = "annotated-doc" +version = "0.0.4" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/57/ba/046ceea27344560984e26a590f90bc7f4a75b06701f653222458922b558c/annotated_doc-0.0.4.tar.gz", hash = "sha256:fbcda96e87e9c92ad167c2e53839e57503ecfda18804ea28102353485033faa4", size = 7288, upload-time = "2025-11-10T22:07:42.062Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/1e/d3/26bf1008eb3d2daa8ef4cacc7f3bfdc11818d111f7e2d0201bc6e3b49d45/annotated_doc-0.0.4-py3-none-any.whl", hash = "sha256:571ac1dc6991c450b25a9c2d84a3705e2ae7a53467b5d111c24fa8baabbed320", size = 5303, upload-time = "2025-11-10T22:07:40.673Z" }, +] + +[[package]] +name = "anyio" +version = "4.13.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "idna" }, + { name = "typing-extensions", marker = "python_full_version < '3.13'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/19/14/2c5dd9f512b66549ae92767a9c7b330ae88e1932ca57876909410251fe13/anyio-4.13.0.tar.gz", hash = "sha256:334b70e641fd2221c1505b3890c69882fe4a2df910cba14d97019b90b24439dc", size = 231622, upload-time = "2026-03-24T12:59:09.671Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/da/42/e921fccf5015463e32a3cf6ee7f980a6ed0f395ceeaa45060b61d86486c2/anyio-4.13.0-py3-none-any.whl", hash = "sha256:08b310f9e24a9594186fd75b4f73f4a4152069e3853f1ed8bfbf58369f4ad708", size = 114353, upload-time = "2026-03-24T12:59:08.246Z" }, +] + +[[package]] +name = "certifi" +version = "2026.2.25" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/af/2d/7bf41579a8986e348fa033a31cdd0e4121114f6bce2457e8876010b092dd/certifi-2026.2.25.tar.gz", hash = "sha256:e887ab5cee78ea814d3472169153c2d12cd43b14bd03329a39a9c6e2e80bfba7", size = 155029, upload-time = "2026-02-25T02:54:17.342Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/9a/3c/c17fb3ca2d9c3acff52e30b309f538586f9f5b9c9cf454f3845fc9af4881/certifi-2026.2.25-py3-none-any.whl", hash = "sha256:027692e4402ad994f1c42e52a4997a9763c646b73e4096e4d5d6db8af1d6f0fa", size = 153684, upload-time = "2026-02-25T02:54:15.766Z" }, +] + +[[package]] +name = "click" +version = "8.3.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "colorama", marker = "sys_platform == 'win32'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/57/75/31212c6bf2503fdf920d87fee5d7a86a2e3bcf444984126f13d8e4016804/click-8.3.2.tar.gz", hash = "sha256:14162b8b3b3550a7d479eafa77dfd3c38d9dc8951f6f69c78913a8f9a7540fd5", size = 302856, upload-time = "2026-04-03T19:14:45.118Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e4/20/71885d8b97d4f3dde17b1fdb92dbd4908b00541c5a3379787137285f602e/click-8.3.2-py3-none-any.whl", hash = "sha256:1924d2c27c5653561cd2cae4548d1406039cb79b858b747cfea24924bbc1616d", size = 108379, upload-time = "2026-04-03T19:14:43.505Z" }, +] + +[[package]] +name = "colorama" +version = "0.4.6" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697, upload-time = "2022-10-25T02:36:22.414Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" }, +] + +[[package]] +name = "ekb-cli" +version = "0.1.0" +source = { editable = "." } +dependencies = [ + { name = "httpx" }, + { name = "rich" }, + { name = "typer" }, +] + +[package.metadata] +requires-dist = [ + { name = "httpx", specifier = ">=0.28.1" }, + { name = "rich", specifier = ">=14.3.3" }, + { name = "typer", specifier = ">=0.24.1" }, +] + +[[package]] +name = "h11" +version = "0.16.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/01/ee/02a2c011bdab74c6fb3c75474d40b3052059d95df7e73351460c8588d963/h11-0.16.0.tar.gz", hash = "sha256:4e35b956cf45792e4caa5885e69fba00bdbc6ffafbfa020300e549b208ee5ff1", size = 101250, upload-time = "2025-04-24T03:35:25.427Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/04/4b/29cac41a4d98d144bf5f6d33995617b185d14b22401f75ca86f384e87ff1/h11-0.16.0-py3-none-any.whl", hash = "sha256:63cf8bbe7522de3bf65932fda1d9c2772064ffb3dae62d55932da54b31cb6c86", size = 37515, upload-time = "2025-04-24T03:35:24.344Z" }, +] + +[[package]] +name = "httpcore" +version = "1.0.9" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "certifi" }, + { name = "h11" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/06/94/82699a10bca87a5556c9c59b5963f2d039dbd239f25bc2a63907a05a14cb/httpcore-1.0.9.tar.gz", hash = "sha256:6e34463af53fd2ab5d807f399a9b45ea31c3dfa2276f15a2c3f00afff6e176e8", size = 85484, upload-time = "2025-04-24T22:06:22.219Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/7e/f5/f66802a942d491edb555dd61e3a9961140fd64c90bce1eafd741609d334d/httpcore-1.0.9-py3-none-any.whl", hash = "sha256:2d400746a40668fc9dec9810239072b40b4484b640a8c38fd654a024c7a1bf55", size = 78784, upload-time = "2025-04-24T22:06:20.566Z" }, +] + +[[package]] +name = "httpx" +version = "0.28.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "anyio" }, + { name = "certifi" }, + { name = "httpcore" }, + { name = "idna" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/b1/df/48c586a5fe32a0f01324ee087459e112ebb7224f646c0b5023f5e79e9956/httpx-0.28.1.tar.gz", hash = "sha256:75e98c5f16b0f35b567856f597f06ff2270a374470a5c2392242528e3e3e42fc", size = 141406, upload-time = "2024-12-06T15:37:23.222Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2a/39/e50c7c3a983047577ee07d2a9e53faf5a69493943ec3f6a384bdc792deb2/httpx-0.28.1-py3-none-any.whl", hash = "sha256:d909fcccc110f8c7faf814ca82a9a4d816bc5a6dbfea25d6591d6985b8ba59ad", size = 73517, upload-time = "2024-12-06T15:37:21.509Z" }, +] + +[[package]] +name = "idna" +version = "3.11" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/6f/6d/0703ccc57f3a7233505399edb88de3cbd678da106337b9fcde432b65ed60/idna-3.11.tar.gz", hash = "sha256:795dafcc9c04ed0c1fb032c2aa73654d8e8c5023a7df64a53f39190ada629902", size = 194582, upload-time = "2025-10-12T14:55:20.501Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/0e/61/66938bbb5fc52dbdf84594873d5b51fb1f7c7794e9c0f5bd885f30bc507b/idna-3.11-py3-none-any.whl", hash = "sha256:771a87f49d9defaf64091e6e6fe9c18d4833f140bd19464795bc32d966ca37ea", size = 71008, upload-time = "2025-10-12T14:55:18.883Z" }, +] + +[[package]] +name = "markdown-it-py" +version = "4.0.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "mdurl" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/5b/f5/4ec618ed16cc4f8fb3b701563655a69816155e79e24a17b651541804721d/markdown_it_py-4.0.0.tar.gz", hash = "sha256:cb0a2b4aa34f932c007117b194e945bd74e0ec24133ceb5bac59009cda1cb9f3", size = 73070, upload-time = "2025-08-11T12:57:52.854Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/94/54/e7d793b573f298e1c9013b8c4dade17d481164aa517d1d7148619c2cedbf/markdown_it_py-4.0.0-py3-none-any.whl", hash = "sha256:87327c59b172c5011896038353a81343b6754500a08cd7a4973bb48c6d578147", size = 87321, upload-time = "2025-08-11T12:57:51.923Z" }, +] + +[[package]] +name = "mdurl" +version = "0.1.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d6/54/cfe61301667036ec958cb99bd3efefba235e65cdeb9c84d24a8293ba1d90/mdurl-0.1.2.tar.gz", hash = "sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba", size = 8729, upload-time = "2022-08-14T12:40:10.846Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", hash = "sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", size = 9979, upload-time = "2022-08-14T12:40:09.779Z" }, +] + +[[package]] +name = "pygments" +version = "2.20.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/c3/b2/bc9c9196916376152d655522fdcebac55e66de6603a76a02bca1b6414f6c/pygments-2.20.0.tar.gz", hash = "sha256:6757cd03768053ff99f3039c1a36d6c0aa0b263438fcab17520b30a303a82b5f", size = 4955991, upload-time = "2026-03-29T13:29:33.898Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", hash = "sha256:81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", size = 1231151, upload-time = "2026-03-29T13:29:30.038Z" }, +] + +[[package]] +name = "rich" +version = "14.3.3" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "markdown-it-py" }, + { name = "pygments" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/b3/c6/f3b320c27991c46f43ee9d856302c70dc2d0fb2dba4842ff739d5f46b393/rich-14.3.3.tar.gz", hash = "sha256:b8daa0b9e4eef54dd8cf7c86c03713f53241884e814f4e2f5fb342fe520f639b", size = 230582, upload-time = "2026-02-19T17:23:12.474Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/14/25/b208c5683343959b670dc001595f2f3737e051da617f66c31f7c4fa93abc/rich-14.3.3-py3-none-any.whl", hash = "sha256:793431c1f8619afa7d3b52b2cdec859562b950ea0d4b6b505397612db8d5362d", size = 310458, upload-time = "2026-02-19T17:23:13.732Z" }, +] + +[[package]] +name = "shellingham" +version = "1.5.4" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/58/15/8b3609fd3830ef7b27b655beb4b4e9c62313a4e8da8c676e142cc210d58e/shellingham-1.5.4.tar.gz", hash = "sha256:8dbca0739d487e5bd35ab3ca4b36e11c4078f3a234bfce294b0a0291363404de", size = 10310, upload-time = "2023-10-24T04:13:40.426Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", hash = "sha256:7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", size = 9755, upload-time = "2023-10-24T04:13:38.866Z" }, +] + +[[package]] +name = "typer" +version = "0.24.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "annotated-doc" }, + { name = "click" }, + { name = "rich" }, + { name = "shellingham" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/f5/24/cb09efec5cc954f7f9b930bf8279447d24618bb6758d4f6adf2574c41780/typer-0.24.1.tar.gz", hash = "sha256:e39b4732d65fbdcde189ae76cf7cd48aeae72919dea1fdfc16593be016256b45", size = 118613, upload-time = "2026-02-21T16:54:40.609Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/4a/91/48db081e7a63bb37284f9fbcefda7c44c277b18b0e13fbc36ea2335b71e6/typer-0.24.1-py3-none-any.whl", hash = "sha256:112c1f0ce578bfb4cab9ffdabc68f031416ebcc216536611ba21f04e9aa84c9e", size = 56085, upload-time = "2026-02-21T16:54:41.616Z" }, +] + +[[package]] +name = "typing-extensions" +version = "4.15.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/72/94/1a15dd82efb362ac84269196e94cf00f187f7ed21c242792a923cdb1c61f/typing_extensions-4.15.0.tar.gz", hash = "sha256:0cea48d173cc12fa28ecabc3b837ea3cf6f38c6d1136f85cbaaf598984861466", size = 109391, upload-time = "2025-08-25T13:49:26.313Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/18/67/36e9267722cc04a6b9f15c7f3441c2363321a3ea07da7ae0c0707beb2a9c/typing_extensions-4.15.0-py3-none-any.whl", hash = "sha256:f0fa19c6845758ab08074a0cfa8b7aecb71c999ca73d62883bc25cc018c4e548", size = 44614, upload-time = "2025-08-25T13:49:24.86Z" }, +]