blues-lib-py
WebDriver 任务编排库:ww_* 工具 + action URI 简写 + CLI + Web 管理端。
一个任务 = 一个 meta.json5(流程)+ biz.json5(数据),可本地跑、可推库、可在 Web 端调度。
快速开始
uv sync # 装依赖(.env 里配 LLM/DB 等变量)
uv run ww init # 初始化 config / sqlite / web / plugin
uv run ww web start # 起后端(开发端口 5200,前端 5201)
uv run ww task src/blues_lib/resources/samples/read/page-text/meta.json5 \
src/blues_lib/resources/samples/read/page-text/biz.json5
目录结构
src/blues_lib/
├── cli/ # ww 命令(run/push/browser/action/sqlite/migrate/web/…)
├── ability/
│ ├── atom/ # 原子能力(webdriver / sql / script / message / file / http / util)
│ ├── composite/ # 组合能力(loop / task / flow)
│ └── base/ # WwBase + 能力发现
├── runner/ # 执行层:AbilityClient / RunSession / pipeline / context
├── services/ # 服务层:sql / config / webdriver / cleaner / llm / match / agent
├── types/schemas/ # 工具入参 pydantic 模型(TOOL_ADAPTERS)+ catalog
├── web/ # FastAPI 后端(routers / services / worker / static 前端产物)
└── resources/ # 随包资源:config / descriptions / docs / prompt / samples
frontend/ # Vue3 + Element Plus 管理端(构建产物进 web/static)
tests/{unit,integration,e2e}/
测试
uv run pytest tests/unit # 单测(mock 外部依赖,秒级)
uv run pytest tests/integration # 集成(真 CLI / 真库)
uv run pytest tests/e2e/samples # 示例端到端(真浏览器,分钟级)
uv run pytest tests/e2e/samples/read/TestReadBriefs.py # 单跑一个示例
示例与用例的对应关系由 tests/unit/blues_lib/resources/TestSamplesE2ECoverage.py 强制(缺用例或漏登记豁免即失败)。
文档
| 文档 | 内容 |
|---|---|
| AGENTS.md | 代码风格、测试规范、SQL/SQLite 约束(改代码前先看) |
| readme/cli.md | CLI 命令分组与常用示例 |
| readme/web.md | Web 端:启动/端口/页面/API/鉴权/数据库 |
| src/blues_lib/ability/readme.md | 能力层结构,以及"新增一个工具"的四步 |
| src/blues_lib/types/schemas/AGENTS.md | 工具入参 schema 与 catalog 的编写规则 |
原则:能用代码表达的不写文档。示例(
resources/samples/**)本身就是可执行文档; 工具参数看ww tool show <tool>[/<action>],不要在这里抄第二份。
Metadata
Release files for blues-lib 1.31.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| blues_lib-1.31.10.tar.gz | 1.9 MB | Without provenance | Details for blues_lib-1.31.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| blues_lib-1.31.10-py3-none-any.whl | Python 3 | none | any | Details for blues_lib-1.31.10-py3-none-any.whl |
Total release size: 4.2 MB
Release files / blues_lib-1.31.10.tar.gz
| Download URL | blues_lib-1.31.10.tar.gz |
|---|---|
| Size | 1.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
601a15c1de1794ac8a3e7f9541211d3da558347162ecb10e322a5d842b6ffee7
|
|
BLAKE2b-256 checksum How to use checksums |
8f2c3356d7d835b97069833c4905c395896a505a0cdd436b128555e672a8b08c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.22 {"installer":{"name":"uv","version":"0.11.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / blues_lib-1.31.10-py3-none-any.whl
| Download URL | blues_lib-1.31.10-py3-none-any.whl |
|---|---|
| Size | 2.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
318e26138fa348802d023790dffdf082dd75a131da2463fb08b11c8fc131ad8d
|
|
BLAKE2b-256 checksum How to use checksums |
f48a2908972d1c89161e4d802c287075bb7ff3976760aed95b6a5dfcaf4c59bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.22 {"installer":{"name":"uv","version":"0.11.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for blues-lib 1.31.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.