PageEyes Agent 是一个轻量级 UI Agent,通过自然语言指令驱动,无需编写脚本既可实现Web、Android平台的UI自动化任务。
Project description
PageEyes Agent
PageEyes Agent 是基于 Pydantic AI 框架开发的一个轻量级 UI Agent, 其中元素信息感知能力依靠 OmniParserV2 模型,整个 Agent 的优势在于不依赖视觉语言大模型, 即使小参数的 LLM 也能胜任路径规划能力,同时支持多平台(Web、Android),目前主要包含以下功能:
- 完全由自然语言指令驱动,无需编写脚本,既可实现自动化测试,UI巡检等任务
- 跨平台、夸端支持,在 Python 环境中安装 page-eyes 库和配置 OmniParser 服务后即可开始 Web、Android 平台的自动化任务,未来还将继续支持iOS平台
- 支持多种大模型接入,包括DeepSeek、OpenAI、千问等,默认使用 DeepSeek V3 模型,后续会支持更多大模型接入
- 可通过自然语言进行断言,并生成详细的执行日志和报告,方便测试人员查看执行过程和结果
安装
pip install page-eyes
使用示例
import asyncio
from page_eyes.agent import WebAgent, MobileAgent
async def main():
# Web 端
ui_agent = await WebAgent.create(simulate_device='iPhone 15 Pro')
# 移动端
# ui_agent = await MobileAgent.create(serial='android-udid')
report = await ui_agent.run(
('1.打开 url "https://yobang.tencentmusic.com/chart/uni-chart/rankList/"\n'
'2.点击"查找icon"\n'
'3.在搜索输入框中输入"小美满"\n'
'4.点击"小美满> "\n'
'5.点击"日榜"'
))
if __name__ == "__main__":
asyncio.run(main())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
page_eyes-0.2.3.tar.gz
(237.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
page_eyes-0.2.3-py3-none-any.whl
(182.0 kB
view details)
File details
Details for the file page_eyes-0.2.3.tar.gz.
File metadata
- Download URL: page_eyes-0.2.3.tar.gz
- Upload date:
- Size: 237.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2abc6e47c72046d2b2f91a323c2618282c03ce24304672fe6e61bf6eb8c7ed71
|
|
| MD5 |
b5da300bf74c1bdacfcba3bd8914956a
|
|
| BLAKE2b-256 |
3b96eefd67e6792d1b6466754249ec4e4719a4d26ee5185a87e604dc0086e775
|
File details
Details for the file page_eyes-0.2.3-py3-none-any.whl.
File metadata
- Download URL: page_eyes-0.2.3-py3-none-any.whl
- Upload date:
- Size: 182.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4530ca4f19d02c64ffe46b4b0c5dae97138d5ca2c5a47d2be0935d640ab592c4
|
|
| MD5 |
b6c67f5a3595b47503cea37484c8e38d
|
|
| BLAKE2b-256 |
6f206634874ab588f28d149eb16a8cdea209b972a4738c95c3692000880ecff9
|