feat: 完成登录与栅格下载桌面端

This commit is contained in:
2026-10-25 02:09:12 +08:00
commit 5ca491834e
76 changed files with 10637 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
# 抓包与分析产物
Temp/
*.chlz
*.chls
# 运行数据与会话
data/
aidocs/
# Python
backend/.venv/
.venv/
__pycache__/
*.py[cod]
.pytest_cache/
.mypy_cache/
.ruff_cache/
# Node / Tauri
node_modules/
dist/
target/
*.log
# 编辑器
.idea/
.vscode/
*.user
+22
View File
@@ -0,0 +1,22 @@
# NqiTools
桌面工具界面。日间是白底和蓝色主操作,夜间沿用同一结构。
## 颜色
- 主色 `#2563eb`,夜间主色 `#60a5fa`
- 日间背景 `#f3f4f6`,面板 `#ffffff`,文字 `#111827`
- 夜间背景 `#0f172a`,面板 `#1e293b`,侧栏 `#111827`,文字 `#f8fafc`
- 状态只用这一套蓝色进度,不再加第二套装饰色
## 结构
- 打开时只有登录页。登录后左侧 220px 导航,分组「下载」里是栅格下载和下载管理。
- 表单标题在左、控件在右。下载管理用「正在下载 / 已完成」分开,每条任务一行并带进度。
- 日夜切换在登录页右上角,以及登录后侧栏底部。选择记在本机。
## 文字与图标
- 字体使用 Segoe UI 和微软雅黑,不加载外链字体。
- 图标来自随程序打包的 Ionicons,不使用图片外链。
- 产品名是 NqiTools。验证码点击图片刷新。
+35
View File
@@ -0,0 +1,35 @@
# 栅格下载
单机桌面工具,登录广东移动网络质量平台后,按栅格 ID 下载 4G/5G 20 米栅格数据。程序只在本机运行,不部署到服务器。
## 打开方式
先进入登录页。登录成功后才出现功能导航。下载分组里有「栅格下载」和「下载管理」。
## 下载
- 上传 CSV、TXT 或 XLSX,读取栅格 ID。
- 一个栅格有多个小区时每个小区一行;没有小区时保留一行,小区列留空。
- 表头使用平台弹窗里的中文名称。可选项目与平台左侧指标一致。
- 并发数可设置。查询用协程,写出由单独写入完成,并在每条栅格落盘后记录进度。
- 未记入进度的尾部会在下次打开时丢掉并重新下载。
## 运行
在项目根目录准备 Python 环境后,从 `desktop` 启动:
```text
cd backend
uv sync
cd ../desktop
npm install
npm run tauri dev
```
界面开发也可以先启动 `backend\.venv\Scripts\python.exe -m uvicorn app.main:app --host 127.0.0.1 --port 8765`,再在 `desktop` 执行 `npm run dev`。
图标和界面资源随程序打包,不引用外网字体或图片。
## 界面
产品名是 NqiTools。界面对齐迅雷的任务行、Windows 设置的左导航右表单,以及 NQI 后台的浅色面板,并提供日间和夜间切换。验证码点击图片刷新。
View File
View File
+175
View File
@@ -0,0 +1,175 @@
"""4G/5G 20 米栅格的中文列,名称与门户弹窗一致。"""
from __future__ import annotations
from dataclasses import dataclass
NETWORKS = (
{"value": "NR", "label": "5G"},
{"value": "LTE", "label": "4G"},
)
IDENTITY = (
("月份分区", "intmonthid"),
("时间周期", "datatime"),
("地市", "city_name"),
("区县", "area_name"),
("区域属性", "area_type"),
("微网格ID", "wgrid_id"),
("场景唯一标签", "scene"),
("20米栅格ID", "grid20_id"),
("经度", "longitude"),
("纬度", "latitude"),
)
@dataclass(frozen=True)
class Column:
label: str
field: str
source: str
def _pairs(*items: tuple[str, str]) -> tuple[tuple[str, str], ...]:
return items
_NR_GROUPS: dict[str, tuple[str, tuple[tuple[str, str], ...]]] = {
"rsrp": (
"RSRP(dBm)",
_pairs(
("中国移动SSB-RSRP(dBm)", "ssb_rsrp_yd"),
("中国移动RSRP低于-120的MR数", "rsrp_lt_neg120_yd"),
("中国移动RSRP低于-115的MR数", "rsrp_lt_neg115_yd"),
("中国移动RSRP低于-110的MR数", "rsrp_lt_neg110_yd"),
("中国移动RSRP低于-108的MR数", "rsrp_lt_neg108_yd"),
("中国移动RSRP低于-105的MR数", "rsrp_lt_neg105_yd"),
("中国移动RSRP低于-100的MR数", "rsrp_lt_neg100_yd"),
("中国移动RSRP低于-95的MR数", "rsrp_lt_neg95_yd"),
("中国移动RSRP低于-90的MR数", "rsrp_lt_neg90_yd"),
),
),
"dlsinr": ("DLSINR(dB)", _pairs(("中国移动SSB-DLSINR(dB)", "ssb_dlsinr_yd"))),
"worse": (
"5G覆盖劣于竞对",
_pairs(
("中国移动RSRP低于-105的弱覆盖比例(%)", "mr_dl_lt105_weak_cover_rate_yd"),
("中国电联RSRP低于-105的弱覆盖比例(%)", "mr_dl_lt105_weak_cover_rate_dl"),
("中国移动下行质差MR比例(SSB)(%)", "mr_dl_bad_cell_rate_yd"),
("中国移动重叠覆盖MR比例(SSB)(%)", "mr_overlap_rate_yd"),
),
),
"cover": (
"5G覆盖率占比",
_pairs(
("中国移动覆盖优良样本点", "mr_dl_excellent_cell_yd"),
("中国移动5G驻留比(5G全量终端)(%)", "nr_flux_rate_all_yd"),
("中国移动5G驻留比(5G开关打开终端)(%)", "nr_flux_rate_open_yd"),
("中国移动5G驻留比分母(5G开关打开终端)", "nr_flux_rate_den_open_yd"),
),
),
"weak": (
"5G弱覆盖比例",
_pairs(
("中国移动RSRP低于-110的弱覆盖比例(%)", "mr_dl_lt110_weak_cover_rate_yd"),
("中国移动RSRP低于-105的弱覆盖比例(%)", "mr_dl_lt105_weak_cover_rate_yd"),
),
),
"samples": ("5G采样点数量", _pairs(("中国移动MR总数", "mro_total_yd"))),
}
_LTE_GROUPS: dict[str, tuple[str, tuple[tuple[str, str], ...]]] = {
"rsrp": (
"RSRP(dBm)",
_pairs(
("中国移动RSRP(dBm)", "rsrp_yd"),
("中国移动RSRP低于-120的MR数", "rsrp_lt_neg120_yd"),
("中国移动RSRP低于-115的MR数", "rsrp_lt_neg115_yd"),
("中国移动RSRP低于-110的MR数", "rsrp_lt_neg110_yd"),
("中国移动RSRP低于-108的MR数", "rsrp_lt_neg108_yd"),
("中国移动RSRP低于-105的MR数", "rsrp_lt_neg105_yd"),
("中国移动RSRP低于-100的MR数", "rsrp_lt_neg100_yd"),
("中国移动RSRP低于-95的MR数", "rsrp_lt_neg95_yd"),
("中国移动RSRP低于-90的MR数", "rsrp_lt_neg90_yd"),
),
),
"dlsinr": ("DLSINR(dB)", _pairs(("中国移动DLSINR(dB)", "dlsinr_yd"))),
"worse": (
"4G覆盖劣于竞对",
_pairs(
("中国移动RSRP低于-110的弱覆盖比例(%)", "mr_dl_lt110_weak_cover_rate_yd"),
("中国电联RSRP低于-110的弱覆盖比例(%)", "mr_dl_lt110_weak_cover_rate_dl"),
("中国移动下行质差MR比例(%)", "mr_dl_bad_cell_rate_yd"),
("中国移动重叠覆盖MR比例(%)", "mr_overlap_rate_yd"),
),
),
"cover": ("4G覆盖率占比", _pairs(("中国移动覆盖优良样本点", "mr_dl_excellent_cell_yd"))),
"weak": (
"4G弱覆盖比例",
_pairs(
("中国移动RSRP低于-110的弱覆盖比例(%)", "mr_dl_lt110_weak_cover_rate_yd"),
("中国移动RSRP低于-105的弱覆盖比例(%)", "mr_dl_lt105_weak_cover_rate_yd"),
),
),
"samples": (
"4G采样点数量",
_pairs(
("中国移动MR总数", "mro_total_yd"),
("中国移动5G终端总MR数", "ue_num_nr_yd"),
),
),
}
GROUP_ORDER = ("rsrp", "dlsinr", "worse", "cover", "weak", "samples")
def group_table(network: str) -> dict[str, tuple[str, tuple[tuple[str, str], ...]]]:
if network == "LTE":
return _LTE_GROUPS
if network == "NR":
return _NR_GROUPS
raise ValueError("网络类型只支持 4G 或 5G")
def cell_columns(network: str) -> list[Column]:
nr = network == "NR"
weak_count = "rsrp_lt_neg105" if nr else "rsrp_lt_neg110"
return [
Column("序号", "_index", "cell"),
Column("小区ID", "cgi", "cell"),
Column("MR总数", "mro_total", "cell"),
Column("RSRP(dBm)", "ssb_rsrp" if nr else "rsrp", "cell"),
Column("DLSINR(dB)", "ssb_dlsinr" if nr else "dlsinr", "cell"),
Column("下行弱覆盖MR比例(%)", "mr_dl_weak_cover_rate", "cell"),
Column("下行弱覆盖MR数量", weak_count, "cell"),
]
def columns_for(network: str, groups: list[str] | None) -> list[Column]:
table = group_table(network)
selected = [item for item in GROUP_ORDER if groups is None or item in groups]
unknown = [item for item in (groups or []) if item not in table]
if unknown:
raise ValueError("未知的下载项目: " + "、".join(unknown))
columns = [Column(label, field, "grid") for label, field in IDENTITY]
seen = {column.field for column in columns}
for key in selected:
for label, field in table[key][1]:
if field in seen:
continue
seen.add(field)
columns.append(Column(label, field, "grid"))
columns.extend(cell_columns(network))
return columns
def meta_groups(network: str) -> list[dict]:
table = group_table(network)
return [
{
"id": key,
"label": table[key][0],
"columns": [label for label, _field in table[key][1]],
}
for key in GROUP_ORDER
]
+96
View File
@@ -0,0 +1,96 @@
"""从区域表里读取栅格 ID。"""
from __future__ import annotations
import csv
import io
from pathlib import Path
_HEADER_KEYS = {
"栅格id",
"20米栅格id",
"grid20_id",
"grid_id",
"栅格",
"栅格编号",
}
def normalize_id(value) -> str:
if value is None:
return ""
text = str(value).strip().strip("\ufeff")
if text.endswith(".0") and text[:-2].isdigit():
text = text[:-2]
if not text or not text.isdigit():
return ""
return text
def _header_index(header: list[str]) -> int | None:
for index, name in enumerate(header):
key = name.strip().lower().replace(" ", "").replace("_", "")
raw = name.strip().lower().replace(" ", "")
if raw in _HEADER_KEYS or key in {"栅格id", "20米栅格id", "grid20id", "gridid"}:
return index
if "栅格" in name and "id" in raw:
return index
return None
def parse_table(rows: list[list]) -> list[str]:
if not rows:
return []
header = ["" if cell is None else str(cell).strip() for cell in rows[0]]
column = _header_index(header)
start = 0
if column is None:
column = 0
if not normalize_id(header[0] if header else ""):
start = 1
else:
start = 1
found: list[str] = []
seen: set[str] = set()
for row in rows[start:]:
if column >= len(row):
continue
grid_id = normalize_id(row[column])
if not grid_id or grid_id in seen:
continue
seen.add(grid_id)
found.append(grid_id)
return found
def _decode_csv(raw: bytes) -> str:
for encoding in ("utf-8-sig", "utf-8", "gbk"):
try:
return raw.decode(encoding)
except UnicodeDecodeError:
continue
return raw.decode("utf-8", "replace")
def parse_upload(path: Path) -> list[str]:
suffix = path.suffix.lower()
if suffix == ".xlsx":
from openpyxl import load_workbook
book = load_workbook(path, read_only=True, data_only=True)
try:
sheet = book.active
rows = [list(row) for row in sheet.iter_rows(values_only=True)]
finally:
book.close()
return parse_table(rows)
if suffix not in {".csv", ".txt", ""}:
raise ValueError("区域表只支持 CSV、TXT 或 XLSX")
text = _decode_csv(path.read_bytes())
sample = text[:4096]
try:
dialect = csv.Sniffer().sniff(sample, delimiters=",\t;|")
except csv.Error:
dialect = csv.excel
reader = csv.reader(io.StringIO(text), dialect)
return parse_table([list(row) for row in reader if any(str(cell).strip() for cell in row)])
+358
View File
@@ -0,0 +1,358 @@
"""下载任务:协程并发查询,单个写者实时落盘。"""
from __future__ import annotations
import asyncio
import json
import uuid
from dataclasses import dataclass, field
from datetime import datetime
from pathlib import Path
from app.platform.client import NqiClient, NqiError
from app.features.download.fields import columns_for
from app.features.download.journal import CsvJournal
from app.features.download.rows import build_rows
from app.shared.paths import DOWNLOAD_DIR
DATA_DIR = DOWNLOAD_DIR
@dataclass
class DownloadJob:
id: str
directory: Path
network: str
city_code: str
city_name: str
month: str
groups: list[str]
concurrency: int
grid_ids: list[str]
csv_path: Path
created_at: str
status: str = "queued"
message: str = ""
completed: int = 0
failed: int = 0
written_rows: int = 0
failures: list[dict[str, str]] = field(default_factory=list)
subscribers: list[asyncio.Queue] = field(default_factory=list)
task: asyncio.Task | None = None
cancel_event: asyncio.Event = field(default_factory=asyncio.Event)
@property
def total(self) -> int:
return len(self.grid_ids)
def is_active(self) -> bool:
return self.task is not None and not self.task.done()
def snapshot(self) -> dict:
return {
"id": self.id,
"status": self.status,
"message": self.message,
"network": self.network,
"cityCode": self.city_code,
"cityName": self.city_name,
"month": self.month,
"concurrency": self.concurrency,
"total": self.total,
"completed": self.completed,
"failed": self.failed,
"writtenRows": self.written_rows,
"csvPath": str(self.csv_path),
"failures": self.failures[-20:],
"createdAt": self.created_at,
"name": f"{'5G' if self.network == 'NR' else '4G'} · {self.city_name} · {self.month}",
}
def save(self) -> None:
payload = {
"id": self.id,
"network": self.network,
"cityCode": self.city_code,
"cityName": self.city_name,
"month": self.month,
"groups": self.groups,
"concurrency": self.concurrency,
"gridIds": self.grid_ids,
"csvPath": str(self.csv_path),
"createdAt": self.created_at,
"status": self.status,
"message": self.message,
"completed": self.completed,
"failed": self.failed,
"writtenRows": self.written_rows,
"failures": self.failures[-50:],
}
(self.directory / "job.json").write_text(
json.dumps(payload, ensure_ascii=False, indent=2),
encoding="utf-8",
)
async def emit(self, kind: str, **extra) -> None:
event = {"type": kind, **self.snapshot(), **extra}
for subscriber in list(self.subscribers):
await subscriber.put(event)
class JobManager:
def __init__(self) -> None:
self.jobs: dict[str, DownloadJob] = {}
def create(
self,
*,
network: str,
city_code: str,
city_name: str,
month: str,
groups: list[str],
concurrency: int,
grid_ids: list[str],
csv_path: Path | None,
) -> DownloadJob:
job_id = uuid.uuid4().hex
directory = DATA_DIR / job_id
directory.mkdir(parents=True, exist_ok=True)
target = csv_path or directory / f"栅格_{'5G' if network == 'NR' else '4G'}_{city_name}_{month}.csv"
target.parent.mkdir(parents=True, exist_ok=True)
job = DownloadJob(
id=job_id,
directory=directory,
network=network,
city_code=city_code,
city_name=city_name,
month=month,
groups=groups,
concurrency=concurrency,
grid_ids=grid_ids,
csv_path=target,
created_at=datetime.now().isoformat(timespec="seconds"),
)
job.save()
self.jobs[job_id] = job
return job
def get(self, job_id: str) -> DownloadJob:
job = self.jobs.get(job_id)
if job is None:
job = self._load(job_id)
self.jobs[job_id] = job
return job
def list_jobs(self) -> list[dict]:
if not DATA_DIR.exists():
return []
items = []
for directory in sorted(DATA_DIR.iterdir(), reverse=True):
path = directory / "job.json"
if not path.exists():
continue
try:
data = json.loads(path.read_text(encoding="utf-8"))
except (OSError, json.JSONDecodeError):
continue
job_id = data.get("id")
if job_id in self.jobs:
job = self.jobs[job_id]
snap = job.snapshot()
if snap["status"] == "running" and not job.is_active():
snap["status"] = "cancelled"
snap["message"] = "已中断"
items.append(snap)
continue
status = data.get("status") or "queued"
message = data.get("message") or ""
if status == "running":
status = "cancelled"
message = "已中断"
finished, written = _progress_stats(directory)
items.append(
{
"id": job_id,
"status": status,
"message": message,
"network": data.get("network"),
"cityCode": data.get("cityCode"),
"cityName": data.get("cityName"),
"month": data.get("month"),
"concurrency": data.get("concurrency") or 4,
"total": len(data.get("gridIds") or []),
"completed": finished or data.get("completed") or 0,
"failed": data.get("failed") or 0,
"writtenRows": written or data.get("writtenRows") or 0,
"csvPath": data.get("csvPath"),
"failures": data.get("failures") or [],
"createdAt": data.get("createdAt"),
"name": f"{'5G' if data.get('network') == 'NR' else '4G'} · {data.get('cityName') or ''} · {data.get('month') or ''}",
}
)
return items[:20]
def _load(self, job_id: str) -> DownloadJob:
if not re_fullmatch_hex(job_id):
raise NqiError("任务不存在")
path = DATA_DIR / job_id / "job.json"
if not path.exists():
raise NqiError("任务不存在")
data = json.loads(path.read_text(encoding="utf-8"))
return DownloadJob(
id=data["id"],
directory=path.parent,
network=data["network"],
city_code=data["cityCode"],
city_name=data["cityName"],
month=data["month"],
groups=list(data.get("groups") or []),
concurrency=int(data.get("concurrency") or 4),
grid_ids=[str(item) for item in data.get("gridIds") or []],
csv_path=Path(data["csvPath"]),
created_at=data.get("createdAt") or "",
status=data.get("status") or "queued",
message=data.get("message") or "",
completed=int(data.get("completed") or 0),
failed=int(data.get("failed") or 0),
written_rows=int(data.get("writtenRows") or 0),
failures=list(data.get("failures") or []),
)
def _progress_stats(directory: Path) -> tuple[int, int]:
path = directory / "progress.jsonl"
if not path.exists():
return 0, 0
finished = 0
written = 0
for line in path.read_text(encoding="utf-8").splitlines():
text = line.strip()
if not text:
continue
try:
record = json.loads(text)
except json.JSONDecodeError:
break
finished += 1
written += int(record.get("rows") or 0)
return finished, written
def re_fullmatch_hex(value: str) -> bool:
return len(value) == 32 and all(char in "0123456789abcdef" for char in value)
async def run_download(job: DownloadJob, client: NqiClient) -> None:
columns = columns_for(job.network, job.groups)
journal = CsvJournal(job.csv_path, job.directory / "progress.jsonl", [column.label for column in columns])
job.status = "running"
job.message = "准备中"
job.save()
await job.emit("progress")
try:
layer = await client.layer_code(city_code=job.city_code, month=job.month, network=job.network)
service_code = layer["serviceCode"]
journal.open()
job.completed = len(journal.completed)
job.written_rows = journal.written_rows
job.failures = []
job.failed = 0
pending = [grid_id for grid_id in job.grid_ids if grid_id not in journal.completed]
job.message = "下载中"
await job.emit("progress")
if not pending:
job.status = "done"
job.message = "已完成"
job.save()
await job.emit("done")
return
await _pump(job, client, journal, columns, service_code, pending)
except asyncio.CancelledError:
job.status = "cancelled"
job.message = "已停止"
job.save()
await job.emit("cancelled")
raise
except Exception as exc:
job.status = "error"
job.message = str(exc) or "下载失败"
job.save()
await job.emit("error")
finally:
journal.close()
async def _pump(job, client, journal, columns, service_code: str, pending: list[str]) -> None:
ids: asyncio.Queue[str] = asyncio.Queue()
results: asyncio.Queue = asyncio.Queue()
for grid_id in pending:
ids.put_nowait(grid_id)
async def worker() -> None:
while not job.cancel_event.is_set():
try:
grid_id = ids.get_nowait()
except asyncio.QueueEmpty:
return
error = ""
rows = None
for attempt in range(2):
if job.cancel_event.is_set():
return
try:
properties = await client.grid_feature(service_code, grid_id)
cells = await client.cell_rows(service_code, grid_id, job.network)
rows = build_rows(grid_id, properties, cells, columns)
error = ""
break
except Exception as exc:
error = str(exc) or "下载失败"
if attempt == 0:
await asyncio.sleep(0.4)
if rows is None:
await results.put(("err", grid_id, error))
else:
await results.put(("ok", grid_id, rows))
async def writer() -> None:
while True:
item = await results.get()
if item is None:
return
kind, grid_id, payload = item
if kind == "ok":
written = journal.write_rows(grid_id, payload)
job.completed += 1
job.written_rows = journal.written_rows
if written == 0:
job.written_rows = journal.written_rows
else:
job.failed += 1
job.failures.append({"id": grid_id, "message": payload})
job.message = f"已完成 {job.completed}/{job.total},失败 {job.failed}"
job.save()
await job.emit("progress")
async def finish_workers() -> None:
await asyncio.gather(*(worker() for _ in range(job.concurrency)))
await results.put(None)
closer = asyncio.create_task(finish_workers())
try:
await writer()
await closer
finally:
if not closer.done():
closer.cancel()
unfinished = job.completed + job.failed < job.total
if job.cancel_event.is_set() and unfinished:
job.status = "cancelled"
job.message = "已停止"
job.save()
await job.emit("cancelled")
return
job.status = "done" if job.failed == 0 else "done_with_errors"
job.message = "已完成" if job.failed == 0 else f"{job.failed} 个失败"
job.save()
await job.emit("done")
+115
View File
@@ -0,0 +1,115 @@
"""单写者 CSV。未记入进度的尾部会在下次打开时丢掉并重新下载。"""
from __future__ import annotations
import csv
import io
import json
import os
import threading
from pathlib import Path
class CsvJournal:
def __init__(self, csv_path: Path, progress_path: Path, headers: list[str]):
self.csv_path = csv_path
self.progress_path = progress_path
self.headers = headers
self.completed: set[str] = set()
self.written_rows = 0
self._file = None
self._lock = threading.Lock()
def open(self) -> None:
self.csv_path.parent.mkdir(parents=True, exist_ok=True)
records = self._read_progress()
size = self.csv_path.stat().st_size if self.csv_path.exists() else 0
kept: list[dict] = []
previous = 0
for record in records:
offset = int(record["offset"])
if offset < previous or offset > size:
break
kept.append(
{
"id": str(record["id"]),
"offset": offset,
"rows": int(record.get("rows") or 0),
}
)
previous = offset
self.completed = {item["id"] for item in kept}
self.written_rows = sum(int(item.get("rows") or 0) for item in kept)
self._file = open(self.csv_path, "a+b")
if kept:
self._file.truncate(previous)
self._file.seek(previous)
self._rewrite_progress(kept)
return
self.written_rows = 0
self._file.truncate(0)
self._file.seek(0)
self._file.write(b"\xef\xbb\xbf" + self._encode(self.headers))
self._file.flush()
os.fsync(self._file.fileno())
self.progress_path.write_text("", encoding="utf-8")
def write_rows(self, grid_id: str, rows: list[list[str]]) -> int:
if not rows:
raise ValueError("至少要写出一行")
with self._lock:
if grid_id in self.completed:
return 0
if self._file is None:
raise RuntimeError("下载文件还没有打开")
blob = b"".join(self._encode(row) for row in rows)
self._file.write(blob)
self._file.flush()
os.fsync(self._file.fileno())
offset = self._file.tell()
record = {"id": grid_id, "offset": offset, "rows": len(rows)}
self.written_rows += len(rows)
with self.progress_path.open("a", encoding="utf-8") as handle:
handle.write(json.dumps(record, ensure_ascii=False) + "\n")
handle.flush()
os.fsync(handle.fileno())
self.completed.add(grid_id)
return len(rows)
def close(self) -> None:
with self._lock:
if self._file is not None:
self._file.close()
self._file = None
def _encode(self, row: list[str]) -> bytes:
buffer = io.StringIO(newline="")
writer = csv.writer(buffer, lineterminator="\r\n")
writer.writerow(row)
return buffer.getvalue().encode("utf-8")
def _read_progress(self) -> list[dict]:
if not self.progress_path.exists():
return []
records: list[dict] = []
for line in self.progress_path.read_text(encoding="utf-8").splitlines():
text = line.strip()
if not text:
continue
try:
record = json.loads(text)
records.append(
{
"id": str(record["id"]),
"offset": int(record["offset"]),
"rows": int(record.get("rows") or 0),
}
)
except (KeyError, TypeError, ValueError, json.JSONDecodeError):
break
return records
def _rewrite_progress(self, records: list[dict]) -> None:
lines = [json.dumps(item, ensure_ascii=False) for item in records]
text = ("\n".join(lines) + "\n") if lines else ""
self.progress_path.write_text(text, encoding="utf-8")
+228
View File
@@ -0,0 +1,228 @@
"""栅格下载接口。工单、回单等功能各自放在 features 下,不写进这里。"""
from __future__ import annotations
import asyncio
import json
import logging
import re
import shutil
from pathlib import Path
from fastapi import APIRouter, File, Form, HTTPException, UploadFile
from fastapi.responses import FileResponse, StreamingResponse
from app.features.download.fields import IDENTITY, NETWORKS, cell_columns, columns_for, meta_groups
from app.features.download.ids import parse_upload
from app.features.download.jobs import run_download
from app.platform.client import NqiError
from app.platform.constants import CITIES
from app.shared.state import state
logger = logging.getLogger("nqi.download")
router = APIRouter(prefix="/api/download", tags=["download"])
MONTH_RE = re.compile(r"^\d{4}-(0[1-9]|1[0-2])$")
def _bad(message: str, status: int = 400) -> HTTPException:
return HTTPException(status_code=status, detail=message)
def _sse(payload: dict) -> str:
return f"data: {json.dumps(payload, ensure_ascii=False)}\n\n"
def start_job(job_id: str) -> None:
job = state.jobs.get(job_id)
client = state.require_client()
if job.is_active():
raise _bad("这个任务正在下载")
job.cancel_event = asyncio.Event()
job.status = "queued"
job.save()
async def runner() -> None:
await run_download(job, client)
task = asyncio.create_task(runner())
job.task = task
def _done(finished: asyncio.Task) -> None:
if finished.cancelled():
return
error = finished.exception()
if error:
logger.exception("下载任务异常", exc_info=error)
task.add_done_callback(_done)
@router.get("/meta")
async def meta() -> dict:
return {
"networks": list(NETWORKS),
"cities": CITIES,
"groups": {"NR": meta_groups("NR"), "LTE": meta_groups("LTE")},
"fixed": {
"grid": [label for label, _field in IDENTITY],
"cell": {
"NR": [column.label for column in cell_columns("NR")],
"LTE": [column.label for column in cell_columns("LTE")],
},
},
}
@router.get("/jobs")
async def list_jobs() -> dict:
state.require_client()
return {"jobs": state.jobs.list_jobs()}
@router.get("/jobs/{job_id}")
async def get_job(job_id: str) -> dict:
state.require_client()
try:
job = state.jobs.get(job_id)
except NqiError as exc:
raise _bad(str(exc), 404) from exc
return job.snapshot()
@router.post("/jobs")
async def create_job(
file: UploadFile = File(...),
network: str = Form(...),
city_code: str = Form(...),
month: str = Form(...),
groups: str = Form("[]"),
concurrency: int = Form(8),
output_dir: str = Form(""),
) -> dict:
state.require_client()
if network not in {"NR", "LTE"}:
raise _bad("网络只支持 4G 或 5G")
city = next((item for item in CITIES if item["code"] == city_code), None)
if city is None:
raise _bad("请选择地市")
if not MONTH_RE.fullmatch(month):
raise _bad("月份格式应为 YYYY-MM")
try:
selected = json.loads(groups)
except json.JSONDecodeError as exc:
raise _bad("下载项目格式不正确") from exc
if not isinstance(selected, list) or any(not isinstance(item, str) for item in selected):
raise _bad("下载项目格式不正确")
try:
columns_for(network, selected)
except ValueError as exc:
raise _bad(str(exc)) from exc
workers = min(32, max(1, int(concurrency)))
suffix = Path(file.filename or "grids.csv").suffix.lower()
if suffix not in {".csv", ".txt", ".xlsx"}:
raise _bad("区域表只支持 CSV、TXT 或 XLSX")
raw = await file.read()
if not raw:
raise _bad("区域表是空的")
if len(raw) > 20 * 1024 * 1024:
raise _bad("区域表不能超过 20MB")
target: Path | None = None
if output_dir.strip():
folder = Path(output_dir.strip())
folder.mkdir(parents=True, exist_ok=True)
label = "5G" if network == "NR" else "4G"
target = folder / f"栅格_{label}_{city['name']}_{month}.csv"
job = state.jobs.create(
network=network,
city_code=city["code"],
city_name=city["name"],
month=month,
groups=selected,
concurrency=workers,
grid_ids=[],
csv_path=target,
)
source = job.directory / f"source{suffix}"
source.write_bytes(raw)
try:
grid_ids = parse_upload(source)
except Exception as exc:
shutil.rmtree(job.directory, ignore_errors=True)
state.jobs.jobs.pop(job.id, None)
raise _bad(f"读取区域表失败:{exc}") from exc
if not grid_ids:
shutil.rmtree(job.directory, ignore_errors=True)
state.jobs.jobs.pop(job.id, None)
raise _bad("区域表里没有栅格 ID")
job.grid_ids = grid_ids
job.save()
start_job(job.id)
return job.snapshot()
@router.post("/jobs/{job_id}/cancel")
async def cancel_job(job_id: str) -> dict:
state.require_client()
try:
job = state.jobs.get(job_id)
except NqiError as exc:
raise _bad(str(exc), 404) from exc
if not job.is_active():
raise _bad("这个任务没有在下载")
job.cancel_event.set()
job.message = "正在停止"
return job.snapshot()
@router.post("/jobs/{job_id}/resume")
async def resume_job(job_id: str) -> dict:
state.require_client()
try:
job = state.jobs.get(job_id)
except NqiError as exc:
raise _bad(str(exc), 404) from exc
if job.is_active():
raise _bad("这个任务正在下载")
if job.status == "done":
raise _bad("这个任务已经完成")
start_job(job.id)
return job.snapshot()
@router.get("/jobs/{job_id}/events")
async def job_events(job_id: str) -> StreamingResponse:
state.require_client()
try:
job = state.jobs.get(job_id)
except NqiError as exc:
raise _bad(str(exc), 404) from exc
queue: asyncio.Queue = asyncio.Queue()
job.subscribers.append(queue)
async def stream():
try:
yield _sse({"type": "snapshot", **job.snapshot()})
if job.status in {"done", "done_with_errors", "cancelled", "error"} and not job.is_active():
return
while True:
event = await queue.get()
yield _sse(event)
if event.get("type") in {"done", "error", "cancelled"}:
return
finally:
if queue in job.subscribers:
job.subscribers.remove(queue)
return StreamingResponse(stream(), media_type="text/event-stream")
@router.get("/jobs/{job_id}/file")
async def job_file(job_id: str) -> FileResponse:
state.require_client()
try:
job = state.jobs.get(job_id)
except NqiError as exc:
raise _bad(str(exc), 404) from exc
if not job.csv_path.exists():
raise _bad("文件还没有生成", 404)
return FileResponse(job.csv_path, filename=job.csv_path.name)
+58
View File
@@ -0,0 +1,58 @@
"""把一个栅格的指标和小区明细铺成 CSV 行。"""
from __future__ import annotations
import json
import math
from app.features.download.fields import Column
def format_value(field: str, value) -> str:
if value is None:
return ""
if isinstance(value, str) and value.strip().lower() in {"", "none", "null"}:
return ""
if field == "datatime":
text = str(value).strip().replace("T", " ")
return text[:19]
if isinstance(value, bool):
return "1" if value else "0"
if isinstance(value, int) and not isinstance(value, bool):
return str(value)
if isinstance(value, float):
if math.isnan(value) or math.isinf(value):
return ""
if value.is_integer() and abs(value) < 10**15:
return str(int(value))
return json.dumps(value, ensure_ascii=False)
return str(value)
def build_rows(
grid_id: str,
properties: dict | None,
cells: list[dict] | None,
columns: list[Column],
) -> list[list[str]]:
"""一个栅格多小区时每个小区一行;没有小区时仍保留一行,小区列留空。"""
props = dict(properties or {})
if props.get("grid20_id") in (None, ""):
props["grid20_id"] = grid_id
records = cells or [None]
rows: list[list[str]] = []
for index, cell in enumerate(records, start=1):
row: list[str] = []
for column in columns:
if column.source == "grid":
row.append(format_value(column.field, props.get(column.field)))
continue
if cell is None:
row.append("")
continue
if column.field == "_index":
row.append(str(index))
continue
row.append(format_value(column.field, cell.get(column.field)))
rows.append(row)
return rows
+1
View File
@@ -0,0 +1 @@
"""回单。尚未实现。"""
@@ -0,0 +1 @@
"""工单监控。尚未实现。"""
+50
View File
@@ -0,0 +1,50 @@
"""本机接口。只监听 127.0.0.1。功能路由按目录挂上。"""
from contextlib import asynccontextmanager
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from app.features.download.router import router as download_router
from app.platform.auth import router as auth_router
from app.shared.state import state
ORIGINS = [
"http://localhost:1420",
"http://127.0.0.1:1420",
"tauri://localhost",
"http://tauri.localhost",
"https://tauri.localhost",
]
@asynccontextmanager
async def lifespan(_app: FastAPI):
yield
if state.client is not None:
await state.client.aclose()
for client, _challenge in state.flows.values():
await client.aclose()
app = FastAPI(title="NqiTools", lifespan=lifespan)
app.add_middleware(
CORSMiddleware,
allow_origins=ORIGINS,
allow_credentials=False,
allow_methods=["*"],
allow_headers=["*"],
)
app.include_router(auth_router)
app.include_router(download_router)
@app.get("/api/health")
async def health() -> dict:
return {"ok": True}
if __name__ == "__main__":
import uvicorn
uvicorn.run("app.main:app", host="127.0.0.1", port=8765)
View File
+126
View File
@@ -0,0 +1,126 @@
"""平台登录。各功能共用这一份会话。"""
from __future__ import annotations
import base64
import logging
import uuid
from fastapi import APIRouter, HTTPException
from app.platform.client import NqiError
from app.shared.state import state
logger = logging.getLogger("nqi.auth")
router = APIRouter(prefix="/api/auth", tags=["auth"])
def _bad(message: str, status: int = 400) -> HTTPException:
return HTTPException(status_code=status, detail=message)
def _captcha_payload(session_id: str, challenge, **extra) -> dict:
encoded = base64.b64encode(challenge.captcha_png).decode("ascii")
return {
"sessionId": session_id,
"captcha": f"data:{challenge.captcha_type};base64,{encoded}",
**extra,
}
@router.post("/captcha")
async def captcha() -> dict:
from app.platform.client import NqiClient
client = NqiClient()
try:
challenge = await client.open_login()
except Exception as exc:
await client.aclose()
logger.info("打开登录页失败: %s", exc)
raise _bad("连接失败,请稍后重试") from exc
session_id = uuid.uuid4().hex
state.flows[session_id] = (client, challenge)
return _captcha_payload(session_id, challenge)
@router.post("/captcha/refresh")
async def refresh(body: dict) -> dict:
session_id = str(body.get("sessionId") or "")
pair = state.flows.get(session_id)
if pair is None:
raise _bad("验证码已失效,请重新打开登录页")
client, challenge = pair
try:
await client.refresh_captcha(challenge)
except NqiError as exc:
raise _bad(str(exc)) from exc
return _captcha_payload(session_id, challenge)
@router.post("/sms")
async def sms(body: dict) -> dict:
session_id = str(body.get("sessionId") or "")
pair = state.flows.get(session_id)
if pair is None:
raise _bad("登录已过期,请刷新验证码")
client, challenge = pair
if not challenge.config_ready:
raise _bad("请先填写账号、密码和验证码")
try:
message = await client.send_sms(challenge)
except NqiError as exc:
raise _bad(str(exc)) from exc
return {"ok": True, "message": message}
@router.post("/login")
async def login(body: dict) -> dict:
session_id = str(body.get("sessionId") or "")
pair = state.flows.get(session_id)
if pair is None:
raise _bad("验证码已失效,请刷新后重试")
client, challenge = pair
username = str(body.get("username") or "").strip()
password = str(body.get("password") or "")
captcha = str(body.get("captcha") or "").strip()
sms_code = str(body.get("smsCode") or "").strip()
if not username or not password:
raise _bad("请输入账号和密码")
if not captcha:
raise _bad("请输入验证码")
try:
if not (challenge.config_ready and sms_code):
code = await client.prepare_login(challenge, username, password, captcha)
if code == "1" and not sms_code:
return {"status": "sms_required", "message": "请获取并填写短信验证码"}
user = await client.submit_login(challenge, sms_code)
except NqiError as exc:
try:
await client.refresh_captcha(challenge)
except NqiError:
pass
challenge.config_ready = False
raise HTTPException(status_code=400, detail=str(exc)) from exc
challenge.password = ""
state.flows.pop(session_id, None)
if state.client is not None and state.client is not client:
await state.client.aclose()
state.client = client
state.user = user
return {"status": "ok", "user": user}
@router.get("/me")
async def me() -> dict:
state.require_client()
return {"user": state.user}
@router.post("/logout")
async def logout() -> dict:
if state.client is not None:
await state.client.aclose()
state.client = None
state.user = None
return {"ok": True}
+359
View File
@@ -0,0 +1,359 @@
"""门户登录与栅格查询。"""
from __future__ import annotations
import base64
import calendar
import json
import re
from dataclasses import dataclass, field
from urllib.parse import urljoin
import httpx
from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.primitives.asymmetric import padding
from app.platform.constants import (
APP_KEY,
CAS_CAPTCHA,
CAS_CONFIG,
CAS_LOGIN,
CAS_SMS,
CAS_USER,
GIS_API,
GIS_PROD,
ORIGIN,
PORTAL_SERVICE,
USER_AGENT,
)
from app.platform.sign import build_sign, wfs_sig
_EXECUTION = re.compile(r'name="execution"\s+value="([^"]+)"', re.I)
_PUBLIC_KEY = re.compile(r'setPublicKey\("([^"]+)"\)')
_FORM_ACTION = re.compile(r'<form[^>]*id="fm1"[^>]*action="([^"]*)"', re.I)
_FORM_ACTION_REV = re.compile(r'<form[^>]*action="([^"]*)"[^>]*id="fm1"', re.I)
_ERROR_TEXT = re.compile(r'id="errMsg"[^>]*>(.*?)</', re.S)
class NqiError(Exception):
pass
def rsa_encrypt(public_key_b64: str, text: str) -> str:
der = base64.b64decode(public_key_b64)
key = serialization.load_der_public_key(der)
encrypted = key.encrypt(text.encode("utf-8"), padding.PKCS1v15())
return base64.b64encode(encrypted).decode("ascii")
def month_end(month: str) -> str:
"""2026-09 -> 20260930。图层接口使用该月最后一天。"""
year_text, month_text = month.split("-", 1)
year = int(year_text)
month_number = int(month_text)
if month_number < 1 or month_number > 12:
raise NqiError("月份需要是 YYYY-MM")
last_day = calendar.monthrange(year, month_number)[1]
return f"{year:04d}{month_number:02d}{last_day:02d}"
def _code(payload: dict) -> str:
return str(payload.get("code", ""))
@dataclass
class LoginChallenge:
execution: str
public_key: str
form_action: str
captcha_png: bytes
captcha_type: str = "image/jpeg"
username: str = ""
password: str = ""
captcha: str = ""
config_ready: bool = False
@dataclass
class NqiClient:
client: httpx.AsyncClient = field(init=False)
def __post_init__(self) -> None:
self.client = httpx.AsyncClient(
headers={
"User-Agent": USER_AGENT,
"Accept": "application/json, text/plain, */*",
"Accept-Language": "zh-CN,zh;q=0.9",
},
timeout=httpx.Timeout(45.0, connect=15.0),
follow_redirects=True,
trust_env=True,
)
async def aclose(self) -> None:
await self.client.aclose()
def export_cookies(self) -> list[dict[str, str]]:
exported: list[dict[str, str]] = []
for cookie in self.client.cookies.jar:
exported.append(
{
"name": cookie.name,
"value": cookie.value,
"domain": cookie.domain or "",
"path": cookie.path or "/",
}
)
return exported
def import_cookies(self, cookies: list[dict]) -> None:
for cookie in cookies:
if not cookie.get("name"):
continue
self.client.cookies.set(
cookie["name"],
cookie.get("value", ""),
domain=cookie.get("domain") or None,
path=cookie.get("path") or "/",
)
def ticket(self) -> str:
for name in ("CASTGC", "TGC"):
value = self.client.cookies.get(name)
if value:
return value
return ""
async def open_login(self) -> LoginChallenge:
response = await self.client.get(CAS_LOGIN, params={"service": PORTAL_SERVICE})
html = response.text
execution = _EXECUTION.search(html)
public_key = _PUBLIC_KEY.search(html)
if not execution or not public_key:
raise NqiError("登录页没有返回加密参数,请稍后重试")
action_match = _FORM_ACTION.search(html) or _FORM_ACTION_REV.search(html)
action = action_match.group(1) if action_match and action_match.group(1) else str(response.url)
if action.startswith("/"):
action = ORIGIN + action
elif not action.startswith("http"):
action = urljoin(str(response.url), action)
captcha = await self.client.get(CAS_CAPTCHA, headers={"Referer": str(response.url)})
if captcha.status_code != 200 or not captcha.content:
raise NqiError("验证码获取失败")
return LoginChallenge(
execution=execution.group(1),
public_key=public_key.group(1),
form_action=action,
captcha_png=captcha.content,
captcha_type=_media_type(captcha),
)
async def refresh_captcha(self, challenge: LoginChallenge) -> bytes:
response = await self.client.get(
CAS_CAPTCHA,
params={"id": "refresh"},
headers={"Referer": CAS_LOGIN},
)
if response.status_code != 200 or not response.content:
raise NqiError("验证码刷新失败")
challenge.captcha_png = response.content
challenge.captcha_type = _media_type(response)
return response.content
async def prepare_login(self, challenge: LoginChallenge, username: str, password: str, captcha: str) -> str:
challenge.username = username
challenge.password = password
challenge.captcha = captcha.strip()
payload = {
"loginId": rsa_encrypt(challenge.public_key, username),
"password": rsa_encrypt(challenge.public_key, password),
"captcha": challenge.captcha,
}
response = await self.client.post(
CAS_CONFIG,
json=payload,
headers={"Referer": CAS_LOGIN, "Origin": ORIGIN},
)
data = _json_or_error(response, "登录校验失败")
code = _code(data)
if code not in {"0", "1"}:
message = data.get("message") or data.get("msg") or "账号、密码或验证码不正确"
raise NqiError(str(message))
challenge.config_ready = True
return code
async def send_sms(self, challenge: LoginChallenge) -> str:
if not challenge.username or not challenge.password:
raise NqiError("请先填写账号和密码")
payload = {
"loginId": rsa_encrypt(challenge.public_key, challenge.username),
"password": rsa_encrypt(challenge.public_key, challenge.password),
}
response = await self.client.post(
CAS_SMS,
json=payload,
headers={"Referer": CAS_LOGIN, "Origin": ORIGIN},
)
data = _json_or_error(response, "短信发送失败")
if data.get("success") is False:
raise NqiError(str(data.get("msg") or "短信发送失败"))
return str(data.get("msg") or "短信已发送")
async def submit_login(self, challenge: LoginChallenge, sms_code: str = "") -> dict:
if not challenge.config_ready:
raise NqiError("请先完成验证码校验")
form = {
"username": rsa_encrypt(challenge.public_key, challenge.username),
"password": rsa_encrypt(challenge.public_key, challenge.password),
"msgCode": sms_code.strip(),
"captcha": challenge.captcha,
"uuid": "",
"execution": challenge.execution,
"_eventId": "submit",
"geolocation": "",
}
response = await self.client.post(
challenge.form_action,
data=form,
headers={
"Referer": CAS_LOGIN,
"Origin": ORIGIN,
"Content-Type": "application/x-www-form-urlencoded",
},
)
if not self.ticket():
message = _ERROR_TEXT.search(response.text)
detail = re.sub(r"<[^>]+>", "", message.group(1)).strip() if message else ""
raise NqiError(detail or "登录未成功,请检查验证码或短信验证码")
return await self.current_user()
async def current_user(self) -> dict:
ticket = self.ticket()
headers = {"Referer": f"{ORIGIN}/pro-portal/"}
if ticket:
headers["tgc"] = ticket
response = await self.client.get(CAS_USER, headers=headers)
data = _json_or_error(response, "读取登录用户失败")
if not data.get("loginId") and not data.get("userName"):
raise NqiError("登录状态已失效")
return {
"loginId": data.get("loginId") or "",
"userName": data.get("userName") or "",
"cityName": data.get("cityName") or "",
"orgName": data.get("orgName") or "",
}
async def layer_code(self, *, city_code: str, month: str, network: str) -> dict:
params = {
"dataType": "GRID",
"cityCode": city_code,
"date": month_end(month),
"gridSize": "GRID20",
"networkType": network,
}
payload = await self._signed_get(f"{GIS_API}/base/v2/zc/layerCode/get", params)
data = payload.get("data") or {}
service_code = data.get("serviceCode")
if not service_code:
raise NqiError(payload.get("msg") or "该月份没有数据")
version = str(data.get("version") or "")
expected = month.replace("-", "")
if version and not version.startswith(expected):
raise NqiError(f"{month} 暂无数据")
return data
async def grid_feature(self, service_code: str, grid_id: str) -> dict | None:
params = {
"maxFeatures": "5",
"SERVICE": "Wfs",
"VERSION": "",
"REQUEST": "Getfeature",
"outputFormat": "application/json",
"SRS": "EPSG:4326",
"STYLES": "",
"ak": APP_KEY,
"sig": wfs_sig(service_code),
"CQL_FILTER": f"grid20_id={grid_id}",
}
response = await self.client.get(
f"{GIS_PROD}/api/{service_code}/wfs",
params=params,
headers={"Referer": f"{ORIGIN}/pro-problem-warehouse-web/"},
)
if response.status_code in {401, 403}:
raise NqiError("登录已失效,请重新登录")
if response.status_code != 200:
raise NqiError(f"栅格查询失败({response.status_code})")
text = response.text.lstrip()
if text.startswith("<"):
raise NqiError("栅格查询被拒绝")
try:
payload = response.json()
except json.JSONDecodeError as exc:
raise NqiError("栅格查询返回的不是数据") from exc
features = payload.get("features") or []
if not features:
return None
return features[0].get("properties") or {}
async def cell_rows(self, service_code: str, grid_id: str, network: str) -> list[dict]:
body = {
"current": 1,
"data": str(grid_id),
"isPage": False,
"networkType": network,
"operatorType": "YD",
"serviceCode": service_code,
"size": 1000,
}
payload = await self._signed_post(f"{GIS_API}/base/v2/zc/cellInfo/page/compatible", body)
data = payload.get("data") or {}
records = list(data.get("records") or [])
total = int(data.get("total") or len(records))
page = 1
while len(records) < total and page < 20:
page += 1
body = {**body, "current": page, "isPage": True, "size": 1000}
payload = await self._signed_post(f"{GIS_API}/base/v2/zc/cellInfo/page/compatible", body)
extra = (payload.get("data") or {}).get("records") or []
if not extra:
break
records.extend(extra)
return records
async def _signed_get(self, url: str, params: dict) -> dict:
headers = build_sign(params)
headers["Referer"] = f"{ORIGIN}/pro-problem-warehouse-web/"
response = await self.client.get(url, params=params, headers=headers)
return _api_payload(response)
async def _signed_post(self, url: str, body: dict) -> dict:
headers = build_sign({})
headers["Referer"] = f"{ORIGIN}/pro-problem-warehouse-web/"
response = await self.client.post(url, json=body, headers=headers)
return _api_payload(response)
def _media_type(response: httpx.Response) -> str:
raw = response.headers.get("content-type", "image/jpeg").split(";", 1)[0].strip()
return raw or "image/jpeg"
def _json_or_error(response: httpx.Response, fallback: str) -> dict:
if response.status_code in {401, 403}:
raise NqiError("登录已失效,请重新登录")
try:
data = response.json()
except json.JSONDecodeError as exc:
raise NqiError(fallback) from exc
if not isinstance(data, dict):
raise NqiError(fallback)
return data
def _api_payload(response: httpx.Response) -> dict:
data = _json_or_error(response, "平台接口没有返回数据")
code = data.get("code")
if code not in (0, "0", None):
raise NqiError(str(data.get("msg") or data.get("message") or "平台接口返回失败"))
return data
+51
View File
@@ -0,0 +1,51 @@
"""平台地址与前端公开的签名参数。
签名用的 ak / secret 与门户页面脚本一致,用来按同样规则访问已登录用户自己的接口。
"""
from __future__ import annotations
ORIGIN = "https://nqi.gmcc.net:20443"
CAS_LOGIN = f"{ORIGIN}/cas/login"
CAS_CONFIG = f"{ORIGIN}/cas/getConfig"
CAS_SMS = f"{ORIGIN}/cas/sendCode1"
CAS_CAPTCHA = f"{ORIGIN}/cas/captcha.jpg"
PORTAL_SERVICE = f"{ORIGIN}/pro-portal/"
CAS_USER = f"{ORIGIN}/pro-portalv2/api/cas/getCasUser"
GIS_PROD = f"{ORIGIN}/pro-gis-tenant/gmcc-wyzc/prod-api"
GIS_API = f"{ORIGIN}/pro-gis-tenant/gmcc-wyzc/api"
APP_KEY = "1e395dc741b64ce1913cf411e6c08384"
APP_SECRET = "2d6f5e13b9d54c99bea58f46c2a45ddb"
SIGN_VERSION = "1.0.0"
USER_AGENT = (
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) "
"AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
)
# 来自门户 city 脚本,顺序与页面一致。全省没有栅格图层城市码,不提供下载。
CITIES: list[dict[str, str]] = [
{"name": "广州", "code": "GZ"},
{"name": "深圳", "code": "SZ"},
{"name": "佛山", "code": "FS"},
{"name": "东莞", "code": "DG"},
{"name": "惠州", "code": "HZ"},
{"name": "珠海", "code": "ZH"},
{"name": "茂名", "code": "MM"},
{"name": "江门", "code": "JM"},
{"name": "中山", "code": "ZS"},
{"name": "湛江", "code": "ZJ"},
{"name": "汕头", "code": "ST"},
{"name": "肇庆", "code": "ZQ"},
{"name": "揭阳", "code": "JY"},
{"name": "清远", "code": "QY"},
{"name": "阳江", "code": "YJ"},
{"name": "韶关", "code": "SG"},
{"name": "梅州", "code": "MZ"},
{"name": "潮州", "code": "CZ"},
{"name": "汕尾", "code": "SW"},
{"name": "河源", "code": "HY"},
{"name": "云浮", "code": "YF"},
]
+49
View File
@@ -0,0 +1,49 @@
"""复现门户脚本里的请求签名。"""
from __future__ import annotations
import hashlib
import time
import uuid
from urllib.parse import quote
from app.platform.constants import APP_KEY, APP_SECRET, SIGN_VERSION
_SKIP = {"sign", "SIG", "UPPER_SIG"}
def encode_uri_component(value: str) -> str:
return quote(value, safe="-_.!~*'()")
def build_sign(
params: dict | None = None,
*,
encode: bool = True,
timestamp: str | None = None,
nonce: str | None = None,
) -> dict[str, str]:
"""与页面 Ll() 一致:参数按键名排序后拼接,再 MD5 大写。"""
stamp = timestamp if timestamp is not None else str(int(time.time()))
nonce_str = nonce if nonce is not None else uuid.uuid4().hex
payload: dict[str, str] = {}
for key, value in (params or {}).items():
text = "" if value is None else str(value)
payload[str(key)] = text if text == "" or not encode else encode_uri_component(text)
payload["timestamp"] = stamp
payload["nonceStr"] = nonce_str
payload["version"] = SIGN_VERSION
raw = "".join(f"{key}{payload[key]}" for key in sorted(payload) if key not in _SKIP)
sign = hashlib.md5((raw + APP_SECRET).encode("utf-8")).hexdigest().upper()
return {
"sign": sign,
"timestamp": stamp,
"nonceStr": nonce_str,
"version": SIGN_VERSION,
"appKey": APP_KEY,
}
def wfs_sig(service_code: str) -> str:
"""WFS/WMS 的 sig 是 md5(服务编码 + secret),十六进制小写。"""
return hashlib.md5((service_code + APP_SECRET).encode("utf-8")).hexdigest()
View File
+5
View File
@@ -0,0 +1,5 @@
from pathlib import Path
REPO_ROOT = Path(__file__).resolve().parents[3]
DATA_ROOT = REPO_ROOT / "data"
DOWNLOAD_DIR = DATA_ROOT / "jobs"
+20
View File
@@ -0,0 +1,20 @@
from fastapi import HTTPException
from app.features.download.jobs import JobManager
from app.platform.client import LoginChallenge, NqiClient
class AppState:
def __init__(self) -> None:
self.flows: dict[str, tuple[NqiClient, LoginChallenge]] = {}
self.client: NqiClient | None = None
self.user: dict | None = None
self.jobs = JobManager()
def require_client(self) -> NqiClient:
if self.client is None or self.user is None:
raise HTTPException(status_code=401, detail="请先登录")
return self.client
state = AppState()
+20
View File
@@ -0,0 +1,20 @@
[project]
name = "nqi-backend"
version = "0.1.0"
description = "NQI 栅格下载本地服务"
requires-python = ">=3.11"
dependencies = [
"cryptography>=44",
"fastapi>=0.115",
"httpx>=0.28",
"openpyxl>=3.1",
"python-multipart>=0.0.20",
"uvicorn>=0.34",
]
[dependency-groups]
dev = ["pytest>=8.3"]
[tool.pytest.ini_options]
pythonpath = ["."]
testpaths = ["tests"]
+144
View File
@@ -0,0 +1,144 @@
import csv
import hashlib
import io
import threading
from pathlib import Path
from openpyxl import Workbook
from app.features.download.fields import columns_for
from app.features.download.ids import parse_table, parse_upload
from app.features.download.journal import CsvJournal
from app.platform.constants import APP_SECRET
from app.features.download.rows import build_rows
from app.platform.sign import build_sign, wfs_sig
from app.platform.client import month_end, rsa_encrypt
PUBLIC_KEY = (
"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwjDm1HXDw8QH5ZtGMQIl2h/I8E+"
"chOQA8aQ8xCR/+aHnROaN/ZU5Vmd2Zz7g6cAacR9BSm60+iSCYtvEGJKl0WqvbPGJkc8tedjNF1QqgWqkkuE6Udgw2OkEKJCxDg6PrAniR7Cc0io9G8bW4P8JDJjSbbafvMPDDFbVVUWJxxwIDAQAB"
)
def test_wfs_signature_matches_capture():
assert wfs_sig("HRwhGIb3") == "b1c5be69ecdd1247d669ddaff4224050"
assert wfs_sig("HRxs2eTA") == "ee021c49a89f7560c54a36835ec23d3a"
def test_request_sign_is_sorted_md5():
signed = build_sign({"cityCode": "JM", "dataType": "GRID"}, timestamp="1", nonce="abc")
raw = "cityCodeJMdataTypeGRIDnonceStrabctimestamp1version1.0.0"
expected = hashlib.md5((raw + APP_SECRET).encode()).hexdigest().upper()
assert signed["sign"] == expected
assert signed["appKey"]
def test_month_end():
assert month_end("2026-09") == "20260930"
assert month_end("2026-02") == "20260228"
def test_rsa_block_size():
encrypted = rsa_encrypt(PUBLIC_KEY, "demo")
assert len(encrypted) == 172
def test_grid_rows_repeat_metrics_per_cell():
columns = columns_for("NR", None)
rows = build_rows(
"541927061",
{"grid20_id": "541927061", "city_name": "江门", "ssb_rsrp_yd": -83.38, "mro_total_yd": 3080},
[
{"cgi": "126160-1", "mro_total": 2067, "ssb_rsrp": -80.37, "rsrp_lt_neg105": 7},
{"cgi": "126160-2", "mro_total": 886, "ssb_rsrp": -91.11, "rsrp_lt_neg105": 13},
],
columns,
)
labels = [column.label for column in columns]
assert len(rows) == 2
assert rows[0][labels.index("20米栅格ID")] == "541927061"
assert rows[1][labels.index("20米栅格ID")] == "541927061"
assert rows[0][labels.index("小区ID")] == "126160-1"
assert rows[1][labels.index("小区ID")] == "126160-2"
assert rows[0][labels.index("中国移动SSB-RSRP(dBm)")] == "-83.38"
assert "中国移动SSB-RSRP(dBm)" in labels
assert "RSRP(dBm)" in labels
def test_missing_cells_keep_one_blank_row():
columns = columns_for("LTE", ["samples"])
rows = build_rows("10001", {"city_name": "江门", "mro_total_yd": 3}, [], columns)
labels = [column.label for column in columns]
assert len(rows) == 1
assert rows[0][labels.index("20米栅格ID")] == "10001"
assert rows[0][labels.index("小区ID")] == ""
assert rows[0][labels.index("中国移动MR总数")] == "3"
assert "中国移动RSRP(dBm)" not in labels
def test_missing_grid_still_writes_requested_id():
columns = columns_for("NR", [])
rows = build_rows("42", None, None, columns)
labels = [column.label for column in columns]
assert len(rows) == 1
assert rows[0][labels.index("20米栅格ID")] == "42"
assert rows[0][labels.index("小区ID")] == ""
def test_parse_ids_from_header_and_duplicates():
rows = parse_table([["20米栅格ID", "备注"], ["541927061", "a"], ["541927061", "b"], ["12", "c"], ["", ""]])
assert rows == ["541927061", "12"]
def test_parse_plain_lines_and_xlsx(tmp_path: Path):
text = tmp_path / "ids.txt"
text.write_text("541927061\n544536471\n", encoding="utf-8")
assert parse_upload(text) == ["541927061", "544536471"]
book = Workbook()
sheet = book.active
sheet.append(["栅格ID"])
sheet.append([544536471])
path = tmp_path / "ids.xlsx"
book.save(path)
book.close()
assert parse_upload(path) == ["544536471"]
def test_journal_discards_uncommitted_tail(tmp_path: Path):
csv_path = tmp_path / "out.csv"
progress = tmp_path / "progress.jsonl"
journal = CsvJournal(csv_path, progress, ["栅格", "小区"])
journal.open()
assert journal.write_rows("1", [["1", "a"], ["1", "b"]]) == 2
journal.close()
with csv_path.open("ab") as handle:
handle.write("垃圾,数据\r\n".encode("utf-8"))
journal.open()
assert "1" in journal.completed
assert "垃圾" not in csv_path.read_text(encoding="utf-8")
assert journal.write_rows("1", [["1", "again"]]) == 0
assert journal.write_rows("2", [["2", ""]]) == 1
journal.close()
body = list(csv.reader(io.StringIO(csv_path.read_text(encoding="utf-8-sig"))))
assert body == [["栅格", "小区"], ["1", "a"], ["1", "b"], ["2", ""]]
def test_journal_writes_do_not_interleave(tmp_path: Path):
csv_path = tmp_path / "out.csv"
journal = CsvJournal(csv_path, tmp_path / "progress.jsonl", ["组", "序号", "内容"])
journal.open()
def write_group(name: str) -> None:
for index in range(20):
journal.write_rows(f"{name}-{index}", [[name, str(index), "甲" * 30]])
threads = [threading.Thread(target=write_group, args=(name,)) for name in ("甲", "乙")]
for thread in threads:
thread.start()
for thread in threads:
thread.join()
journal.close()
rows = list(csv.reader(io.StringIO(csv_path.read_text(encoding="utf-8-sig"))))
assert len(rows) == 41
assert all(len(row) == 3 for row in rows)
assert {row[0] for row in rows[1:]} == {"甲", "乙"}
+620
View File
@@ -0,0 +1,620 @@
version = 1
revision = 3
requires-python = ">=3.11"
[[package]]
name = "annotated-doc"
version = "0.0.5"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/5a/8e/38aa427ed5402449e226975b649c5dc73ccadfefeb95e6aecb8f8ea4b6b6/annotated_doc-0.0.5.tar.gz", hash = "sha256:c7e58ce09192557605d8bbd92836d7e1d520ac9580096042c0bfd197efacf1bb", size = 10758, upload-time = "2026-07-28T13:50:58.129Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/3e/30/e900b21425a860e195f32e37657aa1f7c7f2b1bfb26f03ca209b90933c06/annotated_doc-0.0.5-py3-none-any.whl", hash = "sha256:117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101", size = 5302, upload-time = "2026-07-28T13:50:57.239Z" },
]
[[package]]
name = "annotated-types"
version = "0.8.0"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/5f/56/a8120250d128bed162cd73c76d45f6ef9991f3e068f62a8ee060afa3104a/annotated_types-0.8.0.tar.gz", hash = "sha256:13b2beaad985e05e2d6407ee4c4f35590b11f8d693a258a561055cac8f64cab7", size = 15893, upload-time = "2026-07-23T20:16:13.995Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/99/91/8acff4f5e50511b911bbccb72b8628a49c68ce14148cd9f6431094859a90/annotated_types-0.8.0-py3-none-any.whl", hash = "sha256:f072f4d804ea359e4eaf198b1af7a8b0943881a87f31bb764f8bf219bb9419e0", size = 13427, upload-time = "2026-07-23T20:16:12.938Z" },
]
[[package]]
name = "anyio"
version = "4.15.1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "idna" },
{ name = "typing-extensions", marker = "python_full_version < '3.15'" },
]
sdist = { url = "https://files.pythonhosted.org/packages/a9/d2/f4d173e22df740bc37b1db102b386ba719b66e95b0f0d751f556b387e6d2/anyio-4.15.1.tar.gz", hash = "sha256:9f28306018cbd6d329e64a36d58256edff76dd996fe423bc957326e578b82a94", size = 276966, upload-time = "2026-09-05T10:42:39.44Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/12/b8/4bd346e22b28902df4d651910f5242c28d84e4a5c2435ca5c3f797ed7e2e/anyio-4.15.1-py3-none-any.whl", hash = "sha256:6152fdbbf9a77fdec97731721bebf7c4c44f7c29b424b0065826173efc7ed101", size = 132079, upload-time = "2026-09-05T10:42:37.923Z" },
]
[[package]]
name = "certifi"
version = "2026.10.23"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/fd/11/b524cbd9bbdaca58608e4cf4053fd463417549e1959fa8d3aa18319f9555/certifi-2026.10.23.tar.gz", hash = "sha256:a9895e6e2758b371e0545e321a3a8fd1fcfd9829ada8824a936dfb16aaaf36cd", size = 136225, upload-time = "2026-10-23T11:36:16.478Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/32/d1/a3652fe2c19134d0d15922177821d863cbd7e842d53a21bbe7e8e3a1b5ac/certifi-2026.10.23-py3-none-any.whl", hash = "sha256:e9b54de76e530bb6cf0ccd036787103acb58fd42ba930ea8bf948ddbaa2f61d1", size = 135082, upload-time = "2026-10-23T11:36:14.763Z" },
]
[[package]]
name = "cffi"
version = "2.1.1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "pycparser", marker = "implementation_name != 'PyPy'" },
]
sdist = { url = "https://files.pythonhosted.org/packages/9e/ef/008a1939e372c06329a3fce4279c02f328488f3526744906eeec3da7ad5f/cffi-2.1.1.tar.gz", hash = "sha256:dd31f52ea1086513bb9df30f8fcee9b8918323ae067a3d5b78bc826a000712be", size = 530807, upload-time = "2026-08-03T21:21:18.939Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/70/d2/16d99a0c4948febc0ebd133a13b2f688ff7f8cb04da971e1128872ce0c03/cffi-2.1.1-cp311-cp311-macosx_10_15_x86_64.whl", hash = "sha256:c8d2c9fd1f2d16f780d15127abb050d13d1a76c03a4bd87d7e4980e45e511e12", size = 183838, upload-time = "2026-08-03T21:19:29.637Z" },
{ url = "https://files.pythonhosted.org/packages/cd/95/31b535a9f0220ae9f357de4a08d57ce89cb417653c2fd9f075f50822a388/cffi-2.1.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:398aff33cee2767e3e781d2554c54bd0dff386bb437581e0d8011fde1a942ec1", size = 184168, upload-time = "2026-08-03T21:19:30.764Z" },
{ url = "https://files.pythonhosted.org/packages/ad/5a/4707a0dc1f203f5dde5a907b0d4e3c25d71120241048bd5bc6f1bb9d4e71/cffi-2.1.1-cp311-cp311-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:154852545011f779917b11c78db2358d095da62a9a172b78ad0a583ee5adc0d0", size = 211805, upload-time = "2026-08-03T21:19:31.867Z" },
{ url = "https://files.pythonhosted.org/packages/ad/66/c19feabb28485b6e0bbaaafa90837a1ef5d302e90f2178bd33f17a49879b/cffi-2.1.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:3311ed60d36f83378794e1009ac6258bafbf81f7888b4caa7b35a521e3f95813", size = 218716, upload-time = "2026-08-03T21:19:32.896Z" },
{ url = "https://files.pythonhosted.org/packages/a7/92/500760486c8baab49a7a8a58ba7fc3355ec3974b454b8a09e528efde9e1d/cffi-2.1.1-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:6e192623c49c94421616a5778fba35cf0d5a8d000650c1967ef4448ee5cdd990", size = 205569, upload-time = "2026-08-03T21:19:34.142Z" },
{ url = "https://files.pythonhosted.org/packages/a5/a7/a67c733254d6e7373f7822f8082d8d6beade791e0cf12a7611f376fa61c7/cffi-2.1.1-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:a6e721d4b0e45d5b65e87534470e67b18dcd092c83f68fba09f152b9cbc061af", size = 204907, upload-time = "2026-08-03T21:19:35.174Z" },
{ url = "https://files.pythonhosted.org/packages/f7/a4/4399daaf8f7dfee9d7c3327fdb0426ee041cc63edc358b93911ceb2bfc7a/cffi-2.1.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:34e261f78cb6ceaaa36f42f2613f4380d94d9c759a9c73c769ee6e0247364632", size = 217807, upload-time = "2026-08-03T21:19:36.286Z" },
{ url = "https://files.pythonhosted.org/packages/28/f7/dabe6da2466ecbd82dc62e7342dc6b1065dad990c06f00f0ede9ebf2a0ed/cffi-2.1.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:7225e4514edb64eb6740324353e0da0711954fd8d7da4576755b1c6e09b697cd", size = 221252, upload-time = "2026-08-03T21:19:37.416Z" },
{ url = "https://files.pythonhosted.org/packages/ce/87/616202d8e51342c07d2534c510111c4cc37201775ce8f60802c9335d1edd/cffi-2.1.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:df913725b79db7bcf03448f36b7bf8815363417d5b58deecf9305e3e30f0f21a", size = 214214, upload-time = "2026-08-03T21:19:38.507Z" },
{ url = "https://files.pythonhosted.org/packages/b4/c6/ab025d75d2c26c19b087c0124e75ee31cb65032f4fe345d356d8c507ab97/cffi-2.1.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:f5cfbc5fe74540d335175b656c725d74d90e3730c626d92575eea35029d9afaa", size = 219408, upload-time = "2026-08-03T21:19:39.809Z" },
{ url = "https://files.pythonhosted.org/packages/db/e2/7e8109f65445bdc673a7b54f02c677de462db75674220fd1335efc8eb598/cffi-2.1.1-cp311-cp311-win32.whl", hash = "sha256:f8ec5e643a9a937f64e1999eb9f75d072263751912dc5cd06d3c85f8f44be7c3", size = 174470, upload-time = "2026-08-03T21:19:41.246Z" },
{ url = "https://files.pythonhosted.org/packages/73/c0/77ba02423c2f7d7091143c45cd49e0e6575c4c1967394bb542bd923a9b74/cffi-2.1.1-cp311-cp311-win_amd64.whl", hash = "sha256:42f6930c31dc7f50732c9ae793c2786c7b6b044195967bbdde40bb9be81c4cc0", size = 185096, upload-time = "2026-08-03T21:19:42.615Z" },
{ url = "https://files.pythonhosted.org/packages/7c/47/9f1f85f9672ceda4984dc6c4f8824e8558992a2972c3d3c81fb8eb28d4ba/cffi-2.1.1-cp311-cp311-win_arm64.whl", hash = "sha256:c7659f22557c5a0bc4855cd635f55edec690cc008a40768527762cb9fb263455", size = 179941, upload-time = "2026-08-03T21:19:43.747Z" },
{ url = "https://files.pythonhosted.org/packages/10/69/43965eccfdead3b9220015fd1320e117be8c6ed01a62ffab76eeb752f5d5/cffi-2.1.1-cp312-cp312-macosx_10_15_x86_64.whl", hash = "sha256:c8c69575568085ba0b1b10c0249d779a214aea6f6522e949a0fc9fb0fcb449d0", size = 184821, upload-time = "2026-08-03T21:19:44.887Z" },
{ url = "https://files.pythonhosted.org/packages/54/7d/16e5a096677b5e313ca80cd5e5170efa3ea44624a82bb111925522da64b1/cffi-2.1.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:f81b3b8f3d4e343550fa4baa0e479bba9f2d29ce9c2e9b51d1ce1718d7442fcf", size = 184719, upload-time = "2026-08-03T21:19:46.129Z" },
{ url = "https://files.pythonhosted.org/packages/56/e6/8941622732edec876dd17d0453dce07317ae96db34f2ec1436c9d3785986/cffi-2.1.1-cp312-cp312-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:811bd1e21d32de12efca32393a0ab3f5133b54fce9bd44b8bd77ab07da14bf6a", size = 214799, upload-time = "2026-08-03T21:19:47.218Z" },
{ url = "https://files.pythonhosted.org/packages/44/de/f98430906df1545ffde0d543dd124a7a439bc2cd32b36b9c53f805df7333/cffi-2.1.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:68e62fe11f30d5ca8289242866f0a5291402d8529ca2178ab8afc5c9694ae890", size = 222389, upload-time = "2026-08-03T21:19:48.331Z" },
{ url = "https://files.pythonhosted.org/packages/6a/5b/717f1526b9957b34456313c31645c5b82b8fb5c3fe9e4752999be7128bfc/cffi-2.1.1-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:4a7c934f7360e8cd64fe9efadcbd10c7c6364f531e432b9a4bf5ccbc9e0e8b50", size = 210249, upload-time = "2026-08-03T21:19:49.543Z" },
{ url = "https://files.pythonhosted.org/packages/64/b3/f8aa4f3e34986c7e4ec45072d1b1b9dd295b6b18007b45518d79726dd725/cffi-2.1.1-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:3143d81e29e1e20a9ce10901ec369012947876596f75a222235965f2b7ae832e", size = 208775, upload-time = "2026-08-03T21:19:50.918Z" },
{ url = "https://files.pythonhosted.org/packages/b1/db/dceb9dd5b231e1da801793f8acc9f3c52a7e1afe40bb1aae37e02b0faad5/cffi-2.1.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:c1453022f490d2459a11819d83ad1d586e9ff65a12ac3e705ffebd46d3685dcf", size = 221822, upload-time = "2026-08-03T21:19:52.054Z" },
{ url = "https://files.pythonhosted.org/packages/a0/d2/6cd24ae3be000a634109c247d1475d62e5616d0dc78c82770942ec384248/cffi-2.1.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:208f941bb9d18e768138677f0a6d2ce01f590df56043dda1df1535ac57c88517", size = 225232, upload-time = "2026-08-03T21:19:53.109Z" },
{ url = "https://files.pythonhosted.org/packages/cb/52/3fa190537004dd7f0ab860a6dc7c0175b8667f68d1e618a46f5498d30250/cffi-2.1.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:210019b6c7cf07f081b4c54635c8cf744377001350e29cc0f81c4377b4797735", size = 223597, upload-time = "2026-08-03T21:19:54.515Z" },
{ url = "https://files.pythonhosted.org/packages/80/fb/0bb75b7039588c074b37ae99f40d9bfddf990ecb2fbc346ebccd2e56b9be/cffi-2.1.1-cp312-cp312-win32.whl", hash = "sha256:046bfc24911b37851ee1b51aab8bffe713d89c68c6a057b09484ce9fd5f69b4e", size = 175292, upload-time = "2026-08-03T21:19:55.566Z" },
{ url = "https://files.pythonhosted.org/packages/d9/79/615cc094e2fb508cade7de88d3b4f6c4ec2bab695c97bce9153dc65aadf5/cffi-2.1.1-cp312-cp312-win_amd64.whl", hash = "sha256:f53e442b08449d42821fa4a4fba000095af9f62742a500f978a9f557ec44339a", size = 185919, upload-time = "2026-08-03T21:19:56.89Z" },
{ url = "https://files.pythonhosted.org/packages/70/c6/d0ea84713fe46b243a436a18fcd47d639732747e21635c8a27191b06dc30/cffi-2.1.1-cp312-cp312-win_arm64.whl", hash = "sha256:7bde5e4cc5c10140859842b9d383af292b22639a4dffb725314baf45968cef80", size = 180093, upload-time = "2026-08-03T21:19:58.155Z" },
{ url = "https://files.pythonhosted.org/packages/9d/f4/035513d4117049066b4779dc3b7c0c0fdad175fa13731c9f4003f1cd1478/cffi-2.1.1-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:b5bdfd1c873d4e093aabc0ca84c4ca6dbc4f752afb5c86f146d9742580c9da2e", size = 194248, upload-time = "2026-08-03T21:19:59.399Z" },
{ url = "https://files.pythonhosted.org/packages/76/af/2aeb4dbb5fc41a04161ae9ff1518de7cec08e164f44a8ce6a4cf7fd2cd1d/cffi-2.1.1-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:31348097ff5bbe827ccc41795d4dd099d9f0625e7def00ee653c137a490c2a6c", size = 196908, upload-time = "2026-08-03T21:20:00.746Z" },
{ url = "https://files.pythonhosted.org/packages/a7/46/2e5fdde8555706dd98139a910ca11be02809f3f605ce956f655d0214e100/cffi-2.1.1-cp313-cp313-macosx_10_15_x86_64.whl", hash = "sha256:9d2055050ea716bd38b7f7f1579c275386646b4894c155a3e2f3cd62ed41b7c6", size = 184805, upload-time = "2026-08-03T21:20:02.02Z" },
{ url = "https://files.pythonhosted.org/packages/55/41/4c7042f317b9217502988f0873af87e16ad606dc20f84e546e3e6ce9764c/cffi-2.1.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:19ee6127ee34de7d83ce3d371ebc5ed91addbdcc39f9ab15ce4eb35a4e534971", size = 184764, upload-time = "2026-08-03T21:20:03.141Z" },
{ url = "https://files.pythonhosted.org/packages/43/1f/1c3d90d91811c8f86ced9ed637956c54bfe5b79ca98fe976d7f8c8979f6b/cffi-2.1.1-cp313-cp313-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:6a8dddef476fab96d066d578fc88526767b836ab5ab21754e1d5bf3879c31c7c", size = 214722, upload-time = "2026-08-03T21:20:04.377Z" },
{ url = "https://files.pythonhosted.org/packages/37/6f/3b5ce4c3b2192d250f04908f2bfd91ef34552ec8f7716a5d4abdb8d67bb2/cffi-2.1.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:f16c709686a78c727bbbf059f92b0bf41c6fc60deec706d2dc19f529175a6125", size = 222369, upload-time = "2026-08-03T21:20:05.544Z" },
{ url = "https://files.pythonhosted.org/packages/02/10/4b3c75dde3d9663c9e02ba05c2668b954f671d4bbe346413ca8c696b295a/cffi-2.1.1-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:fcd22650c908d7b7da162bbfaab594a1227a15d1643a98c68b122ac642fa2264", size = 210175, upload-time = "2026-08-03T21:20:06.75Z" },
{ url = "https://files.pythonhosted.org/packages/df/62/14f74b9543e605d17701dc797b815958b8bb70b7624ce1b832ddad48ed6c/cffi-2.1.1-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:aa9511c62d14da7aacc9b4bf51f3f697a621e83b2d6919008243c3aad168eea3", size = 208670, upload-time = "2026-08-03T21:20:08.04Z" },
{ url = "https://files.pythonhosted.org/packages/95/95/86342356ff5953b3fb06f7ef7c5bee212d45e770abc7218d451b9148313c/cffi-2.1.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:a931079504ecc49efed7744c476a5c343a92fabf66dec2db95edb1b2fdc770e2", size = 221824, upload-time = "2026-08-03T21:20:09.274Z" },
{ url = "https://files.pythonhosted.org/packages/eb/ff/7b3429ff53aafe931ed8a5fc69f481bbef7ba6de87ddcbb63d08f483f613/cffi-2.1.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:a2d7755bef5a12ed488f4ef1f1b69ee9191d7396083b755a5d2295f6edb4768b", size = 225148, upload-time = "2026-08-03T21:20:10.7Z" },
{ url = "https://files.pythonhosted.org/packages/34/34/a95870b9221e09cf4f2ce3178b1a210abdfe63a1bd357da940418d7b8d15/cffi-2.1.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:e0bcb7e0f677f543555d2adff3bf19c05f66cdb4796e5ff602442ab2fe3c4ef7", size = 223564, upload-time = "2026-08-03T21:20:12.165Z" },
{ url = "https://files.pythonhosted.org/packages/70/ea/839b50531021a647fb5e929f72cf97bc1ff702b5472166164b5b6e76b851/cffi-2.1.1-cp313-cp313-win32.whl", hash = "sha256:334644fbac4eff73d985a17a91226df55d0f394160c4cfb880e084c8f7161cac", size = 175263, upload-time = "2026-08-03T21:20:13.559Z" },
{ url = "https://files.pythonhosted.org/packages/60/a6/8b149b2c3f2e11aaa1618ef64500b45f50f22c57a977a4dff1aff1f91042/cffi-2.1.1-cp313-cp313-win_amd64.whl", hash = "sha256:1aa5645c30469b09530c4ebca77ebf8f17618293c58f8549cb1a543a50236e7d", size = 185688, upload-time = "2026-08-03T21:20:14.69Z" },
{ url = "https://files.pythonhosted.org/packages/01/9a/11f687cb39d6a3504060d5242f04f48c735afb4d3d533958a20594890cb2/cffi-2.1.1-cp313-cp313-win_arm64.whl", hash = "sha256:63bbfd5ded17c4840ac07cd8f1c21ba9d9708141f840b324f422f41b207e3973", size = 180078, upload-time = "2026-08-03T21:20:15.917Z" },
{ url = "https://files.pythonhosted.org/packages/d3/7b/d6bbf82b8b96e7391438898c42f5bd96dd02030fd5b64937d248220003e2/cffi-2.1.1-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:7dbb61fe3a7699468030f71bbe5f8a0e326a151daa91beb11a6fc1f980c55e1c", size = 194064, upload-time = "2026-08-03T21:20:17.148Z" },
{ url = "https://files.pythonhosted.org/packages/94/e6/bcc91b283be94735e268487a054004f0aa19947b6348fa367db53230abc8/cffi-2.1.1-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:f24fb43132a4c6b4cb4eb029492919b2db645be6808d738f244fd146c03c32cb", size = 196720, upload-time = "2026-08-03T21:20:18.268Z" },
{ url = "https://files.pythonhosted.org/packages/d9/99/c4b0c17cacdc9c3b8f280026286a9826d6a208c0f047591a3c3ce99b91fd/cffi-2.1.1-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:d28630f5854ab07ab1fd4aba756de52326c82e6be15d414b12793f1975048b54", size = 184964, upload-time = "2026-08-03T21:20:19.708Z" },
{ url = "https://files.pythonhosted.org/packages/b3/a9/9db617d05d7367c1ad0ab00b3aa6e6f9281edd689b4ee9ea0e5a84e89c97/cffi-2.1.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:661c298b4821edebead0c91edd2b00374d67ad7c5a1f7a91d4442633b79d6a72", size = 184962, upload-time = "2026-08-03T21:20:20.833Z" },
{ url = "https://files.pythonhosted.org/packages/67/b8/b42132ca113dc567d37684437b46ca1dafc885902b02a110a02d5b511857/cffi-2.1.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:58acb8ab8e295e6c5ea12f888cbb13cf21511ef2a3303a23f4325c29d17fe5c1", size = 222328, upload-time = "2026-08-03T21:20:22.118Z" },
{ url = "https://files.pythonhosted.org/packages/80/10/c5c0cbf0a657aecf59ef511409734230bf556f05a0d6c9eed7aa5c0a0166/cffi-2.1.1-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:456a61fa52d579ebf9df2e9552ead5129855dbaff6c1e5a9b1bc408809bdc062", size = 209985, upload-time = "2026-08-03T21:20:23.401Z" },
{ url = "https://files.pythonhosted.org/packages/d5/6c/bfa0b87b03b9238148beca990292843c9396ba069b54496596594173de7b/cffi-2.1.1-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:a4f00aa42f75d6e4595e8866e748cc1705adc0cddfeb2ca86d0d03993d63ba03", size = 208530, upload-time = "2026-08-03T21:20:24.628Z" },
{ url = "https://files.pythonhosted.org/packages/e9/02/4e7d553a7ac4b4238b38b3c1b80d486e9d4436f8d2acbf87a0997fe3f402/cffi-2.1.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:b0431303acaea1089ad4b3e9ce4e6518193def1118d4073ca848635ee4ea2e96", size = 221525, upload-time = "2026-08-03T21:20:25.758Z" },
{ url = "https://files.pythonhosted.org/packages/82/1d/a4aaf9babd75acb4d5f223bff71533bee748dd770a382619a798960ee9ba/cffi-2.1.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:64faea20f4e2613363a1a9b9c7dd73058f3ecd00133a511e72ad7c511658f527", size = 225053, upload-time = "2026-08-03T21:20:26.985Z" },
{ url = "https://files.pythonhosted.org/packages/81/10/5dc0e7bdd18e22107054288283380fc97a06ae3f1656a106908d666a3c88/cffi-2.1.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:5c58fe613dc5e5336357eff555824a314d8e43282600435c8d1cb6a7a2fedd13", size = 223213, upload-time = "2026-08-03T21:20:28.277Z" },
{ url = "https://files.pythonhosted.org/packages/0b/e9/d0061c364cde06ee43168a0d076ac1da512cbc380d44767b844ba34fe2b6/cffi-2.1.1-cp314-cp314-win32.whl", hash = "sha256:1a18a57b58cfb21fc28d72e876acf10eaed67a1ed96226f92af4df681d571c4c", size = 177682, upload-time = "2026-08-03T21:20:44.288Z" },
{ url = "https://files.pythonhosted.org/packages/a7/06/1c3e01e3ba14c39f6d10bfbac52753b7e22259e38088e5cfe1d704918690/cffi-2.1.1-cp314-cp314-win_amd64.whl", hash = "sha256:3222ba5d678f80a030e6afbcc33dc1ae5cb45facabb61cee2c7016b8432fde48", size = 187949, upload-time = "2026-08-03T21:20:45.623Z" },
{ url = "https://files.pythonhosted.org/packages/87/5b/da4e39efe18eeb89cf580ea9cfc66b6a7c3eadb808fc0cc1d3a295cb5a5d/cffi-2.1.1-cp314-cp314-win_arm64.whl", hash = "sha256:ab36d55f9ed2d067327667c2fea18dda018eb628dd6347aa01dda6cf1f5d3836", size = 182947, upload-time = "2026-08-03T21:20:46.955Z" },
{ url = "https://files.pythonhosted.org/packages/23/59/40338bf421c5accea1d45158170c87006ef1cd371b05c077e76476949728/cffi-2.1.1-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:7750c6449dff7864bb9bb27ddfb0267756189201a3afc911d82b3caacd70dfc3", size = 188504, upload-time = "2026-08-03T21:20:29.495Z" },
{ url = "https://files.pythonhosted.org/packages/7d/47/5ecf1023850036e674c77ec4de86182d309ae344e39e7cba984b7df5d647/cffi-2.1.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:0beceaabe56af686895136a2de78db54ecd8e4046b236b8fd6d6cb61389e9bf2", size = 188259, upload-time = "2026-08-03T21:20:31.291Z" },
{ url = "https://files.pythonhosted.org/packages/2a/9c/92934c3bea9f785b23eba304538c0b4d37a2a96d2431eb3a1bc87a11aa19/cffi-2.1.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:49cbc70e6542d4ccccb936558d1064a8012541e78f821f955cff24e357776c94", size = 223864, upload-time = "2026-08-03T21:20:32.571Z" },
{ url = "https://files.pythonhosted.org/packages/4d/45/ba4c93527bc38616a8bd36488acb69a2212d60486794f0c1f318949bbb76/cffi-2.1.1-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:e2d65b31f36619cda3999b78b2aa9632e76b78448e7a56fc4240824200e7c4fc", size = 211538, upload-time = "2026-08-03T21:20:33.808Z" },
{ url = "https://files.pythonhosted.org/packages/80/e9/b6ef565e452acb932fb0cb5443f44a78efbd1233e566f02b5a83855e9115/cffi-2.1.1-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:28907ab9bfb6aa13184cfc17c6b8e1023c5ab6fd7076d8c20a35e59fe04f8f29", size = 210688, upload-time = "2026-08-03T21:20:34.974Z" },
{ url = "https://files.pythonhosted.org/packages/9a/95/eff5f0cee78d2eabc7eebffec40d3fc1876b5f3c95582e018bb4b99601f2/cffi-2.1.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:51b31d1c98274844cfd7838ce00bfc27c7423a4dc00fc0772fc3331c2cc90676", size = 223803, upload-time = "2026-08-03T21:20:36.564Z" },
{ url = "https://files.pythonhosted.org/packages/fa/01/579d39fb8bef00a335a23d83757b44feb24cd6345a2c451b64cb67b9c362/cffi-2.1.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:5e7cecbaadb83884793e05828cee59b210b24583b9c7425d0ba6a754fe22eb4e", size = 226763, upload-time = "2026-08-03T21:20:37.816Z" },
{ url = "https://files.pythonhosted.org/packages/8d/b0/0b44f47c60b01b57b6e2bbd92343f13a85a1d93bc46ccf6e47e244acd99c/cffi-2.1.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:25792eac27877609e7bb06d42ff88278a6624fff2ba9bbb523c09616b117e80f", size = 225688, upload-time = "2026-08-03T21:20:38.959Z" },
{ url = "https://files.pythonhosted.org/packages/eb/d2/3b7176cb570a1d3e27faf67b72f591af508036e0d8b2be2ef9af9e8c84bb/cffi-2.1.1-cp314-cp314t-win32.whl", hash = "sha256:8ef53b2de9bcb9197d31854256575d59dbac0cba72ac627bb291ef5eceb74be4", size = 182868, upload-time = "2026-08-03T21:20:40.388Z" },
{ url = "https://files.pythonhosted.org/packages/56/78/31f00c1bcd97c9bbf55f1bfdf5bc809a5de8887473e90bb9960dca825e80/cffi-2.1.1-cp314-cp314t-win_amd64.whl", hash = "sha256:616f097f2fe415bc92a247f02e11f634e1f9e9a83d327e3c915c15089c87869e", size = 194104, upload-time = "2026-08-03T21:20:41.725Z" },
{ url = "https://files.pythonhosted.org/packages/7b/1b/58496f2ed0a35de575250c02a43ab3cc2c04d494a88fed31c1cabc0fd176/cffi-2.1.1-cp314-cp314t-win_arm64.whl", hash = "sha256:ad2c86c495b899d862ea0f4b42891b8713a3bd45dd4105c7fd51c2a72f39f3a5", size = 186402, upload-time = "2026-08-03T21:20:43.042Z" },
{ url = "https://files.pythonhosted.org/packages/c1/8f/9ebe220eab48a093d1a5a5e339ab0dc7316eef3bb04d63c42f0251b61f50/cffi-2.1.1-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:dddad92b554513a31f272570678ba307fb9f618f05e3d4a5eacafff9eae03e1d", size = 194043, upload-time = "2026-08-03T21:20:48.179Z" },
{ url = "https://files.pythonhosted.org/packages/ff/69/844bad3ece306c4782c2ecb93597035b6690d48704b803914c199da1e8b3/cffi-2.1.1-cp315-cp315-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:da0e573f9f97159390c89d9f1a9e41908b66d408cc5b58d08cf3847d844c531b", size = 196737, upload-time = "2026-08-03T21:20:49.457Z" },
{ url = "https://files.pythonhosted.org/packages/1b/8a/af668013284634733f02d683458a0728739c7d6ddb5e14cb0c20832266fe/cffi-2.1.1-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:fb92203a88b3d3053034db775110081c49d28be6551923805e039924093761e4", size = 184933, upload-time = "2026-08-03T21:20:50.639Z" },
{ url = "https://files.pythonhosted.org/packages/0c/75/2f5207ff6d1a613133b23a5203cc0c2a628313b5eb3974d7956ae3c57950/cffi-2.1.1-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:2ae64be792b8966f2c69538199728b290e34726562896df1e5dc8ffd8d8188e8", size = 185002, upload-time = "2026-08-03T21:20:52.173Z" },
{ url = "https://files.pythonhosted.org/packages/e2/31/9e1313b0a6e30e91b3b3d3fff51ae99c857c07738e3afcce1f7334e1b7ab/cffi-2.1.1-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:507a24c282e0f42f8ed737cf048572cbf580468da5555764a8331735e9c736b6", size = 222271, upload-time = "2026-08-03T21:20:53.462Z" },
{ url = "https://files.pythonhosted.org/packages/50/e3/f6234a833e6e08c7007003074723c406559eecf9b48dfc97471e5a8eb7a0/cffi-2.1.1-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:246fa40ce8645a614ff682e0b70f37134e460eaf93a775e0cbe3cca585a67a80", size = 209919, upload-time = "2026-08-03T21:20:54.783Z" },
{ url = "https://files.pythonhosted.org/packages/0d/fc/5f74e293fced6edb51af3a46c4ccf6c23c9943774ecb375ddbd522c76add/cffi-2.1.1-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:471cee653ae88de62096552e6d24ccb4a5adb8c8c9f10b5054d0122c15bf2779", size = 208529, upload-time = "2026-08-03T21:20:56.066Z" },
{ url = "https://files.pythonhosted.org/packages/44/16/29e6d01b388bef055ecd6ca8244b3f4d336bd09e92d5d892187b9601084e/cffi-2.1.1-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:aeae0e330c9f6acd681f647d46cefd30c29f93e3392882e792e82080c9691399", size = 221630, upload-time = "2026-08-03T21:20:57.336Z" },
{ url = "https://files.pythonhosted.org/packages/a4/18/fa7f1f6857d5eb88a4ca99ffcbfb7c387a287ccc154c64a73e86314745d7/cffi-2.1.1-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:42a494cee34437f05546455144f2b5d9ac09b1face62bcfce597d2e521066688", size = 225134, upload-time = "2026-08-03T21:20:58.675Z" },
{ url = "https://files.pythonhosted.org/packages/e0/9f/e8e3dfa04a1b4c241f8c91faacad872b4d4efd051d49764ad4e2fd4b9fea/cffi-2.1.1-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:cc572dace3f60ef98d7b12ff411d20f5362feb31a0439eab0085bbfd349982d7", size = 223197, upload-time = "2026-08-03T21:20:59.968Z" },
{ url = "https://files.pythonhosted.org/packages/f8/7e/8debeb04f1ab9fe2a6963964cd6f1aaf7192627b83926586a6a4e089c9fa/cffi-2.1.1-cp315-cp315-win32.whl", hash = "sha256:4f42141fc14250de6dde5ee7ea4432be017252d91f19c5ad043c084cea629cac", size = 177683, upload-time = "2026-08-03T21:21:14.901Z" },
{ url = "https://files.pythonhosted.org/packages/e0/31/5158704cc474ab65c1647932e88be78dc0873f47130e253be38bcaf13d01/cffi-2.1.1-cp315-cp315-win_amd64.whl", hash = "sha256:e6e8cff14d6fb0be70a09c0bdc58096f501952d04624ebf867e0e56da2df8960", size = 187897, upload-time = "2026-08-03T21:21:16.108Z" },
{ url = "https://files.pythonhosted.org/packages/cc/4b/b3a2da8570c704ffc0f9762cdc3ec0f02c8573798e0b5cf7f11c82bbb70f/cffi-2.1.1-cp315-cp315-win_arm64.whl", hash = "sha256:27350daa11d4f10c540e6e89dada4c54feb7256ad03e9a4dc075ebad7ba360d1", size = 182935, upload-time = "2026-08-03T21:21:17.271Z" },
{ url = "https://files.pythonhosted.org/packages/d0/ef/5443574510a1207e6f6bc38ba6e1f1de36cb48fef07b2728bb896a21f430/cffi-2.1.1-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:c26608d2222fb1e94487e4a387d85f13eb55d5ed725cb25a0c589ac4ee60e7bc", size = 188464, upload-time = "2026-08-03T21:21:01.163Z" },
{ url = "https://files.pythonhosted.org/packages/7e/ae/a56fa8c4686ad50e148fcbc8d3ae0d03915ff5c30d795058988c24118cef/cffi-2.1.1-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:4be96343e422f2dfcd12ab5c9f5aebe03f82f737c6bffeca6830b3875cb44aab", size = 188262, upload-time = "2026-08-03T21:21:02.382Z" },
{ url = "https://files.pythonhosted.org/packages/53/b2/6187f46f2912276a3ae284076109cc5c8680482f11f766ccf26db4a86427/cffi-2.1.1-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:937c0052c05a31ca1daf18de3158eed4dbfcb9cc107adbea227728d647be701e", size = 223779, upload-time = "2026-08-03T21:21:03.553Z" },
{ url = "https://files.pythonhosted.org/packages/8a/f6/c3ad28bd19f77047a03084424fbd4cbe997303267c14423737324be0385d/cffi-2.1.1-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:df423d40ee8654634421812bc3b196da3f9bd7d32929da813f8394c4348a5358", size = 211520, upload-time = "2026-08-03T21:21:04.863Z" },
{ url = "https://files.pythonhosted.org/packages/a0/cd/ccac9013a5bd9fd764de118674ab9c805b5ca10c19270d90ee273f8b2240/cffi-2.1.1-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:a730a083190634c65cca36ba5f489531576ebd79bcd5c8e172130f6453127231", size = 210673, upload-time = "2026-08-03T21:21:06.223Z" },
{ url = "https://files.pythonhosted.org/packages/52/86/2976131c639aead931c5bee5aba67e4b09fbeb8018b6f282f70803f923a7/cffi-2.1.1-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:363e05fa78e15116c3c32c210ee36884fd6b9afa6d440e47112c3bd511d64cb6", size = 223835, upload-time = "2026-08-03T21:21:07.539Z" },
{ url = "https://files.pythonhosted.org/packages/ac/0c/33a7aeab2f9c76918c52e084beb39c570db3588133412929e8ec06fab90b/cffi-2.1.1-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:770de9db11e84213beec501cfcaa013b019820ca881e03344dea5844f7876d94", size = 226705, upload-time = "2026-08-03T21:21:08.774Z" },
{ url = "https://files.pythonhosted.org/packages/e3/26/2cde30fdde421130bfc18f70395731a6e6b2053c6a1978a5258ff04e72fa/cffi-2.1.1-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:7da0c5eff80f0197f3b3d1232ec5a682a9325f4ae9016a78f5f5ca35f9ced1f5", size = 225539, upload-time = "2026-08-03T21:21:09.911Z" },
{ url = "https://files.pythonhosted.org/packages/6d/cd/a361394c94b2129d604bb846f624a8e88255a3ee33129c434a00d715e64f/cffi-2.1.1-cp315-cp315t-win32.whl", hash = "sha256:06c72bb76605a4b0cd0aad6930b69d4baf7dd5d806cfc409b824191099700e66", size = 182707, upload-time = "2026-08-03T21:21:11.226Z" },
{ url = "https://files.pythonhosted.org/packages/9b/b5/ba2b299993c26577d529b6ae29841f9e15b9fcf004d65f423f4fcf94ade9/cffi-2.1.1-cp315-cp315t-win_amd64.whl", hash = "sha256:d9c275eaacd24aa73f94ffd6de08fc3f932424d8b6c376f4bed7cde376fe7bc3", size = 193772, upload-time = "2026-08-03T21:21:12.39Z" },
{ url = "https://files.pythonhosted.org/packages/aa/29/35e016098c814cd93de9cd320c66b5bfba14dc6ecedd3cb518fa7c408c69/cffi-2.1.1-cp315-cp315t-win_arm64.whl", hash = "sha256:d18e5ac0f2f03f4f518d3e23db0f0cad7faa1da8620e9c09461d443bbf6e6692", size = 186360, upload-time = "2026-08-03T21:21:13.636Z" },
]
[[package]]
name = "click"
version = "8.5.0"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/c7/0e/7fa0ef50764b67090eca4114772a2abf8b6148198475e54c660b97caeee6/click-8.5.0.tar.gz", hash = "sha256:ba0d2089de75ea0310e2dde03160e6ca10009947fb95a182f9b54021bb272e34", size = 382235, upload-time = "2026-08-26T13:33:14.56Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/58/50/6c0d534c5f134586a8e1ba4e330569e32f057e33372ae556463212fb4cd3/click-8.5.0-py3-none-any.whl", hash = "sha256:255bc9599cf7748b4b1a446ccc735421bd08a2ae529a8b88597d3de5664ee360", size = 125251, upload-time = "2026-08-26T13:33:12.928Z" },
]
[[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 = "cryptography"
version = "50.0.2"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "cffi", marker = "platform_python_implementation != 'PyPy'" },
]
sdist = { url = "https://files.pythonhosted.org/packages/9d/af/182eb91b0df3fe75c4d9f26fe70684569566745f6ba7e5c9c73a862c5252/cryptography-50.0.2.tar.gz", hash = "sha256:7b46165bb56eb4704e2eaaf86f3c940d19154535d9b0ca7d6d590b04060e00d5", size = 880623, upload-time = "2026-09-30T15:30:04.884Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/e5/56/d194340cc4a57535e82e1bee9e89667ac4b7c13b5d3f59686deae3094dd5/cryptography-50.0.2-cp311-abi3-macosx_11_0_arm64.whl", hash = "sha256:fa8f5efb344d6908a1ce62f4a24e2e5780f825d6f53f5f50ec5ffacac72936cb", size = 3914904, upload-time = "2026-09-30T14:43:44.339Z" },
{ url = "https://files.pythonhosted.org/packages/d9/69/c9bd862c3bf43d6399c433caf002df16e2dffd4be49bdf515cda38038711/cryptography-50.0.2-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:79def8d059362e7831389ed3be0ecdf58a89386e1271e35dd9f5af84e81bffd0", size = 4731146, upload-time = "2026-09-30T14:43:47.113Z" },
{ url = "https://files.pythonhosted.org/packages/21/69/64cef1f702bf6657e0cc186ed1a2891d50d29fb41586b254e1c07adea261/cryptography-50.0.2-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:630ebfea3bf689d075f82316324ff7433dc447fe6bc1bfc76524b74b4a9567d2", size = 4719841, upload-time = "2026-09-30T14:43:49.01Z" },
{ url = "https://files.pythonhosted.org/packages/38/6b/61a3f8d8c5e1e49a6cddccafc4015cc1c0021360ab0acb4080e7a423644a/cryptography-50.0.2-cp311-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:f9f6143a8c75945eb960d9eb98905a441394abfa24afaae239d514ffb2586480", size = 4738340, upload-time = "2026-09-30T14:43:50.932Z" },
{ url = "https://files.pythonhosted.org/packages/7b/2e/7212ca32fd43dc91f2f41db20160b268098874b4c9a0e7be94d6835f5b2e/cryptography-50.0.2-cp311-abi3-manylinux_2_28_ppc64le.whl", hash = "sha256:a582ab2ae1d34f67112cadc86702774c9ea4374df6bca6afe672817203c99134", size = 5367029, upload-time = "2026-09-30T14:43:52.911Z" },
{ url = "https://files.pythonhosted.org/packages/1a/f1/b474e930c4d910328780e3940da76f5aa5cbc48ce1fc14e44d239d9ea9db/cryptography-50.0.2-cp311-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:4061c0079120205fb760c58acab6443e217307dcf05e3702cf970e0689972856", size = 4753050, upload-time = "2026-09-30T14:43:55.272Z" },
{ url = "https://files.pythonhosted.org/packages/7c/52/9af10e80ac16b0fcc2123f9cbd5e7afbd0fd5075bb7a607c592258a39cda/cryptography-50.0.2-cp311-abi3-manylinux_2_31_armv7l.whl", hash = "sha256:ac9ed99d81760c62fe89d5f0815cdfa1ba9a35141cf30f1c2d044f04b4803d2e", size = 4376724, upload-time = "2026-09-30T14:43:57.24Z" },
{ url = "https://files.pythonhosted.org/packages/71/37/6202e488cc1eb625ea110c292c6bda92823176e023f427d8d5660ce8d632/cryptography-50.0.2-cp311-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:87e9ce85beb6b328ba370cc6e6aea483c92617b4c95b1d33a49297eb662bfb04", size = 4737859, upload-time = "2026-09-30T14:43:59.541Z" },
{ url = "https://files.pythonhosted.org/packages/8f/30/e86d7d518489b0ae2497091a35287abcb1a2ce4037837a34afbe9b1d6964/cryptography-50.0.2-cp311-abi3-manylinux_2_34_ppc64le.whl", hash = "sha256:f265528741e048bce55c3463ed721fb0aa45a5888d8add8cfeccb3035451bbdc", size = 5324103, upload-time = "2026-09-30T14:44:01.901Z" },
{ url = "https://files.pythonhosted.org/packages/d3/69/2c833a049475e0a3444e94c7d0aca0aa51d166374a449b09e92ac98138de/cryptography-50.0.2-cp311-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:9dab55f57c74c3cad24c323bacbbd04be4705ba6eb0d92e920b1fc4837ed5079", size = 4752576, upload-time = "2026-09-30T14:44:04.545Z" },
{ url = "https://files.pythonhosted.org/packages/6c/5d/906970b83bbfc1f5bbfb677a143c181f2801f23b6a7204a3b47c42c97e65/cryptography-50.0.2-cp311-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:25784ce8b9621c90c643efb9e1e2162ab3b0224cae446ad5e70e7fcb1ce18b51", size = 4870819, upload-time = "2026-09-30T14:44:06.884Z" },
{ url = "https://files.pythonhosted.org/packages/68/e3/f2298d3bb55e0c4a91841ec4d01b3f020ba8c5fbf15ccdcc6dcf03f97025/cryptography-50.0.2-cp311-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:85d0d9a31b9098e98534226d5686b47264b95e62ce459dc2e62fdfc809f9fe93", size = 5030152, upload-time = "2026-09-30T14:44:09.443Z" },
{ url = "https://files.pythonhosted.org/packages/9a/4f/adfc442765721292fff86d314ce385d3249d22db42295c0dd057727b60f3/cryptography-50.0.2-cp311-abi3-win_amd64.whl", hash = "sha256:7afa5a6602a9f29af1f3a2965f831bae7c9d5d597b7cbb716d41ab3b7d89879c", size = 3824692, upload-time = "2026-09-30T14:44:11.671Z" },
{ url = "https://files.pythonhosted.org/packages/ce/cb/52eb3770c0d0be2702a98c6e96065ddc0a2877cf0845aa9c23397c142cd4/cryptography-50.0.2-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:f785f6161f202ab04d8ca194158968798e480ca058943907972da5f12e2881e8", size = 3892731, upload-time = "2026-09-30T14:44:13.485Z" },
{ url = "https://files.pythonhosted.org/packages/19/8e/aa1fc533d4546b127b45de8aa024eb5933d23eff9debfe25931e56861095/cryptography-50.0.2-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:0ecbc5652bdb6fc9eaf89a7d196e20941adfe812f43bc4ca05d9150496821047", size = 4710431, upload-time = "2026-09-30T14:44:15.427Z" },
{ url = "https://files.pythonhosted.org/packages/6a/64/72bc3f75176e7e406b748a3e3830432b8c51297b38368713df04dc04898a/cryptography-50.0.2-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:ab50ee449bf968271e820086f10a33d101dd060370abc10bcd22279be2656539", size = 4694824, upload-time = "2026-09-30T14:44:17.69Z" },
{ url = "https://files.pythonhosted.org/packages/4e/c6/62c77550edfa5ca3f14bf44a1e6739b9fa09d6e998a11d97ed8213bccc98/cryptography-50.0.2-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:a9f7355e6fab51f6c369b86fb7571cffa05edee2c2121e0380a37fb9ac1cd5c1", size = 4716967, upload-time = "2026-09-30T14:44:19.661Z" },
{ url = "https://files.pythonhosted.org/packages/f4/37/cce70f150c432914460157a6ecc161752e053aa5ec0ef3b3f7dc6e31039a/cryptography-50.0.2-cp314-cp314t-manylinux_2_28_ppc64le.whl", hash = "sha256:94e5e9f108ee10471288214d3d233fbfbb492840a8457eb85178d643ddeb32c7", size = 5328676, upload-time = "2026-09-30T14:44:21.744Z" },
{ url = "https://files.pythonhosted.org/packages/aa/9a/6f2f0304d634ceafdeaf23e84537336664ac419b5d07611675c2ad3f6b7a/cryptography-50.0.2-cp314-cp314t-manylinux_2_28_x86_64.whl", hash = "sha256:241449bf940a5d27309bd317e6f9a2af6932113818bb2b8f5c59ddc7ef16da18", size = 4727698, upload-time = "2026-09-30T14:44:24.178Z" },
{ url = "https://files.pythonhosted.org/packages/1d/de/66bcf9244d118663b2e1aaded8990f4640e3d7b7411870a5765f252074d2/cryptography-50.0.2-cp314-cp314t-manylinux_2_31_armv7l.whl", hash = "sha256:d8947001be83df1394050758ce0e745dd74fb134eef0a4b5124208dfc3a68c37", size = 4354821, upload-time = "2026-09-30T14:44:26.263Z" },
{ url = "https://files.pythonhosted.org/packages/bd/e6/db28a28c7b6c676addce89136de3d8db49ea825a8c863472e36e42ead4ad/cryptography-50.0.2-cp314-cp314t-manylinux_2_34_aarch64.whl", hash = "sha256:4a20ce1e5cb4284a86692fdcba7cb8754185c6b2e5c56fcef3751cf451d3cdc2", size = 4716748, upload-time = "2026-09-30T14:44:28.447Z" },
{ url = "https://files.pythonhosted.org/packages/30/96/01546c7f69ea0e2ab790a2e4f0934a4052fb9b388147fbf83c2fd72f1e57/cryptography-50.0.2-cp314-cp314t-manylinux_2_34_ppc64le.whl", hash = "sha256:84f964e537f916e2cc85199e5a88742e964939b575ac8598b3f9d6cc416cdaf1", size = 5285085, upload-time = "2026-09-30T14:44:30.704Z" },
{ url = "https://files.pythonhosted.org/packages/6c/01/03263395f74d50b071e9e66daace3f8bef80493e5d410726f2ba8554736b/cryptography-50.0.2-cp314-cp314t-manylinux_2_34_x86_64.whl", hash = "sha256:828d49b0ff5a0e3975865571c5d91dbbdd0d38d8289b249a163e9425413a5e05", size = 4727268, upload-time = "2026-09-30T14:44:32.92Z" },
{ url = "https://files.pythonhosted.org/packages/eb/94/2bfe8f29ec0cc9c0d99359c4161adf32858e4934b72c6d100d2ac0bbe962/cryptography-50.0.2-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:deb9fde5c60e437ee4821bc9bc39ff31b42135c27e1dc61ef0a629389c1de62e", size = 4849503, upload-time = "2026-09-30T14:44:34.969Z" },
{ url = "https://files.pythonhosted.org/packages/54/44/e80651ecbf0e42b62e2bb5f5768916e07eea72e1297338956a61df361f88/cryptography-50.0.2-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:8c71ba2cd31fc93748c38e1b613200ff1c2665cbfd5341fe3a61cfde35a1430e", size = 5004057, upload-time = "2026-09-30T14:44:37.064Z" },
{ url = "https://files.pythonhosted.org/packages/f8/cc/1d33befb3cd7ea7e77d2d73f43f2066471da1b21f24a6156efcaabf6d2e8/cryptography-50.0.2-cp314-cp314t-win_amd64.whl", hash = "sha256:78198641e5be9521beea5aa782bb551a58068d10e6eb04c9c680c1b69f2e7d45", size = 3795868, upload-time = "2026-09-30T14:44:39.71Z" },
{ url = "https://files.pythonhosted.org/packages/2d/49/93f6a6e7a87c9aa68d44d3e1cdb5fe8f60c90d5d2f46acae9a56892816b8/cryptography-50.0.2-cp315-abi3.abi3t-macosx_11_0_arm64.whl", hash = "sha256:edc3342adf8f697fc5f59c887a304356f147b397809440ed64e2fa6af2f50f37", size = 4133708, upload-time = "2026-09-30T14:44:41.807Z" },
{ url = "https://files.pythonhosted.org/packages/8c/75/32ac2a56243d778805c16ca6a32b8f74fb757df7e28d7ecb560afafb59cf/cryptography-50.0.2-cp315-abi3.abi3t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:d370b8d1dfcdf7130178137f6fbee6140774a1acc6cacefc4b42643ec11d0a3a", size = 4956267, upload-time = "2026-09-30T14:44:43.693Z" },
{ url = "https://files.pythonhosted.org/packages/aa/a4/2c8d734e43d97f0842ee9f1b7b4bfb3d0cf5e19edebf43c2afe6675c2320/cryptography-50.0.2-cp315-abi3.abi3t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:f2f9bd7f90c64fe89253f0a2c05e3c4856072660429ce8831b4235bf29403a67", size = 4966465, upload-time = "2026-09-30T14:44:45.769Z" },
{ url = "https://files.pythonhosted.org/packages/c2/58/ee288c829a6f41f6235ae9dd33d82fd19b45442b65b4c8a3da36963d9f7a/cryptography-50.0.2-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl", hash = "sha256:e275096ea1e60cc595cda2836fd4a6c725d1125108b868be17f53684d164e2cc", size = 4959356, upload-time = "2026-09-30T14:44:48.211Z" },
{ url = "https://files.pythonhosted.org/packages/92/20/9ded6d51ddd9897f6b6e81fb9ebea7951d7cc5d6c890b0ed8abf77a51a80/cryptography-50.0.2-cp315-abi3.abi3t-manylinux_2_28_ppc64le.whl", hash = "sha256:b13478603dcd0a2479ff8e87e2c19a7d525734686fe3c49542472293a204212d", size = 5548822, upload-time = "2026-09-30T14:44:50.86Z" },
{ url = "https://files.pythonhosted.org/packages/02/a8/8df951850d6b31d2a00218f19e2b3f999523437ed7a819df7fa427942fca/cryptography-50.0.2-cp315-abi3.abi3t-manylinux_2_28_x86_64.whl", hash = "sha256:58a0c478eeca76fe5e07993c5a0703def34a6dc6a0cda4f5564639b33112ffe7", size = 5001199, upload-time = "2026-09-30T14:44:53.379Z" },
{ url = "https://files.pythonhosted.org/packages/8b/f9/36b3022218ce75b7cdf068fb95f809f9bd0d820e4955ef43b90c255cc7ac/cryptography-50.0.2-cp315-abi3.abi3t-manylinux_2_31_armv7l.whl", hash = "sha256:d38cdff612d06fa6a32840d5e1b1f7a27cee4a349aa9085d94a67789d6bfd408", size = 4629333, upload-time = "2026-09-30T14:44:55.635Z" },
{ url = "https://files.pythonhosted.org/packages/8c/72/20f99a219f6af47cdd1cbd978c243b92d71496e168a746138af44ded4f29/cryptography-50.0.2-cp315-abi3.abi3t-manylinux_2_34_aarch64.whl", hash = "sha256:fdd28f912fccfec1846a94e2e1e8f9b0012f557f0c46fe4f3eb0d7a87afcf90b", size = 4958822, upload-time = "2026-09-30T14:44:59.639Z" },
{ url = "https://files.pythonhosted.org/packages/f2/20/196f112617fb08eb4d608a2a6c422373d46f9cc2857f38fc0667033c0899/cryptography-50.0.2-cp315-abi3.abi3t-manylinux_2_34_ppc64le.whl", hash = "sha256:cbc8738fd8526d80f35cb3a40d41f41a2e7030bb3b18b09a6778ef63d291c2fd", size = 5506351, upload-time = "2026-09-30T14:45:02.267Z" },
{ url = "https://files.pythonhosted.org/packages/24/95/83378121ef3eaaaf71d4b781577ff794acb39b9e1b87a3f156898c8497ed/cryptography-50.0.2-cp315-abi3.abi3t-manylinux_2_34_x86_64.whl", hash = "sha256:e105ab60406787da31fccc883fc0f733af1efd78f0136a4599692c4083a73d0c", size = 5000859, upload-time = "2026-09-30T14:45:05.009Z" },
{ url = "https://files.pythonhosted.org/packages/22/f7/70fd7ae4d1dbfa7ba29b02e1b9068771519a86027756510b700ce81086a8/cryptography-50.0.2-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl", hash = "sha256:6f8700550aa1474a91e5dc07049c46f98b423b5b1ddd0483e0b51362eeeaf5be", size = 5092151, upload-time = "2026-09-30T15:29:15.932Z" },
{ url = "https://files.pythonhosted.org/packages/d4/be/688367b74de86984bd58d8efacfc7c9e68b89a6a22ced0fb4f38db50254a/cryptography-50.0.2-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl", hash = "sha256:c71be1cbfa5cd9a41ee452acf1eccd82b2c05950358b106ec8ceb83411d1a020", size = 5286120, upload-time = "2026-09-30T15:29:18.309Z" },
{ url = "https://files.pythonhosted.org/packages/39/d1/55f8a3f2ef5d1529e16835ef10cf0fe3d559ce237b46dddc440c0bba3649/cryptography-50.0.2-cp315-abi3.abi3t-win_amd64.whl", hash = "sha256:c423ab384a46c4dff7217b2ea5ba2e11cffdeab6441acd04cf65a369caf0366c", size = 4111557, upload-time = "2026-09-30T15:29:20.155Z" },
{ url = "https://files.pythonhosted.org/packages/23/ad/ac987755d00e1e64273760228d2635ae38dae2be83e3c6e0d3289d91dec3/cryptography-50.0.2-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:0ec5f09541743261e66e291b4a0cbf0fb2997aeaab6d9e9c740b9dba1b58d1c2", size = 3943588, upload-time = "2026-09-30T15:29:22.265Z" },
{ url = "https://files.pythonhosted.org/packages/d5/8d/6d585339bedf85d45044c85d8412dac53f2bb6f918e8b7777efba1787844/cryptography-50.0.2-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:c5e67125c7dca78d199ec4e116aa93dbb83494808ecbb8211a2cb09b1bf41dbd", size = 4756166, upload-time = "2026-09-30T15:29:24.58Z" },
{ url = "https://files.pythonhosted.org/packages/bf/f1/1c1f6874e8550cfddd4b688ceb38cefb6ed15ceed224d56f133f3d88c214/cryptography-50.0.2-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:ee247f5c245c9a2fe7c8e2214e295918838e44e00a45a6718451e4004219e767", size = 4749145, upload-time = "2026-09-30T15:29:26.807Z" },
{ url = "https://files.pythonhosted.org/packages/c1/63/61b15dc1a8de03fe0adbe3fd7608b3ad5c73bf50993bbcb1faaa930afe33/cryptography-50.0.2-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:dfe9763530994147d9af1def057a5b9658b00e8f8fe8743d144d1e0911c2e454", size = 4763638, upload-time = "2026-09-30T15:29:28.588Z" },
{ url = "https://files.pythonhosted.org/packages/fc/35/b345bdfa40c9126df1a9d33236aa98418367931b8725f84fc3ae2b98dc59/cryptography-50.0.2-cp39-abi3-manylinux_2_28_ppc64le.whl", hash = "sha256:58ddb5a8e3179d12f19e4ea34d2d32e9d63a4baa142c875c1eb59f41b7243acd", size = 5382217, upload-time = "2026-09-30T15:29:30.589Z" },
{ url = "https://files.pythonhosted.org/packages/4f/87/ef344a9e616871f2519c22d6afcda79ddd5d35e9592d95eb6e677608d055/cryptography-50.0.2-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:f21e8a22c8605750c7af886bab299a363721264061b4ac0a30efb73cfd58efc5", size = 4781387, upload-time = "2026-09-30T15:29:32.605Z" },
{ url = "https://files.pythonhosted.org/packages/90/5b/f2fdb13cd0b96f6f932c8627bb292a45f11c64d21620a8e120aee9a3b848/cryptography-50.0.2-cp39-abi3-manylinux_2_31_armv7l.whl", hash = "sha256:9c8402a82ea0dc4ceeab793db05f0fafa8ca139ca34fcde5df0f596103c74107", size = 4403790, upload-time = "2026-09-30T15:29:34.374Z" },
{ url = "https://files.pythonhosted.org/packages/bc/ce/7e4f662b1e3c393513569e402cfc85ac7da0bd3d5435e122a3140219eb2d/cryptography-50.0.2-cp39-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:0ddc924c04591c2811ca024d62ecad4f7f6f08af8939c211438f48a16bd23602", size = 4764319, upload-time = "2026-09-30T15:29:36.149Z" },
{ url = "https://files.pythonhosted.org/packages/3c/3f/86ff33ce34cc0de6847fb96e035a1a760d81652e38643f617c02ad32ef7a/cryptography-50.0.2-cp39-abi3-manylinux_2_34_ppc64le.whl", hash = "sha256:a6557e5f38e065ca9fbdaf7cfc7435ecb1d113aa81a022d1b51921ee7432e227", size = 5338560, upload-time = "2026-09-30T15:29:39.053Z" },
{ url = "https://files.pythonhosted.org/packages/40/cf/6b5c8e2fd9202d98988ab7cb5cc5c991704c4ad55f492ff408e4969f83f1/cryptography-50.0.2-cp39-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:1981f1db4630889b9ef7803fadef12b056f428cb6b85c27ba57b774793b6093c", size = 4780973, upload-time = "2026-09-30T15:29:41.251Z" },
{ url = "https://files.pythonhosted.org/packages/10/bf/8d6ebc7dded797bd0f0160d52188021211f011a2b164ef0ae1dac4587465/cryptography-50.0.2-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:7a8701d6b584d76e909e3d305b7d126b41439876a5aaf76cddc67fc230eafa2e", size = 4897738, upload-time = "2026-09-30T15:29:43.106Z" },
{ url = "https://files.pythonhosted.org/packages/d4/aa/f3f6e0de7e6253b8baa8b2d8fb9d50924fa75cee3d4624bd4bc1208ee923/cryptography-50.0.2-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:ce47f66801c20ec6c6632453bb5960fe38939e9306970b48b3a5a26de7745d94", size = 5058280, upload-time = "2026-09-30T15:29:44.827Z" },
{ url = "https://files.pythonhosted.org/packages/f6/b6/a1faf3a27ae9405fb34b1713cc73b2d8a26b04d5c561578fa2e6ef3e5bb9/cryptography-50.0.2-cp39-abi3-win_amd64.whl", hash = "sha256:4e81d95e5bafc2d6e34e4bed780e53e4d5b9a2f928573428aa4d35fbec1eb0de", size = 3854095, upload-time = "2026-09-30T15:29:46.782Z" },
{ url = "https://files.pythonhosted.org/packages/1d/7a/f08d34ce09d60f89ebd391e2ebc6ba2b995e6dd7552f41820f8085f94e53/cryptography-50.0.2-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:92e665960f25fcdc73725b9cec7a3824f279ba97a98653afe9ffac2e43668f67", size = 4716035, upload-time = "2026-09-30T15:29:48.681Z" },
{ url = "https://files.pythonhosted.org/packages/45/67/e18fb65592451a2acb76e9f2fbe14e0f47a8318b4c5430f1633851d03daa/cryptography-50.0.2-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:eef4c2f3423810b3070ab391f85436d2f8bbfcb286ac15cbc73190b3563b1f1a", size = 4726917, upload-time = "2026-09-30T15:29:50.608Z" },
{ url = "https://files.pythonhosted.org/packages/83/28/38fdce17e60f6b825e69fc3b7f75e70a6612759980704697e1de4cbfaf6e/cryptography-50.0.2-pp311-pypy311_pp73-manylinux_2_34_aarch64.whl", hash = "sha256:7c6d0330c472d96f6a6afe24d80dfdf15176c33096f0a4397ae4c60f3dd3be48", size = 4715341, upload-time = "2026-09-30T15:29:52.522Z" },
{ url = "https://files.pythonhosted.org/packages/b6/b1/d9121a717e0f893c64bd6ca7702614778d7df2a5c309128a002421788516/cryptography-50.0.2-pp311-pypy311_pp73-manylinux_2_34_x86_64.whl", hash = "sha256:1ba34f04897fcdaa73f74145c25f3ec146fbd56593853e88adc2e811303c5f42", size = 4726322, upload-time = "2026-09-30T15:29:54.263Z" },
{ url = "https://files.pythonhosted.org/packages/36/8b/e6d153808bf353e152abd2fd4d8f09670d956ac78379ac46e60d7efbf04c/cryptography-50.0.2-pp311-pypy311_pp80-macosx_11_0_arm64.whl", hash = "sha256:3dc4fd8058cea1644971207d530e1a03a184a805ffc8ebdddf0599d78a331b81", size = 3873097, upload-time = "2026-09-30T15:29:56.097Z" },
{ url = "https://files.pythonhosted.org/packages/ca/1d/1271f287ff7170ddafc2aad36260c4eec20ccd2fea70f38455e9d56d427b/cryptography-50.0.2-pp311-pypy311_pp80-win_amd64.whl", hash = "sha256:7b75de3c8b3be1cdb1052747c929440c3eea46c1bc2cb8a6e3a48388e9b7b452", size = 3805376, upload-time = "2026-09-30T15:29:58.729Z" },
]
[[package]]
name = "et-xmlfile"
version = "2.0.0"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/d3/38/af70d7ab1ae9d4da450eeec1fa3918940a5fafb9055e934af8d6eb0c2313/et_xmlfile-2.0.0.tar.gz", hash = "sha256:dab3f4764309081ce75662649be815c4c9081e88f0837825f90fd28317d4da54", size = 17234, upload-time = "2024-10-25T17:25:40.039Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/c1/8b/5fe2cc11fee489817272089c4203e679c63b570a5aaeb18d852ae3cbba6a/et_xmlfile-2.0.0-py3-none-any.whl", hash = "sha256:7a91720bc756843502c3b7504c77b8fe44217c85c537d85037f0f536151b2caa", size = 18059, upload-time = "2024-10-25T17:25:39.051Z" },
]
[[package]]
name = "fastapi"
version = "0.162.0"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "annotated-doc" },
{ name = "opentelemetry-api" },
{ name = "pydantic" },
{ name = "starlette" },
{ name = "typing-extensions" },
{ name = "typing-inspection" },
]
sdist = { url = "https://files.pythonhosted.org/packages/e9/eb/2cf8c80abf09b2800aef0a83b41066fbfda8ee5495b7a08b9d1af40f7046/fastapi-0.162.0.tar.gz", hash = "sha256:6a22c1e2e6e32e0633ee7e170f00009a29b8228b16feb219ee42f32fd8d88a8f", size = 527867, upload-time = "2026-10-23T18:47:33.264Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/b4/4f/3f2c25c9b43970b5e9a08beb5e04776247edea684ddc0930f4f02f0bb6cb/fastapi-0.162.0-py3-none-any.whl", hash = "sha256:3785963de305dd09912426cb81f2d230fce98ab3521cdfe97265c8d14983128c", size = 148912, upload-time = "2026-10-23T18:47:31.734Z" },
]
[[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.20"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/f5/08/8eea9d4b8302028f3abb2c0813953f7aec26d33b7a8960ed760e65ff29fa/idna-3.20.tar.gz", hash = "sha256:a7db850025b95ded1eae8a46181a1a6c56c92c96f0e2b005d9ff8dc0210cab44", size = 216463, upload-time = "2026-09-17T14:11:04.752Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/58/a2/bb081bab032533a855d44de1d56f8e8426114ff1ba5d1f07a438a0a654f8/idna-3.20-py3-none-any.whl", hash = "sha256:ab7ae7122974553370f0bdb919e1a960b2cd1bc1ef0276416d896db81c14582c", size = 69583, upload-time = "2026-09-17T14:11:03.168Z" },
]
[[package]]
name = "iniconfig"
version = "2.3.1"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/01/e1/2069291243c926a2ff1cd706c7f3eeb9b62144bf60f77c9fb9ff2fb26bd3/iniconfig-2.3.1.tar.gz", hash = "sha256:67f4b9c50da0dedf52af349e7749a80a9057a5031199791b906c3bb3ae878960", size = 21209, upload-time = "2026-10-06T22:48:38.076Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/56/43/4ca9e49d27a1fcf6bece6f6aec0ea46bb9112489b93d4b688fb415457bdb/iniconfig-2.3.1-py3-none-any.whl", hash = "sha256:9121e2c1fdb355232495be3194c8dfe87ccc2d5dee45947b78e68f499790d7a7", size = 7552, upload-time = "2026-10-06T22:48:36.959Z" },
]
[[package]]
name = "nqi-backend"
version = "0.1.0"
source = { virtual = "." }
dependencies = [
{ name = "cryptography" },
{ name = "fastapi" },
{ name = "httpx" },
{ name = "openpyxl" },
{ name = "python-multipart" },
{ name = "uvicorn" },
]
[package.dev-dependencies]
dev = [
{ name = "pytest" },
]
[package.metadata]
requires-dist = [
{ name = "cryptography", specifier = ">=44" },
{ name = "fastapi", specifier = ">=0.115" },
{ name = "httpx", specifier = ">=0.28" },
{ name = "openpyxl", specifier = ">=3.1" },
{ name = "python-multipart", specifier = ">=0.0.20" },
{ name = "uvicorn", specifier = ">=0.34" },
]
[package.metadata.requires-dev]
dev = [{ name = "pytest", specifier = ">=8.3" }]
[[package]]
name = "openpyxl"
version = "3.1.5"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "et-xmlfile" },
]
sdist = { url = "https://files.pythonhosted.org/packages/3d/f9/88d94a75de065ea32619465d2f77b29a0469500e99012523b91cc4141cd1/openpyxl-3.1.5.tar.gz", hash = "sha256:cf0e3cf56142039133628b5acffe8ef0c12bc902d2aadd3e0fe5878dc08d1050", size = 186464, upload-time = "2024-06-28T14:03:44.161Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/c0/da/977ded879c29cbd04de313843e76868e6e13408a94ed6b987245dc7c8506/openpyxl-3.1.5-py2.py3-none-any.whl", hash = "sha256:5282c12b107bffeef825f4617dc029afaf41d0ea60823bbb665ef3079dc79de2", size = 250910, upload-time = "2024-06-28T14:03:41.161Z" },
]
[[package]]
name = "opentelemetry-api"
version = "1.45.1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "typing-extensions" },
]
sdist = { url = "https://files.pythonhosted.org/packages/2e/02/6e0ae9cc61bd3169d401077b507b3ebc344745171e1051ab430be012dcd9/opentelemetry_api-1.45.1.tar.gz", hash = "sha256:aa38ed19bcc084ba42782a73255b3582283eced7ad6dddbd6695189e69adfb75", size = 72804, upload-time = "2026-10-06T17:32:58.133Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/1e/41/f7dcf80b81ee8e71c1a2b59f14208bc723edbd89ed027a73b175abf6348e/opentelemetry_api-1.45.1-py3-none-any.whl", hash = "sha256:b31553efa588ae44bc306f863c785c5333a9ecc091248c6ee68b4b6c87fdedfb", size = 60256, upload-time = "2026-10-06T17:32:33.506Z" },
]
[[package]]
name = "packaging"
version = "26.3"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/7d/fa/3944b40b07da9ce895c0e6303a5ab7d53da063554f534556b134a54d6093/packaging-26.3.tar.gz", hash = "sha256:94edc256424af38762eb31306eed28beb9f0efc50a8837492c9d6fd6004aed79", size = 313412, upload-time = "2026-08-04T18:15:28.737Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/63/34/ba1c580383c9eada3711951fef0795c80b829a078d72188184bcab9dd527/packaging-26.3-py3-none-any.whl", hash = "sha256:d7193f7c8e4e93f444fde0262bf90af30e16fa0ad0ad44cb553c87339b23cd1c", size = 129956, upload-time = "2026-08-04T18:15:27.159Z" },
]
[[package]]
name = "pluggy"
version = "1.7.0"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/bf/db/7fc19e6f2dc92a966727031389fc2e08b558f0f25eb7403c1119ad4713cd/pluggy-1.7.0.tar.gz", hash = "sha256:d1eaa46ebb595891b860ab086b4d09c8588af65ebd4361b8e8f4bb8920b90ba8", size = 123304, upload-time = "2026-10-15T09:50:58.343Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/40/9e/2b38731e0fc536806f16490e1a12d7f0dc2a1235aa8cc07bcc75416a7daa/pluggy-1.7.0-py3-none-any.whl", hash = "sha256:7dd7b0d8832ba3cb632c306926ded123429211b83641b35dc5c41ad2d34f9bec", size = 27082, upload-time = "2026-10-15T09:50:56.808Z" },
]
[[package]]
name = "pycparser"
version = "3.12"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/cb/27/eeb9f307bf07060f3d9f9aa0fb8c15b01bdfded0a941e4b2719c7f94cacd/pycparser-3.12.tar.gz", hash = "sha256:f03387877eab82ce01bbdfd0ba7252ee55a90b1c708d5129e2ce915475cf1db6", size = 158785, upload-time = "2026-10-22T13:40:03.56Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/b6/ae/315bbeee126a769cbde43cf4908acb4b40408d8bf8bbf334dd7368d8dadf/pycparser-3.12-py3-none-any.whl", hash = "sha256:a076f3f489b39b43ed13563a1dafe42447445bec2e294154ec5c57fcdda4c85e", size = 62600, upload-time = "2026-10-22T13:40:02.021Z" },
]
[[package]]
name = "pydantic"
version = "2.14.1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "annotated-types" },
{ name = "pydantic-core" },
{ name = "typing-extensions" },
{ name = "typing-inspection" },
]
sdist = { url = "https://files.pythonhosted.org/packages/7c/0b/8e10b2e693af8ec54346a14caf36221334775975a747c9ceaa3f8371d96d/pydantic-2.14.1.tar.gz", hash = "sha256:94f478203dd03404682a1ada216965651dd74b1d2d5ffd62e00e0837caab5c26", size = 900362, upload-time = "2026-10-11T18:37:55.396Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/35/ea/a56b9fe5066f3537b7882f77e9c5dfb26d8c2eefdaed9b5fc73d57b4dc22/pydantic-2.14.1-py3-none-any.whl", hash = "sha256:9195d967ec791692a04438115466764fb8b9a27b31f14a760437694f40d6b454", size = 488106, upload-time = "2026-10-11T18:37:53.437Z" },
]
[[package]]
name = "pydantic-core"
version = "2.50.1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "typing-extensions" },
]
sdist = { url = "https://files.pythonhosted.org/packages/a6/24/af4ec4be49fbc810f35b0bdcacc3d433b56bbfa469fd3bfd4ae116cd9bf1/pydantic_core-2.50.1.tar.gz", hash = "sha256:e50d7b94baac6c7d09927fa5ca5800a0c7ee5015c7fcff65beb3a1931b5a6e09", size = 513515, upload-time = "2026-10-11T18:35:44.82Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/45/1b/ca81811da3d2aea724fb3c4ba6b83f50ab8f210576306ccd601973142d35/pydantic_core-2.50.1-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:c531166c42ea7bdfecc8c50049581f05dd1993b09cc7c52bb36a14e96deaec7d", size = 2152145, upload-time = "2026-10-11T18:31:58.046Z" },
{ url = "https://files.pythonhosted.org/packages/59/20/938ef7e0541af0a314e2f9d63848dbd1656ba2ebfe5ca0469f7ebee00d5e/pydantic_core-2.50.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:b6d0c2183008c188e19f4906d426b293bdc4f67ab17df8e180fe16cda208fa71", size = 2045761, upload-time = "2026-10-11T18:31:59.35Z" },
{ url = "https://files.pythonhosted.org/packages/2f/4b/456497fe2affa18f49b226e89bde31e8a204751ee343dd9beaac5438123e/pydantic_core-2.50.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:94be440c03fede26969a5ce75468e0e6a9927a1b46d9b679ee8adc1b057b0350", size = 2049557, upload-time = "2026-10-11T18:32:01.121Z" },
{ url = "https://files.pythonhosted.org/packages/a5/9d/cd5dfe13928f55e236dff3a1bee06721d318ca6c955d9ca993b0a5d09f39/pydantic_core-2.50.1-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:36c426eac0af8d1529ff8467e612b933346caec1fdc0d774f78f67a1a11e16c1", size = 2188153, upload-time = "2026-10-11T18:32:02.442Z" },
{ url = "https://files.pythonhosted.org/packages/fb/8d/d0b25bc484f8d9136ea76ece69e0b2d24ab370cc2e7bbd1b79e61723b763/pydantic_core-2.50.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:028e2f212273d4a39b1ec1e0de8166b1165a65fc0f1111452a9d94fc7c625c63", size = 2388308, upload-time = "2026-10-11T18:32:03.767Z" },
{ url = "https://files.pythonhosted.org/packages/c5/64/6513cac7c9f78492abafa01d57a69de1d246bf3085fd7b0330bf14b025b3/pydantic_core-2.50.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e6f0cc1bb9900dc558960894adeb30b0c083366fc1d69b856209fb2ca5c36fe5", size = 2431187, upload-time = "2026-10-11T18:32:05.159Z" },
{ url = "https://files.pythonhosted.org/packages/ed/60/7f2ae89c37e69a3dc0da9ff57b0388c285542c688d05f36767770429de85/pydantic_core-2.50.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8812592c85d0edf423f10eadcef42716d71e8219085ad9e85b775057b7306133", size = 2157623, upload-time = "2026-10-11T18:32:06.616Z" },
{ url = "https://files.pythonhosted.org/packages/87/02/e3a71373b85a7973099b9a229a4302c7792262717e0b4997e41c01f7dd16/pydantic_core-2.50.1-cp311-cp311-manylinux_2_31_riscv64.whl", hash = "sha256:bbce99252ba3167b2b6277f1829d5bf4b43b754524bddf7f944707c3db7d2253", size = 2254539, upload-time = "2026-10-11T18:32:07.968Z" },
{ url = "https://files.pythonhosted.org/packages/3f/d5/5b620aaf40dc631d911565b64d49d3fa8422027c046a7a96dc4e4921ae98/pydantic_core-2.50.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:476f6ed8e43cd1e0b460920e23571700872b284e77331cb30c4faf459cf48a4b", size = 2267344, upload-time = "2026-10-11T18:32:09.399Z" },
{ url = "https://files.pythonhosted.org/packages/e0/48/f46baf4580d8a56ca4782aa65842e16d3cf39736b29fcce8e9c0521b3422/pydantic_core-2.50.1-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:2cbd1b75b09e976ed0d6b6ca297675632ca35df86130088457cdc60ef36970ae", size = 2300877, upload-time = "2026-10-11T18:32:10.903Z" },
{ url = "https://files.pythonhosted.org/packages/2b/9d/e7d28505e6092c1fe075838a4f793ccbe6dd676e44ab16175815ee06cfe0/pydantic_core-2.50.1-cp311-cp311-musllinux_1_1_armv7l.whl", hash = "sha256:5958c72adb417c39b12ac87525ac60b0d73315fcdc59e21f44ee4a5e2512c9ef", size = 2464270, upload-time = "2026-10-11T18:32:12.329Z" },
{ url = "https://files.pythonhosted.org/packages/22/b1/3bf63b82efd93ebc9968f9c12fc46037a28bcb452c88e4688f33e5ff7dca/pydantic_core-2.50.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:d8f9e8a6c4ab04b78d61f78627370d834eb004b2869dcb28cfffa647b4ea1980", size = 2478653, upload-time = "2026-10-11T18:32:13.735Z" },
{ url = "https://files.pythonhosted.org/packages/28/17/26d1e4b9c2ba6a92b7dc75bbcb99ef44456b7e3af1bced868403667ea7d3/pydantic_core-2.50.1-cp311-cp311-win32.whl", hash = "sha256:4be846f55c9477f5f3ddde8f2ce941137e16862a56d018ed885d422bb6ae02f2", size = 2120246, upload-time = "2026-10-11T18:32:15.591Z" },
{ url = "https://files.pythonhosted.org/packages/24/65/3e875e7991eaecd4d70686293ff0d8a99aa8f93dc295e6a21c3d702912fb/pydantic_core-2.50.1-cp311-cp311-win_amd64.whl", hash = "sha256:0048b6dddc8ef4b64fccaad878bd143b0c3882ea9936279dc11d613f6b7dd1bc", size = 2176332, upload-time = "2026-10-11T18:32:17.153Z" },
{ url = "https://files.pythonhosted.org/packages/ab/5c/58dbd17c61f209d91c70f549eb7a3bbec7023e89ea12dead091462d6d658/pydantic_core-2.50.1-cp311-cp311-win_arm64.whl", hash = "sha256:6a733778df2f7087ec1100ed0b41533e4f3001976e99570fa34f57c66e7f8e3e", size = 2182471, upload-time = "2026-10-11T18:32:18.49Z" },
{ url = "https://files.pythonhosted.org/packages/ee/94/101b49a6c63f99586755690696eae14532772587d9e39e93f7b8d28a49da/pydantic_core-2.50.1-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:704075d10b74f2f3c6e15407c696d88701df35fc8953f434a431add0d0074db0", size = 2222428, upload-time = "2026-10-11T18:32:20.228Z" },
{ url = "https://files.pythonhosted.org/packages/db/a3/f8b1b39349c33037c73d7a1b794c9c29d8f07d5bd2b74399c1375a529cc6/pydantic_core-2.50.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:e8e1d6ce820aa23317e8209a86bd65a540973c12dc7552b48a4f6c8e9926815e", size = 2025779, upload-time = "2026-10-11T18:32:21.723Z" },
{ url = "https://files.pythonhosted.org/packages/d2/2d/862a7d115305cc621358e51ba13f296e0ffdf4fbd984be9f63bc7862730b/pydantic_core-2.50.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c18db21573bd2c6489f9a544b7499f0df2853958c568e5e783536ee1f690af41", size = 2048429, upload-time = "2026-10-11T18:32:23.3Z" },
{ url = "https://files.pythonhosted.org/packages/c0/7d/fed95d18bf2b5abe2d5ab2bbec4184bfc22b6805994a33ccdae8edffd25a/pydantic_core-2.50.1-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:cb57f304525a5e3c13333b772bf9a473f36326e9c821b2e8e1b2fd36f80ae2c3", size = 2173274, upload-time = "2026-10-11T18:32:24.697Z" },
{ url = "https://files.pythonhosted.org/packages/93/1e/c6f22ceac65dc3d291ff79bea0eb74cbd1de8b128f01fee48af03bcea1e1/pydantic_core-2.50.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a27c09d86600f1bf2fe3f37e1ae697faf3143931c09322cd799da94deee923b5", size = 2360403, upload-time = "2026-10-11T18:32:26.281Z" },
{ url = "https://files.pythonhosted.org/packages/2c/97/190b5b6bfe4c72f265feb657913eb30749193927a5ad7b83cfa7866a25a2/pydantic_core-2.50.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:46b3301d3b5c886f77de7546e47274a5842c622ea2020b8c6524c6b66913b4a6", size = 2439799, upload-time = "2026-10-11T18:32:27.844Z" },
{ url = "https://files.pythonhosted.org/packages/90/24/48cd98388e4ac2c08d0800af36d15413db15e20387f1038123a2c86cb2f6/pydantic_core-2.50.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:93ba4e9d8210d941c200431a56b2c0400b131865947903937ed3ec5404307d2e", size = 2160157, upload-time = "2026-10-11T18:32:29.553Z" },
{ url = "https://files.pythonhosted.org/packages/00/86/d909133d0b9979ed14c20f110f21124a0e346caf071bd66ac5af3009062b/pydantic_core-2.50.1-cp312-cp312-manylinux_2_31_riscv64.whl", hash = "sha256:e5faeaee74a57d32b3ab3aebad2e348f06d3ba946fc5d28c1728455f00a3d13a", size = 2229523, upload-time = "2026-10-11T18:32:31.027Z" },
{ url = "https://files.pythonhosted.org/packages/90/31/4b43f08131b2098e73a852fd932063385f3103b33839fd9d1abdb89e673d/pydantic_core-2.50.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a3cda0e538208e5d722bbf3698b24f19c0a7d05bc8d5f8a7f9b121ea7fa243d9", size = 2242700, upload-time = "2026-10-11T18:32:32.622Z" },
{ url = "https://files.pythonhosted.org/packages/88/77/de39658569dc7a4c293d110a89629f61145e7538f00d1e4280c28debefd3/pydantic_core-2.50.1-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:57f51b31ff826e2859120cf4737c5a758a48d96f3e97da40ccee1796d58078ff", size = 2278452, upload-time = "2026-10-11T18:32:34.165Z" },
{ url = "https://files.pythonhosted.org/packages/46/bd/1eeb9e4e791e81210ef9096f58080b32ba15b5b13c108d50aaa3f8ce9f73/pydantic_core-2.50.1-cp312-cp312-musllinux_1_1_armv7l.whl", hash = "sha256:8daa7ee75245d43ad7d747e5c9ecc1b1d06552f72b14887e9276f787d57375f4", size = 2450098, upload-time = "2026-10-11T18:32:35.547Z" },
{ url = "https://files.pythonhosted.org/packages/1c/e6/b2accfdff17e5a88d6358536702146de00f9339adaa4d5bbe1ee93cb4832/pydantic_core-2.50.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:acbf31f37c53a5ac0c34706c80b4f5107ba20b05fdd3816124bf236ef0c57dd2", size = 2476839, upload-time = "2026-10-11T18:32:37.119Z" },
{ url = "https://files.pythonhosted.org/packages/3b/7e/c8a83eb5d2cd42c2e13507150fb777b1edea5a018adc9cbf2858a1d08285/pydantic_core-2.50.1-cp312-cp312-win32.whl", hash = "sha256:45b11cac094aa25725581d9304eee93c9028516b9ea80dd9e175e13a5a2c840e", size = 2101425, upload-time = "2026-10-11T18:32:38.593Z" },
{ url = "https://files.pythonhosted.org/packages/c5/17/8bbd530b8659e9d963f5b16f6cb8e159f4cd174b4d6304e48969ab12dba8/pydantic_core-2.50.1-cp312-cp312-win_amd64.whl", hash = "sha256:132529c83901437ff642f585216831bf5fd7a91df66829907e155192ead62498", size = 2172522, upload-time = "2026-10-11T18:32:40.112Z" },
{ url = "https://files.pythonhosted.org/packages/af/9f/a79d690b127e4e3cff143d031538ab9aa715f6b2fbeecbd07cd6f2bf9fb7/pydantic_core-2.50.1-cp312-cp312-win_arm64.whl", hash = "sha256:4e834f6a8e4ff772dcc34f58ef5504147a3ea5b0f4eeb13b0f8eb2ca75ac57f1", size = 2161366, upload-time = "2026-10-11T18:32:41.606Z" },
{ url = "https://files.pythonhosted.org/packages/ae/57/0e237d7091d2cd44a35d243b7344227f90440166860469cd036afc23a04d/pydantic_core-2.50.1-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:d5e062c01286d861fd6a1c4ff6e063547b3e713067f2df033c0ff97ac2ca006b", size = 2222774, upload-time = "2026-10-11T18:32:43.103Z" },
{ url = "https://files.pythonhosted.org/packages/f7/b9/c720e56858d4e1539503297ed37063e0c08e0f3541c41b777f6a800f75fa/pydantic_core-2.50.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:0c003c3b7f49debb893d2d85ae099ac5959c9839e2f330fadb1fcdf7a6594482", size = 2024738, upload-time = "2026-10-11T18:32:44.587Z" },
{ url = "https://files.pythonhosted.org/packages/4d/b8/fbfc25875219cc060e613170ff10e850c6d8924beb4910da57c2ee3ba1d2/pydantic_core-2.50.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:409e0ea40ec30d9158f33574fd758e689f6045a0f2596701828c27816ca9687d", size = 2047049, upload-time = "2026-10-11T18:32:46.164Z" },
{ url = "https://files.pythonhosted.org/packages/d7/43/34210124d504c553688f2f04b48500b131237528ac545b445e0d6d30e0d5/pydantic_core-2.50.1-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:131059670f1d2444269b8585cb888963994871932447c08b39ac6a51fcfef658", size = 2173415, upload-time = "2026-10-11T18:32:47.722Z" },
{ url = "https://files.pythonhosted.org/packages/65/cf/6e178e8fdc11da5965bef980983bf46326a42f436871dd51ba0a57f39df1/pydantic_core-2.50.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:6dbcbee53bf17196a7f745aa9bf5a9603953a1e365b1f020be3207c676a3e7c4", size = 2361719, upload-time = "2026-10-11T18:32:49.217Z" },
{ url = "https://files.pythonhosted.org/packages/11/14/bd5169d356aa91bf777e28ba0b281c192d286d03c2812c9c9db023a2f00e/pydantic_core-2.50.1-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:325c23f3e35cfbf0fe3486fa5f7260d1e45885173002d30a28ca019994124255", size = 2439803, upload-time = "2026-10-11T18:32:51.025Z" },
{ url = "https://files.pythonhosted.org/packages/1c/bc/d79d000e5203ebef39af839f2ce77a777fcad6e08ad26af9a2fcd114ffc8/pydantic_core-2.50.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:17e722e156d0444ecaefbe640bdb60928752bf2013e2b7a11cdb099aaae19bec", size = 2158402, upload-time = "2026-10-11T18:32:52.714Z" },
{ url = "https://files.pythonhosted.org/packages/1b/a5/4902cb5fd599422c130bd3124ab31ee8b771199bd56662702eed07d3fec7/pydantic_core-2.50.1-cp313-cp313-manylinux_2_31_riscv64.whl", hash = "sha256:aa8224f10880d9bf1b5993988ba153d42a8b4f3f4f511f93b1f09c93ff613c72", size = 2229755, upload-time = "2026-10-11T18:32:54.126Z" },
{ url = "https://files.pythonhosted.org/packages/1a/f5/c1481f8669f6060d89110c9b1374173fc8767ca276b84f4870bd8acd5e3f/pydantic_core-2.50.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:41bc8237121bd8dc8d888dfd6279fc166ffc88c1f1bf3a8bf00869680533ca4c", size = 2242303, upload-time = "2026-10-11T18:32:55.641Z" },
{ url = "https://files.pythonhosted.org/packages/04/f9/77fc3c7653ba9b6e42049e17e96b25388187d4a7c274ab1cb07f58ac8419/pydantic_core-2.50.1-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:45c6266d071c241f2a168d45bf8c54344f0effce35e7e6b73afdec11f3687568", size = 2278345, upload-time = "2026-10-11T18:32:57.38Z" },
{ url = "https://files.pythonhosted.org/packages/95/9b/0579c5d12e7f2b16b27e6782427987341fcce07b0725e02ddb0b74add0c4/pydantic_core-2.50.1-cp313-cp313-musllinux_1_1_armv7l.whl", hash = "sha256:1deeacb112d14d3f4fcb16b165f7dbaf76c70ba6e82f37ba042bdab51970a0b8", size = 2449947, upload-time = "2026-10-11T18:32:58.896Z" },
{ url = "https://files.pythonhosted.org/packages/a8/ac/1b677db91eba54cc5922f4de6edc46ba45c2bd712dfdc0130382d158e214/pydantic_core-2.50.1-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:1c96fd793b73d1b92e65570132505498fe7b21eaef73cdf74e67e5dfba7ac9e4", size = 2476889, upload-time = "2026-10-11T18:33:00.665Z" },
{ url = "https://files.pythonhosted.org/packages/4d/2a/3a9f6624ee3ea9ccba5249dde11418bb4c35780a7a92608f8768bd3fea39/pydantic_core-2.50.1-cp313-cp313-win32.whl", hash = "sha256:06ead20d39ffd6f2f6f2a8f8a6de67ff8bb1b4f14a8a30e058502514ee2ac685", size = 2101118, upload-time = "2026-10-11T18:33:02.329Z" },
{ url = "https://files.pythonhosted.org/packages/2d/1f/323f78ddd9d9938aac420c1abb4e8ba799fc8bdab0acc67c0593b837c979/pydantic_core-2.50.1-cp313-cp313-win_amd64.whl", hash = "sha256:7816e98acc08119dc0f340ab167048ecc54126316330c1f0caf7c6756c88e28f", size = 2170840, upload-time = "2026-10-11T18:33:03.919Z" },
{ url = "https://files.pythonhosted.org/packages/cb/09/8497c52a739ae425c3ac2f7f56414cbc711c67d374346174f40fe2062644/pydantic_core-2.50.1-cp313-cp313-win_arm64.whl", hash = "sha256:c17799a62c142d61b8a3c51752a7cbc87fe2ad4ccfab10e628a77b405075c662", size = 2161633, upload-time = "2026-10-11T18:33:05.518Z" },
{ url = "https://files.pythonhosted.org/packages/49/33/28b96e81677153715e3eafb9f26663a80841e859fde282a380359b0d3fa1/pydantic_core-2.50.1-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:1cf41f1ae3fa155cf167a72689ad044bcc1e3c97e064123677149bdfb5dafc4a", size = 2224428, upload-time = "2026-10-11T18:33:07.153Z" },
{ url = "https://files.pythonhosted.org/packages/94/40/15c06410c9b7b8da5805d27b64e09bd3f900e986728106db2689dbc51513/pydantic_core-2.50.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:4df197990c15b5a37c5a277d131d9f2c67de6133f2e5dafd80d9bba4b99f46f9", size = 2023740, upload-time = "2026-10-11T18:33:08.763Z" },
{ url = "https://files.pythonhosted.org/packages/a1/4e/5eb629f6efc2a27e421d789dd4bfacbb5f6d09c80c28b13d1e87d73163d5/pydantic_core-2.50.1-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0036473f5583e6a60e50b8b21651511564277a3f05cc5dab8cf579f552cd5f6c", size = 2049435, upload-time = "2026-10-11T18:33:10.366Z" },
{ url = "https://files.pythonhosted.org/packages/ba/8e/f195aebec49ad12318876ac2368c197a7939f5d52f8e156d2238ef8a4588/pydantic_core-2.50.1-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:992c3514ec891fa7858099183e4d64e6bd5a5d4ff452fae29df22faa77a006bb", size = 2172975, upload-time = "2026-10-11T18:33:12.368Z" },
{ url = "https://files.pythonhosted.org/packages/e0/f5/7ad9fb83010cd5ea0948409db105676ed779c4e709e2d3d89b9fe2558794/pydantic_core-2.50.1-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:739dc730e6be3bd5ec2f4ab5cfc7eb047cc45fc1497b3bafec74ff2ed07df597", size = 2364197, upload-time = "2026-10-11T18:33:14.244Z" },
{ url = "https://files.pythonhosted.org/packages/ca/fb/bf0aab3e78301d202b82a0322ec968cd703b11fc0623fde9a28708936f62/pydantic_core-2.50.1-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:32fad3a91e51b6d2039c572db04a5a873260b399f6bd62c3552671fa7a4a2899", size = 2444259, upload-time = "2026-10-11T18:33:15.79Z" },
{ url = "https://files.pythonhosted.org/packages/45/35/38f6d6564fae57d9b12e5676dfa947e0e7d5c46dbeaa7eb3352261d6d299/pydantic_core-2.50.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:42b54c2c90ad348b5e3a85e03e715d572c1fde357ef104cdfe3b03b697a404ea", size = 2159857, upload-time = "2026-10-11T18:33:17.51Z" },
{ url = "https://files.pythonhosted.org/packages/65/a0/fb0a3ca10f139dcf765b2d312d10cf0f65c57c59993229d00ad12b14ceff/pydantic_core-2.50.1-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:2df1ff41884de2bc4b307bafd7c40a691094fad2ff8e767e5b45a319257bcf4e", size = 2233954, upload-time = "2026-10-11T18:33:19.591Z" },
{ url = "https://files.pythonhosted.org/packages/8c/6a/e63842252702aa4ec6e6b7178ca85e541a77459076592c23ebe2d9840b33/pydantic_core-2.50.1-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:fe90228920fd8ff2be62622b6bb8a2b11acd65046d50c6b130614b5879605a20", size = 2243876, upload-time = "2026-10-11T18:33:21.393Z" },
{ url = "https://files.pythonhosted.org/packages/39/25/5991cf8318b37e0dfab47b87541619a1df8501a793cba0d978846cba37a7/pydantic_core-2.50.1-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:844b869f118e22a41a091bdcedda8a71bc1b0f62c38d1a0c3211cece47e1d8fc", size = 2277908, upload-time = "2026-10-11T18:33:23.324Z" },
{ url = "https://files.pythonhosted.org/packages/a7/3e/3ee8baaa6cc25a6961c69168cf9ff0f002d56f4e0d541ad6724c18fb61f3/pydantic_core-2.50.1-cp314-cp314-musllinux_1_1_armv7l.whl", hash = "sha256:2eb75304506894a281d346220a4f7481a1b8729577c5ed2a05395991966a8396", size = 2449285, upload-time = "2026-10-11T18:33:24.942Z" },
{ url = "https://files.pythonhosted.org/packages/c0/c7/acbec6deac13fe697a80c275a9b6661db62c4d323bac8a47347b1f39c7cd/pydantic_core-2.50.1-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:6b20a4bffabdad0db2927ac034ae3b8a681b1f7a0182f3e60b479ad2fde21ebb", size = 2479013, upload-time = "2026-10-11T18:33:26.925Z" },
{ url = "https://files.pythonhosted.org/packages/10/08/21a3f237b264389f6219d053ee78fc1b5c2fd402c1b1cb2b6cb8b85f9834/pydantic_core-2.50.1-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:99ba9bc2b8062ea0c326a990f7f00e6530c23579de66dd246e72c4cafef950a5", size = 1484400, upload-time = "2026-10-11T18:33:28.693Z" },
{ url = "https://files.pythonhosted.org/packages/09/ce/077a6d262d12ef09108377ac0717f029f420d773ace63cafd6143af75568/pydantic_core-2.50.1-cp314-cp314-win32.whl", hash = "sha256:cf356f70551d40374eaffb1aa63f1eb6d2006681cbd7a9faea173ce0f4dd7cd2", size = 2103222, upload-time = "2026-10-11T18:33:30.326Z" },
{ url = "https://files.pythonhosted.org/packages/14/4c/350a2415209c43d670eb71d3c040f332c04a30583d39e311b05c7ac15762/pydantic_core-2.50.1-cp314-cp314-win_amd64.whl", hash = "sha256:d32f3acc081cc3923386d88f422cde8892335e95f034e0104bb4cf9310d9915f", size = 2171586, upload-time = "2026-10-11T18:33:32.139Z" },
{ url = "https://files.pythonhosted.org/packages/bf/92/9bea6ca96580a0902fed366f064f0829e404f41889b34543279a1162b888/pydantic_core-2.50.1-cp314-cp314-win_arm64.whl", hash = "sha256:bed5163e03b98bc1fa2eb05d74c63d9c5c95d8ed6254985481640fbf5e237dea", size = 2155773, upload-time = "2026-10-11T18:33:33.896Z" },
{ url = "https://files.pythonhosted.org/packages/86/8c/f121f073cf32bdd5cba7e6230b1ce0ac845b0cf43e44dd597d95af272db2/pydantic_core-2.50.1-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:9572c1369e9c9da2d64a7b7992c786d90ff295abc93964cfe3125e4290768070", size = 2234017, upload-time = "2026-10-11T18:33:35.588Z" },
{ url = "https://files.pythonhosted.org/packages/a4/69/2bb2bcd6146cffe98d760a46c42ae71efd5151d9b2f9c9bf6619a3b32083/pydantic_core-2.50.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:2005207aafe1231315718bf6ed5d064a7300fb4772754af35ee72fc68159492e", size = 2001016, upload-time = "2026-10-11T18:33:37.57Z" },
{ url = "https://files.pythonhosted.org/packages/20/b3/fbf854c7d07ec114260c26e9e2071a4381740f9ae09641dbfcbdf2a18c45/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:64f6047f62a6c5ae08d0a6afb035667aa2d97c3d20d69762e034c5ea144d92a5", size = 2023015, upload-time = "2026-10-11T18:33:39.433Z" },
{ url = "https://files.pythonhosted.org/packages/65/20/6de55b2f92cdb614b745c6e9ced639fc4fd7e1e77604825a88bdece6fcbd/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:1ef800dd7d85bcdadf4c3076e4c94e43939493558a3b69a1ea830c706d4617bb", size = 2192543, upload-time = "2026-10-11T18:33:41.381Z" },
{ url = "https://files.pythonhosted.org/packages/0c/d9/19e91c94bd5c405945ce2f15526808aea37e162c253160de8ed7bf70b406/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b0135bcdcaa0f23573f286e4cb5e0fd2962700964ed13df085b85f2b97aeab9e", size = 2388704, upload-time = "2026-10-11T18:33:43.167Z" },
{ url = "https://files.pythonhosted.org/packages/b6/bc/2e24c8415eae1a25ee5a5484946a917123bad2e9d01689a759236928175a/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0b3a6f334c6a2345ca15318ff894502a90012536404b37c844a976c76c846e0b", size = 2464118, upload-time = "2026-10-11T18:33:44.856Z" },
{ url = "https://files.pythonhosted.org/packages/bd/1f/945b8053cb061c64e102bcaf7bfb9ed740c0bd4349f9bb978a7d4ddff4ab/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:06e01fbbfdb9be777b316a71b6c49efaf4a08b615d0a98d678cda3023f79d019", size = 2150142, upload-time = "2026-10-11T18:33:46.661Z" },
{ url = "https://files.pythonhosted.org/packages/2b/78/96a3e50bf0d64aaae781107eb9335b7529d05a85793ed6e7241c4cd1d931/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:a29a061fec0b4e2d714f277e70a3a18125ecff803f2fea6eade2f2e53711d112", size = 2245577, upload-time = "2026-10-11T18:33:48.574Z" },
{ url = "https://files.pythonhosted.org/packages/7a/5d/a6038a0322232758a6ebfa709f4ca14a60bf5b93940cd0b345056a557da4/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:f5187624823423e1d1b82b1072ac41dc837389e18d3d0572cc19bbee46cd550a", size = 2263728, upload-time = "2026-10-11T18:33:50.527Z" },
{ url = "https://files.pythonhosted.org/packages/0d/4b/76ded3333a457a9344c4f2d63f2d82d0101654b05178fa4ddfe7d3627674/pydantic_core-2.50.1-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:3e46a9eb0a0901dd6275e6b06ac3a464885ef350ec4121fe486869de8053e4bb", size = 2293630, upload-time = "2026-10-11T18:33:52.362Z" },
{ url = "https://files.pythonhosted.org/packages/a9/00/9eca378335c9c1b72bc779bf6e4c2a82ce784f14ec48a0e87102c9870e05/pydantic_core-2.50.1-cp314-cp314t-musllinux_1_1_armv7l.whl", hash = "sha256:756d669f04e62ec4148ecfe22be6a4484d9b1181a6ef32e205ebfd200540858b", size = 2468048, upload-time = "2026-10-11T18:33:54.118Z" },
{ url = "https://files.pythonhosted.org/packages/35/ca/e3832e9cf93651251de43c8c5c029ed680a3c1a0a1b17ee26c81bed08cbd/pydantic_core-2.50.1-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:c516cc5367ca3448995d42cb994bf3f4c9002d2a7c22eac9622551269ad1b807", size = 2512159, upload-time = "2026-10-11T18:33:55.99Z" },
{ url = "https://files.pythonhosted.org/packages/4b/f2/773469b5a10a39116a2cb17edaf6d722f017dd8da07161b371465311c542/pydantic_core-2.50.1-cp314-cp314t-win32.whl", hash = "sha256:9d1bed94af6a63835461f3cf7502058eb166c58c4778e11d0f433cfb1bd69e19", size = 2098406, upload-time = "2026-10-11T18:33:58.043Z" },
{ url = "https://files.pythonhosted.org/packages/ee/42/0bb74f8f25204b259b11ab7c12dc7f180893b6bd706118b385147fb6efd5/pydantic_core-2.50.1-cp314-cp314t-win_amd64.whl", hash = "sha256:c8dce1f1e0e5358b682a6ad3fa5e31b31d4560997b8e61417e9217c8d60f8a0c", size = 2148481, upload-time = "2026-10-11T18:33:59.913Z" },
{ url = "https://files.pythonhosted.org/packages/47/0d/d801646c9679a4e630e15cf521d4108b93854b42a6e6e02391bd4c6b1095/pydantic_core-2.50.1-cp314-cp314t-win_arm64.whl", hash = "sha256:ceff0acc940be2715bd6ad17b24c0e5304abf44f6efd0f81ee8499e640f9dc86", size = 2174972, upload-time = "2026-10-11T18:34:01.875Z" },
{ url = "https://files.pythonhosted.org/packages/b2/84/23984b763d8862a02a13d27a44b6e8169428fd85ecfed88f54c29108604d/pydantic_core-2.50.1-cp315-cp315-macosx_10_12_x86_64.whl", hash = "sha256:8a6791afa2245e6c6b180122d105941644f5bd410bb18623b408808cc41a3102", size = 2224599, upload-time = "2026-10-11T18:34:04.016Z" },
{ url = "https://files.pythonhosted.org/packages/4d/90/a63cf8586abc1d1a3f6d9b18f0224789ebf003851f092ebda3c7c863fd32/pydantic_core-2.50.1-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:84f34323a61a365b4e9295de6028474754829aaddd59c7bf1a040e7487ef8f3c", size = 2024191, upload-time = "2026-10-11T18:34:05.901Z" },
{ url = "https://files.pythonhosted.org/packages/a6/6a/f34bff9808ffb4907fbf5f5040457d253cacf2da7fce9efbc99ca1b1a44d/pydantic_core-2.50.1-cp315-cp315-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:23edad659e8dbd8ca7e4e877fe6c81573abbdf215bd25a68b53e1272f58b80c7", size = 2048252, upload-time = "2026-10-11T18:34:07.757Z" },
{ url = "https://files.pythonhosted.org/packages/b2/54/13f419bf1eb59852003818e25935aaf175687d978f4c4bca70e08fe40a3b/pydantic_core-2.50.1-cp315-cp315-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:3a5fce22f1e87d181e924e12da7d81cfe031fb3881a5ddf26ad28f141756ca43", size = 2173376, upload-time = "2026-10-11T18:34:09.592Z" },
{ url = "https://files.pythonhosted.org/packages/6d/6c/b5a34d24cd0c81669d8f8339d74e6815abcf2f8fb48ab4b49b84c09be1d5/pydantic_core-2.50.1-cp315-cp315-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c73622ef819328873b53109ee4f77ceb598bffedd02daf916102be3228866b78", size = 2364559, upload-time = "2026-10-11T18:34:11.534Z" },
{ url = "https://files.pythonhosted.org/packages/eb/8d/d64d6216a8df365082665927ff923f183056f9049fee08e9777c9ac05296/pydantic_core-2.50.1-cp315-cp315-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ce8c25ca38cc0e3d7753ba180808de2c0c8cb24eae0df64491e40921454e9831", size = 2444697, upload-time = "2026-10-11T18:34:13.535Z" },
{ url = "https://files.pythonhosted.org/packages/b8/0d/1b1149f60a00ea21ba5f70e28acbd40feb4598af414f80f53c921fac07c9/pydantic_core-2.50.1-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7689580e72a642ab5ec64d5f55b2e33636fa43b4ebe63c0c2c965ef307c7d1aa", size = 2159961, upload-time = "2026-10-11T18:34:15.56Z" },
{ url = "https://files.pythonhosted.org/packages/1e/35/f236549299dcc78e71e945495d7ec67e78d20844d0999c60601685003031/pydantic_core-2.50.1-cp315-cp315-manylinux_2_31_riscv64.whl", hash = "sha256:d5c0e32fdbce7f1e8ef4d11f655694bf5f4175c757a9f1dc2be09b8864e5bcf5", size = 2234581, upload-time = "2026-10-11T18:34:17.502Z" },
{ url = "https://files.pythonhosted.org/packages/6a/85/26901a490522b7f75ef9bb9a7afb73e5bb550f0e1cb5b99a0069183e2eb9/pydantic_core-2.50.1-cp315-cp315-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:40f523349960fa30f3ea51404308ff50f9997a90df639590f47a057c1f32b415", size = 2244090, upload-time = "2026-10-11T18:34:19.402Z" },
{ url = "https://files.pythonhosted.org/packages/ca/2c/481bcfc70ceeb77a778ca6e5b705fe592cb64735c108157f81b7dd9c280e/pydantic_core-2.50.1-cp315-cp315-musllinux_1_1_aarch64.whl", hash = "sha256:d4193206b6587047437f6f11d7e776df23e1c1e23af2a54d9347275614791e10", size = 2277948, upload-time = "2026-10-11T18:34:21.317Z" },
{ url = "https://files.pythonhosted.org/packages/24/eb/f1e09333faa7ba447cde967310f758430cc7c5e987bdab5228816c70030d/pydantic_core-2.50.1-cp315-cp315-musllinux_1_1_armv7l.whl", hash = "sha256:84bc765b282a9d5b7fe0348b8648904f25a6a04b2139da52b1dd30c8ac3a2c8f", size = 2449688, upload-time = "2026-10-11T18:34:23.321Z" },
{ url = "https://files.pythonhosted.org/packages/d1/b3/036bde636db8f76d92996e81aefc75678ab5cec4a07eea1ad0c72a893fc3/pydantic_core-2.50.1-cp315-cp315-musllinux_1_1_x86_64.whl", hash = "sha256:ed1e728b39a383c81035b2459cfcb35d99dfb01f7d6ebe3a913bc1cc5b81e459", size = 2479286, upload-time = "2026-10-11T18:34:25.214Z" },
{ url = "https://files.pythonhosted.org/packages/d0/a3/07f018294ee18d144afeb6df1a47d9e92960f014be45c5ed13519fa5af95/pydantic_core-2.50.1-cp315-cp315-win32.whl", hash = "sha256:bc94f474417604bd383d2cd445d071b07dd55fedceed3ce33407bf1fcc107290", size = 2103683, upload-time = "2026-10-11T18:34:27.42Z" },
{ url = "https://files.pythonhosted.org/packages/5f/98/f9bd7e1f9b6709f155acb9ef826d9c3884fe925f811fd8e55b9b52280bad/pydantic_core-2.50.1-cp315-cp315-win_amd64.whl", hash = "sha256:983a662de2571cb2502fc8ff47b6770b03d025d2eb314c92f77b3f07c74720ed", size = 2171681, upload-time = "2026-10-11T18:34:29.508Z" },
{ url = "https://files.pythonhosted.org/packages/10/87/4bb3e1e7f385c076ab5af4d6dd0571b22042cd8207eb810d5b9fef15ae31/pydantic_core-2.50.1-cp315-cp315-win_arm64.whl", hash = "sha256:94845ff54dc5193f228cab81b2662a04bfbb892e95bdc15edf7399000ce57d54", size = 2156251, upload-time = "2026-10-11T18:34:31.455Z" },
{ url = "https://files.pythonhosted.org/packages/47/47/83643225b08f2aef6c8cc4bbe6e3f79c5e139c4364a6e450d0f399d87774/pydantic_core-2.50.1-cp315-cp315t-macosx_10_12_x86_64.whl", hash = "sha256:4a53d13cdfbedbfa87f08b83c1a0a5efcc767d785a4b41934fa9cb672670493a", size = 2234363, upload-time = "2026-10-11T18:34:33.65Z" },
{ url = "https://files.pythonhosted.org/packages/5e/66/127ca649ba2f2462039dc1e694c6c01e00a3689f023a617364d3507e6d97/pydantic_core-2.50.1-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:efbecf43d321f7b9281441f1f213f7c21c66988b0e06c2730ba13ed47a46bb08", size = 2000972, upload-time = "2026-10-11T18:34:36.037Z" },
{ url = "https://files.pythonhosted.org/packages/5e/4f/e421e0a5d653b1203b090b2e48745976988d7338a647940704b5b9c2b399/pydantic_core-2.50.1-cp315-cp315t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bc1f08f68dac9f9e83845a8039880aba2ab553eb9b2259c3243a313182c253fe", size = 2022925, upload-time = "2026-10-11T18:34:37.972Z" },
{ url = "https://files.pythonhosted.org/packages/d5/4e/ea5568e2491e1a71100f15ae8c2d01ef52db42a184a2d4e716bc79e5eb8f/pydantic_core-2.50.1-cp315-cp315t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:5dfe41f232befddb9c4377f6cfc702b51595e2d78ed082672adf8758d2c4619f", size = 2192867, upload-time = "2026-10-11T18:34:39.921Z" },
{ url = "https://files.pythonhosted.org/packages/ae/5e/3b8c3a35acbe219909ada5defad5d7d9fed845fb2b37bd5ec518f453c119/pydantic_core-2.50.1-cp315-cp315t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:adc06d218a1cadfd2ec4628424d7d79ce4eba69c2965e7e7b55106f0da5208c8", size = 2388687, upload-time = "2026-10-11T18:34:42.184Z" },
{ url = "https://files.pythonhosted.org/packages/b6/aa/7889b4e515f91a2e8c0ae6b5081fec0feb30c4398d1434e14793c60f173a/pydantic_core-2.50.1-cp315-cp315t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2cf91809d0721ab81592ba67bea7694821679c10b1a2e3c3460082b286c1918a", size = 2464415, upload-time = "2026-10-11T18:34:44.384Z" },
{ url = "https://files.pythonhosted.org/packages/08/78/93449e628eb8a6fdcce3eff9043081179d1bc7ce6f1bff32dc5006f41e00/pydantic_core-2.50.1-cp315-cp315t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:23923ab9292c40da026330b1ecf4dc2618c8e86e0422e5d1fbf50d94d64ca4f8", size = 2150823, upload-time = "2026-10-11T18:34:46.392Z" },
{ url = "https://files.pythonhosted.org/packages/f4/f1/72c5bc129fceb0d00f05dc1e67f518c1728de1928c55f81fc13d7690de39/pydantic_core-2.50.1-cp315-cp315t-manylinux_2_31_riscv64.whl", hash = "sha256:f3377c8c2b3ce898423c5e5dd94c7982e30aa7717a7e6ab2470b9de364963709", size = 2245806, upload-time = "2026-10-11T18:34:48.805Z" },
{ url = "https://files.pythonhosted.org/packages/28/2a/922a0e78f3aa6ab837b59f88190233fb8dad546c17995fde9bb3ed3b9b49/pydantic_core-2.50.1-cp315-cp315t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:455a773617b5913bf5c20d0692e5787b119e52c4d40ea644ca31f5758fd31be2", size = 2264160, upload-time = "2026-10-11T18:34:50.876Z" },
{ url = "https://files.pythonhosted.org/packages/52/a8/0f1449e3e1b20941c9372faa18e7b6a092e30cdfa841902473f7989532ac/pydantic_core-2.50.1-cp315-cp315t-musllinux_1_1_aarch64.whl", hash = "sha256:1a9006395dece0e32e704c315eff8a00bede494f6108546cfc5539c89fef4f9a", size = 2294031, upload-time = "2026-10-11T18:34:52.876Z" },
{ url = "https://files.pythonhosted.org/packages/d1/d0/1031f492857de70355fb16524bbb03efce5fd34c93ed4a1ec60be07e0d4b/pydantic_core-2.50.1-cp315-cp315t-musllinux_1_1_armv7l.whl", hash = "sha256:d2d82aa62521c55ddfb000ae70f88cdd8de974078f6024e821dfe5addd0c818f", size = 2468423, upload-time = "2026-10-11T18:34:54.995Z" },
{ url = "https://files.pythonhosted.org/packages/46/52/269ffffa645b8e47906395a39cf9db1151ae9fa4bcd7f47b960bc31baf37/pydantic_core-2.50.1-cp315-cp315t-musllinux_1_1_x86_64.whl", hash = "sha256:009634b83993777ddcd69cad0ffcace43dabde692109528e35f0fde91e386a8b", size = 2512598, upload-time = "2026-10-11T18:34:57.149Z" },
{ url = "https://files.pythonhosted.org/packages/31/5c/e47e28281f20326ff6f3c31d626f0a83e615d2d94ba41bb0ad6ec237184a/pydantic_core-2.50.1-cp315-cp315t-win32.whl", hash = "sha256:3fde4fdc6487a58d944ca87cf5adc95d5f266e872c19599f5f4c0a8a1b1f9f9f", size = 2098535, upload-time = "2026-10-11T18:34:59.313Z" },
{ url = "https://files.pythonhosted.org/packages/03/ad/759e181e69c1b472c60b2049e5f61d5da1deefdd5ce1df4bb2ebcf771f25/pydantic_core-2.50.1-cp315-cp315t-win_amd64.whl", hash = "sha256:1c8632d4ac04e6f91128fca584b3a8a507d81604c24eeaaad00d4be42765c32b", size = 2148645, upload-time = "2026-10-11T18:35:01.571Z" },
{ url = "https://files.pythonhosted.org/packages/6d/56/8a702c27e5be9f47e5f19d8669227424290e4c024e7c370279cbaf244b4e/pydantic_core-2.50.1-cp315-cp315t-win_arm64.whl", hash = "sha256:c3ede305158e75510be50869b319550ab072008c13d64d4ab1e094fb286b6f44", size = 2175297, upload-time = "2026-10-11T18:35:04.079Z" },
{ url = "https://files.pythonhosted.org/packages/e7/73/a23a327237d9bb985298ce47702e196f995ce850224c12c70886bd66bb5c/pydantic_core-2.50.1-graalpy311-graalpy242_311_native-macosx_10_12_x86_64.whl", hash = "sha256:062e891facce5ca296a1c37098e5e466780457f86413894b399f0cf22934f769", size = 2162560, upload-time = "2026-10-11T18:35:06.274Z" },
{ url = "https://files.pythonhosted.org/packages/df/b2/33b37b5e82408f402a5e82649a43e7c95cd5dab7beaeef2c35cedbfd18f2/pydantic_core-2.50.1-graalpy311-graalpy242_311_native-macosx_11_0_arm64.whl", hash = "sha256:49c2cbb2397fe4d0987e84606e691af6cb87bc0ee1bd3e7b737f7e10b4c142f9", size = 2075250, upload-time = "2026-10-11T18:35:08.455Z" },
{ url = "https://files.pythonhosted.org/packages/04/62/c7d5b9249466ccab90f3ce4790c2399dbfb8172ae9e74a7753dd295fe65a/pydantic_core-2.50.1-graalpy311-graalpy242_311_native-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9e4472072de0137ee0d8e72d6620e85939c271d2f90f6bbb4b15c24638b79f92", size = 2107891, upload-time = "2026-10-11T18:35:10.918Z" },
{ url = "https://files.pythonhosted.org/packages/d4/7e/28d29bc1657195933147f772dee0558d9e0f045bbc11db7f992f40c37bb5/pydantic_core-2.50.1-graalpy311-graalpy242_311_native-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6ed4f3cef55164b026fefb41341b7754cc6b624c75dfe7142d2ecceb5ad21c87", size = 2268026, upload-time = "2026-10-11T18:35:13.336Z" },
{ url = "https://files.pythonhosted.org/packages/a5/09/1bcf160f3cd6333e2a76982fae5963e5032de0bcaaba38464223dc266bfe/pydantic_core-2.50.1-graalpy312-graalpy250_312_native-macosx_10_12_x86_64.whl", hash = "sha256:76e2e83fa6ec8cdc972d438dafc2522b3a47bee4ec0ae668b29cfb1977ab5242", size = 2217070, upload-time = "2026-10-11T18:35:15.688Z" },
{ url = "https://files.pythonhosted.org/packages/3d/81/f02de95eec7794dfc7a5bc69a834f0e834b31b3009014ce6de903855f775/pydantic_core-2.50.1-graalpy312-graalpy250_312_native-macosx_11_0_arm64.whl", hash = "sha256:a51eee75939cf811ac09b278745a6cee7dc873ccfbc8b9af3cc88fe4b7ce25b5", size = 2039027, upload-time = "2026-10-11T18:35:18.07Z" },
{ url = "https://files.pythonhosted.org/packages/4d/16/227746ed3771d9bf2304568b55134849ece34e13b38b1d76de763015c77f/pydantic_core-2.50.1-graalpy312-graalpy250_312_native-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ae28183297fb0d2b8dc46a1f01d51f5e45825fc5afe76a835a6cb7fb34821295", size = 2109009, upload-time = "2026-10-11T18:35:20.218Z" },
{ url = "https://files.pythonhosted.org/packages/e5/b9/7664d1592a0e5a74903f357cd5b28ceb7336f3473256c5a4e8c8432f1881/pydantic_core-2.50.1-graalpy312-graalpy250_312_native-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:88e492e8b9d0312e7dc13667c30222abf284dc3b79b5302b3607b41a5784ce61", size = 2269883, upload-time = "2026-10-11T18:35:22.48Z" },
{ url = "https://files.pythonhosted.org/packages/bd/35/002a378302ff91d2a7f149bc8d22363faf581ba40ac39d0123444315a32d/pydantic_core-2.50.1-pp311-pypy311_pp73-macosx_10_12_x86_64.whl", hash = "sha256:7456d699b13954e9c0164dcb267250a10ae0dfb03e6e26d6796ab0d46e189c84", size = 2154076, upload-time = "2026-10-11T18:35:24.743Z" },
{ url = "https://files.pythonhosted.org/packages/4b/5c/7a034330082c00f3c9795052bd9b161aaaf6e1951e897ac00a094823ef7e/pydantic_core-2.50.1-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:b0d955195bbbe489ad343fcc956eacea9357b79cb22192c66cacdefcbc14b32f", size = 2085850, upload-time = "2026-10-11T18:35:27.009Z" },
{ url = "https://files.pythonhosted.org/packages/57/fa/d5b44a7d3d4eceed6ef8713a0003af56fefde6ec75915513bcdd5d730cd9/pydantic_core-2.50.1-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f2c634642694e6a0dad2ab1d375589fa671fd442edd5caf7d9737b8f6ca22906", size = 2259754, upload-time = "2026-10-11T18:35:29.763Z" },
{ url = "https://files.pythonhosted.org/packages/b6/88/e01dd37301710bd8b3b2daf34ec9e2a6e83a333130831c0d468b0292a48c/pydantic_core-2.50.1-pp311-pypy311_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:ee6db2fbed51a7991302e8fac498cd67e336246026d0dfa84cf5166ce1412760", size = 2268712, upload-time = "2026-10-11T18:35:32.654Z" },
{ url = "https://files.pythonhosted.org/packages/3e/43/5bb80d4a4d2b2d84612a30205662cc521a20d209c94abc079ea48b4e0df2/pydantic_core-2.50.1-pp311-pypy311_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:79490e33c4c0fcb933bbbcfc3a62184d8803b99f535863dfbb925e1bcb6945ad", size = 2305049, upload-time = "2026-10-11T18:35:35.392Z" },
{ url = "https://files.pythonhosted.org/packages/e8/7b/e3ef76b269cfe4a5bd3bdcf5d7124cf05e5a8909d443b91639307116bdae/pydantic_core-2.50.1-pp311-pypy311_pp73-musllinux_1_1_armv7l.whl", hash = "sha256:48569b0ade9edfbe065cad1d700175546592aebbb42f02adcebcc26e75b896fe", size = 2466001, upload-time = "2026-10-11T18:35:37.791Z" },
{ url = "https://files.pythonhosted.org/packages/8f/7a/ea0947aadc1d9f72d4be00d2e19939611ec17363bcb5e6eb9ec7d8221c34/pydantic_core-2.50.1-pp311-pypy311_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:5f3cae32fc46121f787cb2486de9cf95a8bf72aec5cc78f64c606fa1735a6ef5", size = 2481777, upload-time = "2026-10-11T18:35:40.287Z" },
{ url = "https://files.pythonhosted.org/packages/24/f3/d15bc0b1fb0c4f1e07b3326ffb7489f7ae70da2b56a0884d22641b0eb47c/pydantic_core-2.50.1-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:7f476456ac2bb0d937f75191494a09c83a30765fea4f70f3b404942fe25f6cdf", size = 2336787, upload-time = "2026-10-11T18:35:42.558Z" },
]
[[package]]
name = "pygments"
version = "2.21.0"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/49/2e/ced460408999b33da6b31b0021b0f37d329e202d4169aeb164493778f25b/pygments-2.21.0.tar.gz", hash = "sha256:610ca751c9bc2492b38eb9a38a7fbc93edbbb2d7182edaf34e66ae493dee5c8c", size = 5005329, upload-time = "2026-08-17T08:02:48.824Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/71/46/17f022dd3e953bf20a04a028a21ec746d942f8d2af30fa0f124fa0e6a684/pygments-2.21.0-py3-none-any.whl", hash = "sha256:2363c69b61c4a97c838da3b130dcd6468f4848992b21a82f2a63ec34377137d9", size = 1250147, upload-time = "2026-08-17T08:02:44.912Z" },
]
[[package]]
name = "pytest"
version = "9.1.1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "colorama", marker = "sys_platform == 'win32'" },
{ name = "iniconfig" },
{ name = "packaging" },
{ name = "pluggy" },
{ name = "pygments" },
]
sdist = { url = "https://files.pythonhosted.org/packages/e4/47/b9efed96c114afcfa3c9d3fe98a76a1d14c74a9e266d397cf6eb64be5e01/pytest-9.1.1.tar.gz", hash = "sha256:1088fbde8f2b49d95a549a195707afa7a76a3ce9bcadc26b6d71f0ffda5fe313", size = 1636369, upload-time = "2026-06-19T10:58:32.857Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/24/25/1de2678b631f5a49215c6c96fff41ba892b0a34df68d6d80292b1b48aa7f/pytest-9.1.1-py3-none-any.whl", hash = "sha256:37a86b45efb9a47a61a36449063e8e18d0cab3161329fc099eb21783169c4f0c", size = 386536, upload-time = "2026-06-19T10:58:31.347Z" },
]
[[package]]
name = "python-multipart"
version = "0.0.32"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/5b/42/55c32bb9b12693c092ad250a0e82edb5b31ddeda6eb772de5f308b3804ad/python_multipart-0.0.32.tar.gz", hash = "sha256:be54b7f3fa167bb83e4fcd936b887b708f4e57fe75911c02aebf53efaf8d938e", size = 46881, upload-time = "2026-06-04T16:18:58.647Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/e1/04/e8135ebd1ad02c56ec633277529b2602ff99ff634be76cdba5744cf554fd/python_multipart-0.0.32-py3-none-any.whl", hash = "sha256:ff6d3f776f16878c894e52e107296ffc890e913c611b1a4ec6c44e2821fe2e23", size = 30042, upload-time = "2026-06-04T16:18:57.319Z" },
]
[[package]]
name = "starlette"
version = "1.10.0"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "anyio" },
{ name = "typing-extensions", marker = "python_full_version < '3.13'" },
]
sdist = { url = "https://files.pythonhosted.org/packages/48/bb/3d8757f21e9a53d9035c9eb039a777047139a16bfdbedfc7a58241c3d914/starlette-1.10.0.tar.gz", hash = "sha256:b8399098d4c1e3522734f7235dc79b1fc967f96cf139c81e0fa30479e0685f9b", size = 2734356, upload-time = "2026-10-24T15:04:12.342Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/88/2e/947cfe02def9371c07cd5bf5b6b61c829e9aecb9904db02a66cfafbc1eec/starlette-1.10.0-py3-none-any.whl", hash = "sha256:478c0ab3b4ced6e82719849c118fa406f0278a3499c1a898cd15cd31bdc38ce4", size = 80571, upload-time = "2026-10-24T15:04:10.371Z" },
]
[[package]]
name = "typing-extensions"
version = "4.16.0"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/f6/cc/6253133b5bb138fc3306cebfbda2c520f545d36b5be2c7255cc528bb45d6/typing_extensions-4.16.0.tar.gz", hash = "sha256:dc983d19a509c94dba722ee6abd33940f7c05a89e243c47e907eb4db6f1a43e5", size = 113555, upload-time = "2026-07-02T08:40:05.92Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/49/d3/b8441a820a491ddfc024b0b0cf0393375b75ea13866d9c66727e54c2fc80/typing_extensions-4.16.0-py3-none-any.whl", hash = "sha256:481caa481374e813c1b176ada14e97f1f67a4539ce9cfeb3f350d78d6370c2e8", size = 45571, upload-time = "2026-07-02T08:40:04.659Z" },
]
[[package]]
name = "typing-inspection"
version = "0.4.4"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "typing-extensions" },
]
sdist = { url = "https://files.pythonhosted.org/packages/a3/26/b09b8010994eccc3c09092e6b34058f36a460eea2d4c3e8b910c695975a0/typing_inspection-0.4.4.tar.gz", hash = "sha256:547274fa6b0a561ccf549cc9524b999a578e737d015d8709d021f9d0d13bea47", size = 76928, upload-time = "2026-08-12T12:37:25.997Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/67/81/4add07e5172b7ac40d8ed5ff580409a7801a4fe26d529bdd915401dabfbe/typing_inspection-0.4.4-py3-none-any.whl", hash = "sha256:65b8397ba37ccbce054456aaccddfc91e6e3083c92824df348d96ca832f3f147", size = 14750, upload-time = "2026-08-12T12:37:24.648Z" },
]
[[package]]
name = "uvicorn"
version = "0.54.0"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "click" },
{ name = "h11" },
]
sdist = { url = "https://files.pythonhosted.org/packages/da/34/30e9280707135d2cfc589dfff3cb796bd07a3aeb1a3e415ba09dd89d7bb4/uvicorn-0.54.0.tar.gz", hash = "sha256:a2e33cbfaa0306f8e6b0c13e0cb89d7d7a2da3e62b90c66e18c33d9807b28620", size = 112283, upload-time = "2026-09-25T06:52:37.601Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/38/0c/b54a4fdd7f90a3af8b02ebc9ce6712c2c208b7926a2f7bad95c33ebbe943/uvicorn-0.54.0-py3-none-any.whl", hash = "sha256:505bdb0f318731d45f1f712071fc781a8981f6847a31c902c9f5e652d4f67faf", size = 87427, upload-time = "2026-09-25T06:52:35.829Z" },
]
+24
View File
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
+7
View File
@@ -0,0 +1,7 @@
# Tauri + Vue + TypeScript
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
## Recommended IDE Setup
- [VS Code](https://code.visualstudio.com/) + [Vue - Official](https://marketplace.visualstudio.com/items?itemName=Vue.volar) + [Tauri](https://marketplace.visualstudio.com/items?itemName=tauri-apps.tauri-vscode) + [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer)
+13
View File
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>NqiTools</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
+1626
View File
File diff suppressed because it is too large Load Diff
+29
View File
@@ -0,0 +1,29 @@
{
"name": "nqi-tools",
"private": true,
"version": "0.1.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vue-tsc --noEmit && vite build",
"preview": "vite preview",
"tauri": "tauri",
"tauri:dev": "tauri dev",
"exe": "tauri build -- --bundles none"
},
"dependencies": {
"@tauri-apps/api": "^2",
"@tauri-apps/plugin-dialog": "^2",
"@tauri-apps/plugin-opener": "^2",
"@vicons/ionicons5": "^0.13.0",
"naive-ui": "^2.43.2",
"vue": "^3.5.13"
},
"devDependencies": {
"@vitejs/plugin-vue": "^6.0.7",
"typescript": "~6.0.3",
"vite": "^8.0.16",
"vue-tsc": "^3.3.5",
"@tauri-apps/cli": "^2"
}
}
+6
View File
@@ -0,0 +1,6 @@
<svg width="206" height="231" viewBox="0 0 206 231" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M143.143 84C143.143 96.1503 133.293 106 121.143 106C108.992 106 99.1426 96.1503 99.1426 84C99.1426 71.8497 108.992 62 121.143 62C133.293 62 143.143 71.8497 143.143 84Z" fill="#FFC131"/>
<ellipse cx="84.1426" cy="147" rx="22" ry="22" transform="rotate(180 84.1426 147)" fill="#24C8DB"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M166.738 154.548C157.86 160.286 148.023 164.269 137.757 166.341C139.858 160.282 141 153.774 141 147C141 144.543 140.85 142.121 140.558 139.743C144.975 138.204 149.215 136.139 153.183 133.575C162.73 127.404 170.292 118.608 174.961 108.244C179.63 97.8797 181.207 86.3876 179.502 75.1487C177.798 63.9098 172.884 53.4021 165.352 44.8883C157.82 36.3744 147.99 30.2165 137.042 27.1546C126.095 24.0926 114.496 24.2568 103.64 27.6274C92.7839 30.998 83.1319 37.4317 75.8437 46.1553C74.9102 47.2727 74.0206 48.4216 73.176 49.5993C61.9292 50.8488 51.0363 54.0318 40.9629 58.9556C44.2417 48.4586 49.5653 38.6591 56.679 30.1442C67.0505 17.7298 80.7861 8.57426 96.2354 3.77762C111.685 -1.01901 128.19 -1.25267 143.769 3.10474C159.348 7.46215 173.337 16.2252 184.056 28.3411C194.775 40.457 201.767 55.4101 204.193 71.404C206.619 87.3978 204.374 103.752 197.73 118.501C191.086 133.25 180.324 145.767 166.738 154.548ZM41.9631 74.275L62.5557 76.8042C63.0459 72.813 63.9401 68.9018 65.2138 65.1274C57.0465 67.0016 49.2088 70.087 41.9631 74.275Z" fill="#FFC131"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M38.4045 76.4519C47.3493 70.6709 57.2677 66.6712 67.6171 64.6132C65.2774 70.9669 64 77.8343 64 85.0001C64 87.1434 64.1143 89.26 64.3371 91.3442C60.0093 92.8732 55.8533 94.9092 51.9599 97.4256C42.4128 103.596 34.8505 112.392 30.1816 122.756C25.5126 133.12 23.9357 144.612 25.6403 155.851C27.3449 167.09 32.2584 177.598 39.7906 186.112C47.3227 194.626 57.153 200.784 68.1003 203.846C79.0476 206.907 90.6462 206.743 101.502 203.373C112.359 200.002 122.011 193.568 129.299 184.845C130.237 183.722 131.131 182.567 131.979 181.383C143.235 180.114 154.132 176.91 164.205 171.962C160.929 182.49 155.596 192.319 148.464 200.856C138.092 213.27 124.357 222.426 108.907 227.222C93.458 232.019 76.9524 232.253 61.3736 227.895C45.7948 223.538 31.8055 214.775 21.0867 202.659C10.3679 190.543 3.37557 175.59 0.949823 159.596C-1.47592 143.602 0.768139 127.248 7.41237 112.499C14.0566 97.7497 24.8183 85.2327 38.4045 76.4519ZM163.062 156.711L163.062 156.711C162.954 156.773 162.846 156.835 162.738 156.897C162.846 156.835 162.954 156.773 163.062 156.711Z" fill="#24C8DB"/>
</svg>

After

Width:  |  Height:  |  Size: 2.5 KiB

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

+7
View File
@@ -0,0 +1,7 @@
# Generated by Cargo
# will have compiled files and executables
/target/
# Generated by Tauri
# will have schema files for capabilities auto-completion
/gen/schemas
+4952
View File
File diff suppressed because it is too large Load Diff
+39
View File
@@ -0,0 +1,39 @@
[package]
name = "desktop"
version = "0.1.0"
description = "A Tauri App"
authors = ["you"]
edition = "2024"
autobins = false
[[bin]]
name = "NqiTools"
path = "src/main.rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
# The `_lib` suffix may seem redundant but it is necessary
# to make the lib name unique and wouldn't conflict with the bin name.
# This seems to be only an issue on Windows, see https://github.com/rust-lang/cargo/issues/8519
name = "desktop_lib"
crate-type = ["staticlib", "cdylib", "rlib"]
[build-dependencies]
tauri-build = { version = "2", features = [] }
[dependencies]
tauri = { version = "2", features = [] }
tauri-plugin-opener = "2"
tauri-plugin-dialog = "2"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# Read the optimization guideline for more details: https://tauri.app/concept/size/#cargo-configuration
[profile.release]
codegen-units = 1
lto = true
opt-level = 3
panic = "abort"
strip = true
+3
View File
@@ -0,0 +1,3 @@
fn main() {
tauri_build::build()
}
@@ -0,0 +1,11 @@
{
"$schema": "../gen/schemas/desktop-schema.json",
"identifier": "default",
"description": "Capability for the main window",
"windows": ["main"],
"permissions": [
"core:default",
"opener:default",
"dialog:default"
]
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 567 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 536 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 777 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1020 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 848 B

Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

+87
View File
@@ -0,0 +1,87 @@
use std::net::{SocketAddr, TcpStream};
use std::path::PathBuf;
use std::process::{Child, Command, Stdio};
use std::sync::Mutex;
use std::time::Duration;
static BACKEND: Mutex<Option<Child>> = Mutex::new(None);
fn backend_up() -> bool {
let address: SocketAddr = "127.0.0.1:8765".parse().expect("address");
TcpStream::connect_timeout(&address, Duration::from_millis(200)).is_ok()
}
fn start_backend() {
if backend_up() {
return;
}
let manifest = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
let Some(repo) = manifest.parent().and_then(|path| path.parent()) else {
return;
};
let python = repo
.join("backend")
.join(".venv")
.join("Scripts")
.join("python.exe");
if !python.exists() {
return;
}
let log_dir = repo.join("data");
let _ = std::fs::create_dir_all(&log_dir);
let mut command = Command::new(python);
command
.args([
"-m",
"uvicorn",
"app.main:app",
"--host",
"127.0.0.1",
"--port",
"8765",
])
.current_dir(repo.join("backend"))
.stdin(Stdio::null());
if let Ok(log) = std::fs::OpenOptions::new()
.create(true)
.append(true)
.open(log_dir.join("backend.log"))
{
if let Ok(error_log) = log.try_clone() {
command.stdout(log).stderr(error_log);
}
}
#[cfg(windows)]
{
use std::os::windows::process::CommandExt;
command.creation_flags(0x0800_0000);
}
if let Ok(child) = command.spawn() {
*BACKEND.lock().expect("backend lock") = Some(child);
}
}
fn stop_backend() {
if let Ok(mut slot) = BACKEND.lock() {
if let Some(child) = slot.as_mut() {
let _ = child.kill();
let _ = child.wait();
}
*slot = None;
}
}
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
start_backend();
tauri::Builder::default()
.plugin(tauri_plugin_opener::init())
.plugin(tauri_plugin_dialog::init())
.build(tauri::generate_context!())
.expect("error while building tauri application")
.run(|_app, event| {
if matches!(event, tauri::RunEvent::Exit) {
stop_backend();
}
});
}
+6
View File
@@ -0,0 +1,6 @@
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
fn main() {
desktop_lib::run()
}
+36
View File
@@ -0,0 +1,36 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "NqiTools",
"version": "0.1.0",
"identifier": "com.nqitools.app",
"build": {
"beforeDevCommand": "npm run dev",
"devUrl": "http://localhost:1420",
"beforeBuildCommand": "npm run build",
"frontendDist": "../dist"
},
"app": {
"windows": [
{
"title": "NqiTools",
"width": 1180,
"height": 780,
"minWidth": 980,
"minHeight": 640
}
],
"security": {
"csp": null
}
},
"bundle": {
"active": false,
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.icns",
"icons/icon.ico"
]
}
}
+19
View File
@@ -0,0 +1,19 @@
<script setup lang="ts">
import { ref } from "vue";
import { darkTheme, NConfigProvider, NMessageProvider, zhCN, dateZhCN } from "naive-ui";
import LoginView from "./features/auth/LoginView.vue";
import Shell from "./shell/Shell.vue";
import type { UserInfo } from "./features/auth/api";
import { isDark, themeOverrides } from "./shared/theme";
const user = ref<UserInfo | null>(null);
</script>
<template>
<n-config-provider :locale="zhCN" :date-locale="dateZhCN" :theme="isDark ? darkTheme : null" :theme-overrides="themeOverrides">
<n-message-provider>
<LoginView v-if="!user" @success="user = $event" />
<Shell v-else :user="user" @logout="user = null" />
</n-message-provider>
</n-config-provider>
</template>
+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="37.07" height="36" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 198"><path fill="#41B883" d="M204.8 0H256L128 220.8L0 0h97.92L128 51.2L157.44 0h47.36Z"></path><path fill="#41B883" d="m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0H0Z"></path><path fill="#35495E" d="M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0H50.56Z"></path></svg>

After

Width:  |  Height:  |  Size: 496 B

+178
View File
@@ -0,0 +1,178 @@
<script setup lang="ts">
import { onMounted, ref } from "vue";
import { NAlert, NButton, NIcon, NInput, NSpin, NTooltip } from "naive-ui";
import { HelpCircleOutline, MoonOutline, SunnyOutline } from "@vicons/ionicons5";
import { ApiError } from "../../shared/http";
import { loadCaptcha, login, refreshCaptcha, sendSms, type UserInfo } from "./api";
import { isDark, toggleTheme } from "../../shared/theme";
const emit = defineEmits<{ success: [user: UserInfo] }>();
const ready = ref(false);
const offline = ref("");
const sessionId = ref("");
const captchaUrl = ref("");
const username = ref("");
const password = ref("");
const captcha = ref("");
const smsCode = ref("");
const smsRequired = ref(false);
const sending = ref(false);
const submitting = ref(false);
const errorText = ref("");
const smsHint = ref("");
const countdown = ref(0);
let timer = 0;
onMounted(() => {
void connect();
});
async function connect() {
offline.value = "";
ready.value = false;
for (let attempt = 0; attempt < 20; attempt += 1) {
try {
const result = await loadCaptcha();
sessionId.value = result.sessionId;
captchaUrl.value = result.captcha;
ready.value = true;
return;
} catch (error) {
const failedLocally = !(error instanceof ApiError) || error.status === 0;
offline.value = error instanceof ApiError ? error.message : "连接失败";
if (!failedLocally) {
ready.value = true;
return;
}
await new Promise((resolve) => window.setTimeout(resolve, 500));
}
}
}
async function reloadCaptcha() {
errorText.value = "";
try {
if (!sessionId.value) {
await connect();
return;
}
const result = await refreshCaptcha(sessionId.value);
captchaUrl.value = result.captcha;
captcha.value = "";
} catch (error) {
errorText.value = error instanceof ApiError ? error.message : "验证码刷新失败";
await connect();
}
}
async function requestSms() {
if (!sessionId.value || countdown.value > 0) return;
sending.value = true;
smsHint.value = "";
try {
const result = await sendSms(sessionId.value);
smsHint.value = result.message || "短信已发送";
countdown.value = 60;
timer = window.setInterval(() => {
countdown.value -= 1;
if (countdown.value <= 0) window.clearInterval(timer);
}, 1000);
} catch (error) {
errorText.value = error instanceof ApiError ? error.message : "短信发送失败";
} finally {
sending.value = false;
}
}
async function submit() {
errorText.value = "";
submitting.value = true;
try {
const result = await login({
sessionId: sessionId.value,
username: username.value.trim(),
password: password.value,
captcha: captcha.value.trim(),
smsCode: smsCode.value.trim(),
});
if (result.status === "sms_required") {
smsRequired.value = true;
smsHint.value = result.message || "请获取并填写短信验证码";
return;
}
if (result.user) emit("success", result.user);
} catch (error) {
errorText.value = error instanceof ApiError ? error.message : "登录失败";
smsRequired.value = false;
await reloadCaptcha();
} finally {
submitting.value = false;
}
}
</script>
<template>
<div class="gate">
<n-button class="theme-switch" quaternary circle :aria-label="isDark ? '切换到日间' : '切换到夜间'" @click="toggleTheme">
<template #icon><n-icon><MoonOutline v-if="!isDark" /><SunnyOutline v-else /></n-icon></template>
</n-button>
<section class="gate-card">
<div class="brand">
<div class="brand-mark" aria-hidden="true">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none">
<path d="M4 16.5 12 4l8 12.5" stroke="currentColor" stroke-width="1.8" />
<path d="M7.2 16.5h9.6M9.2 13.2h5.6" stroke="currentColor" stroke-width="1.8" />
</svg>
</div>
<div>
<h1>NqiTools</h1>
</div>
</div>
<n-spin :show="!ready && !offline">
<n-alert v-if="!ready" type="warning" style="margin-bottom: 12px">连接失败,正在重试。</n-alert>
<n-alert v-else-if="offline" type="warning" style="margin-bottom: 12px">{{ offline }}</n-alert>
<n-alert v-if="errorText" type="error" style="margin-bottom: 12px">{{ errorText }}</n-alert>
<form @submit.prevent="submit">
<div class="form-row">
<label for="username">账号</label>
<n-input id="username" v-model:value="username" placeholder="账号" autocomplete="username" />
</div>
<div class="form-row">
<label for="password">密码</label>
<n-input id="password" v-model:value="password" type="password" show-password-on="click" placeholder="密码" autocomplete="current-password" />
</div>
<div class="form-row">
<label for="captcha">
验证码
<n-tooltip>
<template #trigger>
<n-icon class="hint" :size="15"><HelpCircleOutline /></n-icon>
</template>
点击图片刷新。
</n-tooltip>
</label>
<div class="captcha-line">
<n-input id="captcha" v-model:value="captcha" placeholder="验证码" />
<img v-if="captchaUrl" :src="captchaUrl" alt="验证码" title="点击刷新" @click="reloadCaptcha" />
</div>
</div>
<div v-if="smsRequired" class="form-row">
<label for="sms">短信</label>
<div class="captcha-line">
<n-input id="sms" v-model:value="smsCode" placeholder="短信验证码" />
<n-button :disabled="sending || countdown > 0" @click="requestSms">
{{ countdown > 0 ? `${countdown}s` : "获取短信" }}
</n-button>
</div>
</div>
<p v-if="smsHint" class="file-name" style="margin: 0 0 8px 96px">{{ smsHint }}</p>
<div class="gate-actions">
<n-button type="primary" attr-type="submit" :loading="submitting" :disabled="!ready">登录</n-button>
</div>
</form>
</n-spin>
</section>
</div>
</template>
+43
View File
@@ -0,0 +1,43 @@
import { api } from "../../shared/http";
export interface UserInfo {
loginId: string;
userName: string;
cityName: string;
orgName: string;
}
export function loadCaptcha() {
return api<{ sessionId: string; captcha: string }>("/api/auth/captcha", { method: "POST" });
}
export function refreshCaptcha(sessionId: string) {
return api<{ sessionId: string; captcha: string }>("/api/auth/captcha/refresh", {
method: "POST",
body: JSON.stringify({ sessionId }),
});
}
export function sendSms(sessionId: string) {
return api<{ message: string }>("/api/auth/sms", {
method: "POST",
body: JSON.stringify({ sessionId }),
});
}
export function login(body: {
sessionId: string;
username: string;
password: string;
captcha: string;
smsCode?: string;
}) {
return api<{ status: string; message?: string; user?: UserInfo }>("/api/auth/login", {
method: "POST",
body: JSON.stringify(body),
});
}
export function logout() {
return api<{ ok: boolean }>("/api/auth/logout", { method: "POST" });
}
@@ -0,0 +1,142 @@
<script setup lang="ts">
import { computed, onMounted, onUnmounted, ref } from "vue";
import { NButton, NEmpty, NIcon, NProgress, NTag, useMessage } from "naive-ui";
import { FolderOpenOutline, PlayOutline, StopCircleOutline } from "@vicons/ionicons5";
import { ApiError, openLocal } from "../../shared/http";
import { cancelJob, loadJobs, resumeJob, type DownloadJob } from "./api";
const props = defineProps<{ focusId: string }>();
const message = useMessage();
const jobs = ref<DownloadJob[]>([]);
const tab = ref<"active" | "done">("active");
let timer = 0;
const activeJobs = computed(() => jobs.value.filter((job) => job.status !== "done"));
const doneJobs = computed(() => jobs.value.filter((job) => job.status === "done"));
const visible = computed(() => (tab.value === "active" ? activeJobs.value : doneJobs.value));
const statusText: Record<string, string> = {
queued: "等待中",
running: "下载中",
cancelled: "已停止",
error: "出错",
done_with_errors: "部分失败",
done: "已完成",
};
onMounted(() => {
void refresh();
timer = window.setInterval(() => void refresh(), 1000);
});
onUnmounted(() => window.clearInterval(timer));
async function refresh() {
try {
const result = await loadJobs();
jobs.value = result.jobs;
} catch (error) {
if (error instanceof ApiError && error.status !== 0) message.error(error.message);
}
}
function percent(job: DownloadJob) {
if (!job.total) return 0;
return Math.min(100, Math.round((job.completed / job.total) * 100));
}
async function stop(job: DownloadJob) {
try {
await cancelJob(job.id);
await refresh();
} catch (error) {
message.error(error instanceof ApiError ? error.message : "停止失败");
}
}
async function resume(job: DownloadJob) {
try {
await resumeJob(job.id);
tab.value = "active";
await refresh();
} catch (error) {
message.error(error instanceof ApiError ? error.message : "继续失败");
}
}
async function openFile(job: DownloadJob) {
const opened = await openLocal(job.csvPath).catch(() => false);
if (!opened) message.info(job.csvPath);
}
async function openDir(job: DownloadJob) {
const index = Math.max(job.csvPath.lastIndexOf("\\"), job.csvPath.lastIndexOf("/"));
const folder = index > 0 ? job.csvPath.slice(0, index) : job.csvPath;
const opened = await openLocal(folder).catch(() => false);
if (!opened) message.info(folder);
}
</script>
<template>
<section class="page">
<header class="page-head">
<div>
<h2>下载管理</h2>
</div>
</header>
<div class="tabs">
<button class="tab" :class="{ on: tab === 'active' }" type="button" @click="tab = 'active'">
正在下载<em>{{ activeJobs.length }}</em>
</button>
<button class="tab" :class="{ on: tab === 'done' }" type="button" @click="tab = 'done'">
已完成<em>{{ doneJobs.length }}</em>
</button>
</div>
<div class="task-list">
<article
v-for="job in visible"
:key="job.id"
class="task"
:class="{ focus: job.id === props.focusId }"
>
<div class="task-top">
<div>
<h3>{{ job.name }}</h3>
<div class="sub">{{ job.completed }}/{{ job.total }} 个栅格 · 已写入 {{ job.writtenRows }} 行</div>
</div>
<div class="task-actions">
<n-tag size="small" :type="job.status === 'running' ? 'info' : job.status === 'done' ? 'success' : 'warning'">
{{ statusText[job.status] || job.status }}
</n-tag>
<n-button v-if="job.status === 'running' || job.status === 'queued'" size="small" @click="stop(job)">
<template #icon><n-icon><StopCircleOutline /></n-icon></template>
停止
</n-button>
<n-button v-else-if="job.status !== 'done'" size="small" type="primary" secondary @click="resume(job)">
<template #icon><n-icon><PlayOutline /></n-icon></template>
继续
</n-button>
<n-button size="small" quaternary @click="openFile(job)">打开</n-button>
<n-button size="small" quaternary @click="openDir(job)">
<template #icon><n-icon><FolderOpenOutline /></n-icon></template>
</n-button>
</div>
</div>
<n-progress
style="margin-top: 10px"
:percentage="percent(job)"
:show-indicator="true"
:processing="job.status === 'running'"
/>
<div class="task-foot">
<span class="sub">{{ job.message }}</span>
<span class="sub">失败 {{ job.failed }}</span>
</div>
<ul v-if="job.failures?.length" class="fail-list">
<li v-for="item in job.failures.slice(0, 3)" :key="item.id">{{ item.id }}:{{ item.message }}</li>
</ul>
</article>
<n-empty v-if="visible.length === 0" class="empty" :description="tab === 'active' ? '没有正在下载的任务' : '还没有完成的任务'" />
</div>
</section>
</template>
@@ -0,0 +1,197 @@
<script setup lang="ts">
import { onMounted, ref, watch } from "vue";
import {
NButton,
NCheckbox,
NCheckboxGroup,
NIcon,
NInput,
NInputNumber,
NSelect,
NTooltip,
useMessage,
} from "naive-ui";
import { FolderOpenOutline, HelpCircleOutline } from "@vicons/ionicons5";
import { ApiError, chooseDirectory } from "../../shared/http";
import { createJob, loadMeta, type Meta } from "./api";
const emit = defineEmits<{ started: [id: string] }>();
const message = useMessage();
const meta = ref<Meta | null>(null);
const network = ref("NR");
const cityCode = ref("JM");
const month = ref(previousMonth());
const concurrency = ref(8);
const groups = ref<string[]>([]);
const outputDir = ref("");
const file = ref<File | null>(null);
const submitting = ref(false);
const networkOptions = [
{ label: "5G", value: "NR" },
{ label: "4G", value: "LTE" },
];
function previousMonth() {
const date = new Date();
date.setDate(1);
date.setMonth(date.getMonth() - 1);
return `${date.getFullYear()}-${String(date.getMonth() + 1).padStart(2, "0")}`;
}
onMounted(async () => {
try {
meta.value = await loadMeta();
syncGroups();
} catch (error) {
message.error(error instanceof ApiError ? error.message : "读取下载项目失败");
}
});
watch(network, syncGroups);
function syncGroups() {
groups.value = (meta.value?.groups[network.value] || []).map((item) => item.id);
}
function onFile(event: Event) {
const input = event.target as HTMLInputElement;
file.value = input.files?.[0] ?? null;
}
async function pickDir() {
const selected = await chooseDirectory();
if (selected) outputDir.value = selected;
}
async function start() {
if (!file.value) {
message.warning("请先选择栅格 ID 表");
return;
}
if (!/^\d{4}-(0[1-9]|1[0-2])$/.test(month.value)) {
message.warning("月份格式应为 YYYY-MM");
return;
}
const form = new FormData();
form.append("file", file.value);
form.append("network", network.value);
form.append("city_code", cityCode.value);
form.append("month", month.value);
form.append("groups", JSON.stringify(groups.value));
form.append("concurrency", String(concurrency.value || 8));
form.append("output_dir", outputDir.value.trim());
submitting.value = true;
try {
const job = await createJob(form);
message.success("已开始下载");
emit("started", job.id);
} catch (error) {
message.error(error instanceof ApiError ? error.message : "创建下载失败");
} finally {
submitting.value = false;
}
}
</script>
<template>
<section class="page">
<div class="page-scroll">
<header class="page-head">
<div>
<h2>栅格下载</h2>
</div>
<div class="head-actions">
<n-button type="primary" :loading="submitting" @click="start">开始下载</n-button>
</div>
</header>
<div class="panel">
<div class="form-row">
<label>网络</label>
<n-select v-model:value="network" :options="networkOptions" />
</div>
<div class="form-row">
<label>地市</label>
<n-select
v-model:value="cityCode"
:options="(meta?.cities || []).map((city) => ({ label: city.name, value: city.code }))"
/>
</div>
<div class="form-row">
<label>
月份
<n-tooltip>
<template #trigger>
<n-icon class="hint" :size="15"><HelpCircleOutline /></n-icon>
</template>
例如 2026-09。
</n-tooltip>
</label>
<n-input v-model:value="month" placeholder="YYYY-MM" />
</div>
<div class="form-row">
<label>
并发
<n-tooltip>
<template #trigger>
<n-icon class="hint" :size="15"><HelpCircleOutline /></n-icon>
</template>
同时下载的栅格数量。
</n-tooltip>
</label>
<n-input-number v-model:value="concurrency" :min="1" :max="32" />
</div>
<div class="form-row" style="align-items: start">
<label>
项目
<n-tooltip>
<template #trigger>
<n-icon class="hint" :size="15"><HelpCircleOutline /></n-icon>
</template>
选择要导出的指标。
</n-tooltip>
</label>
<n-checkbox-group v-model:value="groups">
<div v-for="item in meta?.groups[network] || []" :key="item.id" style="margin-bottom: 6px">
<n-checkbox :value="item.id">{{ item.label }}</n-checkbox>
<n-tooltip>
<template #trigger>
<n-icon class="hint" :size="14" style="margin-left: 4px"><HelpCircleOutline /></n-icon>
</template>
{{ item.columns.join("、") }}
</n-tooltip>
</div>
</n-checkbox-group>
</div>
<div class="form-row">
<label>
区域表
<n-tooltip>
<template #trigger>
<n-icon class="hint" :size="15"><HelpCircleOutline /></n-icon>
</template>
支持 CSV、TXT、XLSX。
</n-tooltip>
</label>
<div class="captcha-line">
<label class="n-button n-button--default-type" style="padding: 0 12px; line-height: 32px; border: 1px solid #d5e0ea; border-radius: 6px; cursor: pointer">
选择文件
<input type="file" accept=".csv,.txt,.xlsx" hidden @change="onFile" />
</label>
<span class="file-name">{{ file?.name || "尚未选择" }}</span>
</div>
</div>
<div class="form-row">
<label>保存到</label>
<div class="captcha-line">
<n-input v-model:value="outputDir" placeholder="默认目录" />
<n-button @click="pickDir">
<template #icon><n-icon><FolderOpenOutline /></n-icon></template>
</n-button>
</div>
</div>
</div>
</div>
</section>
</template>
+51
View File
@@ -0,0 +1,51 @@
import { api } from "../../shared/http";
export interface GroupOption {
id: string;
label: string;
columns: string[];
}
export interface Meta {
networks: { value: string; label: string }[];
cities: { name: string; code: string }[];
groups: Record<string, GroupOption[]>;
fixed: { grid: string[]; cell: Record<string, string[]> };
}
export interface DownloadJob {
id: string;
name: string;
status: string;
message: string;
network: string;
cityName: string;
month: string;
total: number;
completed: number;
failed: number;
writtenRows: number;
csvPath: string;
failures: { id: string; message: string }[];
createdAt: string;
}
export function loadMeta() {
return api<Meta>("/api/download/meta");
}
export function loadJobs() {
return api<{ jobs: DownloadJob[] }>("/api/download/jobs");
}
export function createJob(form: FormData) {
return api<DownloadJob>("/api/download/jobs", { method: "POST", body: form });
}
export function cancelJob(id: string) {
return api<DownloadJob>(`/api/download/jobs/${id}/cancel`, { method: "POST" });
}
export function resumeJob(id: string) {
return api<DownloadJob>(`/api/download/jobs/${id}/resume`, { method: "POST" });
}
View File
+5
View File
@@ -0,0 +1,5 @@
import { createApp } from "vue";
import App from "./App.vue";
import "./styles.css";
createApp(App).mount("#app");
+49
View File
@@ -0,0 +1,49 @@
export const API_BASE = import.meta.env.DEV ? "" : "http://127.0.0.1:8765";
export class ApiError extends Error {
status: number;
constructor(status: number, message: string) {
super(message);
this.status = status;
}
}
export async function api<T>(path: string, init?: RequestInit): Promise<T> {
let response: Response;
try {
const headers = new Headers(init?.headers);
if (init?.body && !(init.body instanceof FormData) && !headers.has("Content-Type")) {
headers.set("Content-Type", "application/json");
}
response = await fetch(`${API_BASE}${path}`, { ...init, headers });
} catch {
throw new ApiError(0, "连接失败");
}
const text = await response.text();
const data = text ? JSON.parse(text) : null;
if (!response.ok) {
const detail = data?.detail;
const message = typeof detail === "string" ? detail : "请求失败";
throw new ApiError(response.status, message);
}
return data as T;
}
export function health() {
return api<{ ok: boolean }>("/api/health");
}
export async function openLocal(path: string) {
if (!("__TAURI_INTERNALS__" in window)) return false;
const { openPath } = await import("@tauri-apps/plugin-opener");
await openPath(path);
return true;
}
export async function chooseDirectory() {
if (!("__TAURI_INTERNALS__" in window)) return null;
const { open } = await import("@tauri-apps/plugin-dialog");
const selected = await open({ directory: true, multiple: false });
return typeof selected === "string" ? selected : null;
}
+24
View File
@@ -0,0 +1,24 @@
import { ref, watch } from "vue";
const stored = localStorage.getItem("nqi-theme");
export const isDark = ref(stored === "dark");
watch(isDark, (value) => {
localStorage.setItem("nqi-theme", value ? "dark" : "light");
document.documentElement.dataset.theme = value ? "dark" : "light";
}, { immediate: true });
export function toggleTheme() {
isDark.value = !isDark.value;
}
export const themeOverrides = {
common: {
primaryColor: "#2563eb",
primaryColorHover: "#1d4ed8",
primaryColorPressed: "#1e40af",
primaryColorSuppl: "#2563eb",
borderRadius: "6px",
fontFamily: '"Segoe UI", "Microsoft YaHei", sans-serif',
},
};
+61
View File
@@ -0,0 +1,61 @@
<script setup lang="ts">
import { ref } from "vue";
import { NButton, NIcon, NLayoutSider, NMenu } from "naive-ui";
import { LogOutOutline, MoonOutline, PersonOutline, SunnyOutline } from "@vicons/ionicons5";
import { logout, type UserInfo } from "../features/auth/api";
import { isDark, toggleTheme } from "../shared/theme";
import { navGroups, type PageKey } from "./navigation";
import GridDownloadView from "../features/download/GridDownloadView.vue";
import DownloadManagerView from "../features/download/DownloadManagerView.vue";
const props = defineProps<{ user: UserInfo }>();
const emit = defineEmits<{ logout: [] }>();
const page = ref<PageKey>("grid");
const focusId = ref("");
function onMenu(key: string) {
if (key === "grid" || key === "tasks") page.value = key;
}
function onStarted(id: string) {
focusId.value = id;
page.value = "tasks";
}
async function signOut() {
try {
await logout();
} finally {
emit("logout");
}
}
</script>
<template>
<div class="shell">
<aside class="sider">
<div class="sider-title">NqiTools</div>
<n-layout-sider :native-scrollbar="false" :width="220" style="background: transparent; flex: 1">
<n-menu :value="page" :options="navGroups" @update:value="onMenu" />
</n-layout-sider>
<div class="sider-user">
<n-icon :size="18"><PersonOutline /></n-icon>
<div class="who">
<strong>{{ props.user.userName || props.user.loginId }}</strong>
<span>{{ props.user.cityName || "已登录" }}</span>
</div>
<n-button quaternary circle size="small" :aria-label="isDark ? '切换到日间' : '切换到夜间'" @click="toggleTheme">
<template #icon><n-icon><MoonOutline v-if="!isDark" /><SunnyOutline v-else /></n-icon></template>
</n-button>
<n-button quaternary circle size="small" aria-label="退出" @click="signOut">
<template #icon><n-icon><LogOutOutline /></n-icon></template>
</n-button>
</div>
</aside>
<main class="content">
<GridDownloadView v-if="page === 'grid'" @started="onStarted" />
<DownloadManagerView v-else :focus-id="focusId" />
</main>
</div>
</template>
+22
View File
@@ -0,0 +1,22 @@
import type { Component } from "vue";
import { h } from "vue";
import { NIcon } from "naive-ui";
import { CloudDownloadOutline, ListOutline } from "@vicons/ionicons5";
function renderIcon(icon: Component) {
return () => h(NIcon, null, { default: () => h(icon) });
}
export type PageKey = "grid" | "tasks";
export const navGroups = [
{
type: "group" as const,
label: "下载",
key: "download",
children: [
{ label: "栅格下载", key: "grid" as const, icon: renderIcon(CloudDownloadOutline) },
{ label: "下载管理", key: "tasks" as const, icon: renderIcon(ListOutline) },
],
},
];
+357
View File
@@ -0,0 +1,357 @@
:root {
color: var(--ink);
background: var(--bg);
font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
font-size: 14px;
--bg: #f3f4f6;
--panel: #ffffff;
--ink: #111827;
--muted: #6b7280;
--line: #e5e7eb;
--accent: #2563eb;
--accent-soft: #eff6ff;
--sidebar: #ffffff;
}
:root[data-theme="dark"] {
--bg: #0f172a;
--panel: #1e293b;
--ink: #f8fafc;
--muted: #94a3b8;
--line: #334155;
--accent: #60a5fa;
--accent-soft: #1e3a8a;
--sidebar: #111827;
}
::selection {
background: var(--accent-soft);
color: var(--ink);
}
html,
body,
#app {
margin: 0;
height: 100%;
}
button,
input,
select {
font-family: inherit;
}
.gate {
position: relative;
min-height: 100%;
display: grid;
place-items: center;
padding: 32px 16px;
background: var(--bg);
}
.theme-switch {
position: absolute;
top: 16px;
right: 16px;
}
.gate-card {
width: min(440px, 100%);
background: var(--panel);
border: 1px solid var(--line);
border-radius: 12px;
box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
padding: 28px 28px 22px;
}
.brand {
display: flex;
gap: 14px;
align-items: center;
margin-bottom: 22px;
}
.brand-mark {
width: 44px;
height: 44px;
border-radius: 10px;
background: var(--accent);
color: #fff;
display: grid;
place-items: center;
flex: none;
}
.brand h1 {
margin: 0;
font-size: 20px;
line-height: 1.3;
}
.brand p,
.file-name,
.hint,
.task .sub,
.empty {
color: var(--muted);
}
.form-row {
display: grid;
grid-template-columns: 84px minmax(0, 1fr);
gap: 8px 12px;
align-items: center;
margin-bottom: 12px;
}
.brand p {
margin: 2px 0 0;
font-size: 13px;
}
.captcha-line {
display: flex;
gap: 8px;
align-items: center;
}
.form-row label {
display: flex;
align-items: center;
gap: 4px;
color: var(--ink);
}
.captcha-line img {
width: 112px;
height: 36px;
border: 1px solid var(--line);
border-radius: 6px;
background: var(--bg);
cursor: pointer;
object-fit: cover;
}
.gate-actions {
display: flex;
justify-content: flex-end;
gap: 8px;
margin-top: 8px;
}
.shell {
height: 100%;
display: grid;
grid-template-columns: 220px minmax(0, 1fr);
background: var(--bg);
color: var(--ink);
}
.sider {
display: flex;
flex-direction: column;
background: var(--sidebar);
border-right: 1px solid var(--line);
min-height: 0;
}
.sider-title {
padding: 18px 16px 8px;
font-weight: 650;
font-size: 16px;
}
.sider-user {
margin-top: auto;
padding: 12px;
border-top: 1px solid var(--line);
display: flex;
align-items: center;
gap: 8px;
}
.sider-user .who {
min-width: 0;
flex: 1;
}
.sider-user strong,
.sider-user span {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.sider-user span {
color: var(--muted);
font-size: 12px;
}
.content {
min-width: 0;
min-height: 0;
display: flex;
flex-direction: column;
}
.page {
min-height: 0;
flex: 1;
display: flex;
flex-direction: column;
}
.page-scroll {
min-height: 0;
flex: 1;
overflow: auto;
}
.page-head {
position: sticky;
top: 0;
z-index: 2;
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 14px 20px;
background: var(--bg);
border-bottom: 1px solid var(--line);
}
.page-head h2 {
margin: 0;
font-size: 18px;
}
.page-head p {
margin: 2px 0 0;
color: var(--muted);
font-size: 12px;
}
.head-actions {
display: flex;
gap: 8px;
align-items: center;
}
.panel,
.task {
background: var(--panel);
border: 1px solid var(--line);
}
.panel {
margin: 16px 20px 24px;
border-radius: 10px;
padding: 16px 16px 8px;
}
.hint {
cursor: help;
}
.tabs {
display: flex;
gap: 8px;
padding: 12px 20px 0;
}
.file-name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.tab {
border: 0;
background: transparent;
color: var(--muted);
border-bottom: 2px solid transparent;
padding: 8px 2px;
margin-right: 16px;
cursor: pointer;
font-size: 14px;
}
.tab.on {
color: var(--accent);
border-bottom-color: var(--accent);
font-weight: 650;
}
.tab em {
font-style: normal;
margin-left: 6px;
color: var(--accent);
background: var(--accent-soft);
border-radius: 99px;
padding: 0 7px;
font-size: 12px;
}
.task-list {
flex: 1;
min-height: 0;
overflow: auto;
padding: 12px 20px 24px;
display: flex;
flex-direction: column;
gap: 10px;
}
.task {
border-radius: 10px;
padding: 12px 14px;
}
.task.focus {
border-color: var(--accent);
box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 20%, transparent);
}
.task-top,
.task-foot {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.task h3 {
margin: 0;
font-size: 15px;
}
.empty {
margin: 48px auto;
text-align: center;
}
.task-actions {
display: flex;
gap: 6px;
flex: none;
}
.fail-list {
margin: 8px 0 0;
padding-left: 18px;
color: #9a4d16;
font-size: 12px;
}
.task .sub {
margin-top: 2px;
font-size: 12px;
}
.empty {
margin: 48px auto;
text-align: center;
}
+7
View File
@@ -0,0 +1,7 @@
/// <reference types="vite/client" />
declare module "*.vue" {
import type { DefineComponent } from "vue";
const component: DefineComponent<{}, {}, any>;
export default component;
}
+25
View File
@@ -0,0 +1,25 @@
{
"compilerOptions": {
"target": "ES2020",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": ["ES2020", "DOM"],
"skipLibCheck": true,
/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "preserve",
/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
},
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
"references": [{ "path": "./tsconfig.node.json" }]
}
+10
View File
@@ -0,0 +1,10 @@
{
"compilerOptions": {
"composite": true,
"skipLibCheck": true,
"module": "ESNext",
"moduleResolution": "bundler",
"allowSyntheticDefaultImports": true
},
"include": ["vite.config.ts"]
}
+38
View File
@@ -0,0 +1,38 @@
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
// @ts-expect-error type error without @types/node package
import process from "node:process";
const host = process.env.TAURI_DEV_HOST;
// https://vite.dev/config/
export default defineConfig(() => ({
plugins: [vue()],
// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
//
// 1. prevent Vite from obscuring rust errors
clearScreen: false,
// 2. tauri expects a fixed port, fail if that port is not available
server: {
port: 1420,
strictPort: true,
host: host || false,
proxy: {
"/api": {
target: "http://127.0.0.1:8765",
changeOrigin: true,
},
},
hmr: host
? {
protocol: "ws",
host,
port: 1421,
}
: undefined,
watch: {
// 3. tell Vite to ignore watching `src-tauri`
ignored: ["**/src-tauri/**"],
},
},
}));