docs(readme): 更新 README 以添加并发控制说明和许可证信息

This commit is contained in:
cnlimiter
2026-03-16 13:49:54 +08:00
parent 60de39cebd
commit a134345be3
2 changed files with 47 additions and 7 deletions

21
LICENSE Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2026
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@@ -1,6 +1,9 @@
# OpenAI 自动注册系统 v2
自动化注册 OpenAI 账号的 Web UI 系统,支持多种邮箱服务、批量注册、代理管理和账号管理。
自动化注册 OpenAI 账号的 Web UI 系统,支持多种邮箱服务、并发批量注册、代理管理和账号管理。
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
[![Python](https://img.shields.io/badge/Python-3.10%2B-blue.svg)](https://www.python.org/)
## 功能特性
@@ -14,6 +17,12 @@
- 批量注册(可配置数量和间隔时间)
- Outlook 批量注册(指定账户逐一注册)
- **并发控制**
- 流水线模式Pipeline每隔 interval 秒启动新任务,限制最大并发数
- 并行模式Parallel所有任务同时提交Semaphore 控制最大并发
- 并发数可在 UI 自定义1-50
- 日志混合显示,带 `[任务N]` 前缀区分
- **实时监控**
- WebSocket 实时日志推送
- 跨页面导航后自动重连
@@ -28,7 +37,9 @@
- 查看、删除、批量操作
- Token 刷新与验证
- 导出JSON / CSV / CPA 格式)
- CPA 上传Codex Protocol API
- 单个账号导出为独立 `.json` 文件
- 多个账号打包为 `.zip`,每个账号一个独立文件
- CPA 上传Codex Protocol API直连不走代理
- **系统设置**
- 代理配置(静态 + 动态)
@@ -96,7 +107,8 @@ codex-register-v2/
│ └── web/ # FastAPI Web 应用
│ ├── app.py # 应用入口、路由挂载
│ ├── routes/ # API 路由
── websocket.py # WebSocket
── task_manager.py # 任务/日志/WebSocket
│ └── routes/websocket.py # WebSocket 处理
├── templates/ # Jinja2 HTML 模板
├── static/ # 静态资源CSS / JS
└── data/ # 运行时数据目录(数据库、日志)
@@ -110,7 +122,8 @@ codex-register-v2/
| 数据库 | SQLAlchemy + SQLite |
| 模板引擎 | Jinja2 |
| HTTP 客户端 | curl_cffi浏览器指纹模拟 |
| 实时通信 | WebSocketwebsockets 库) |
| 实时通信 | WebSocket |
| 并发 | asyncio Semaphore + ThreadPoolExecutor |
| 前端 | 原生 JavaScript无框架 |
| 打包 | PyInstaller |
@@ -121,7 +134,7 @@ codex-register-v2/
| 方法 | 路径 | 说明 |
|------|------|------|
| POST | `/api/registration/start` | 启动单次注册 |
| POST | `/api/registration/batch` | 启动批量注册 |
| POST | `/api/registration/batch` | 启动批量注册(支持 `concurrency``mode` 参数) |
| GET | `/api/registration/batch/{id}` | 批量任务状态 |
| POST | `/api/registration/batch/{id}/cancel` | 取消批量任务 |
| POST | `/api/registration/outlook-batch` | 启动 Outlook 批量注册 |
@@ -144,7 +157,7 @@ codex-register-v2/
| POST | `/api/accounts/batch-delete` | 批量删除 |
| POST | `/api/accounts/export/json` | 导出 JSON |
| POST | `/api/accounts/export/csv` | 导出 CSV |
| POST | `/api/accounts/export/cpa` | 导出 CPA 格式 |
| POST | `/api/accounts/export/cpa` | 导出 CPA 格式(单文件或 ZIP |
| POST | `/api/accounts/{id}/refresh` | 刷新 Token |
| POST | `/api/accounts/batch-refresh` | 批量刷新 Token |
| POST | `/api/accounts/{id}/validate` | 验证 Token |
@@ -180,7 +193,7 @@ codex-register-v2/
| 路径 | 说明 |
|------|------|
| `ws://host/api/ws/task/{uuid}` | 单任务实时日志 |
| `ws://host/api/ws/batch/{id}` | 批量任务实时状态 |
| `ws://host/api/ws/batch/{id}` | 批量任务实时状态与日志 |
## 注意事项
@@ -189,3 +202,9 @@ codex-register-v2/
- 日志文件写入 `logs/` 目录
- 代理设置优先级:动态代理 > 代理列表(随机) > 静态默认代理
- 注册时自动随机生成用户名和生日(年龄范围 18-45 岁)
- CPA 上传始终直连,不经过代理
- 批量注册并发数上限为 50线程池大小已相应调整
## License
[MIT](LICENSE)