Skip to main content

A frontend client for the GUI data collection framework.

Project description

GUI数据采集框架 - 前端

功能

  • 连接后端WebSocket服务
  • 定期截图并发送给后端
  • 执行后端返回的PyAutoGUI代码

安装

pip install -r requirements.txt

配置

编辑 config/config.yaml:

backend:
  host: "127.0.0.1"  # 后端IP地址
  port: 8000
frontend:
  id: "frontend_001"
  screenshot_interval: 2.0

运行

python run_frontend.py --config config/config.yaml

通信协议

发送给后端:

{"type": "screenshot", "screenshot": "base64_image"}

接收自后端:

{"type": "execute_action", "pyautogui_code": "pyautogui.click(100, 200)"}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

guifrontend-0.1.0.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

guifrontend-0.1.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file guifrontend-0.1.0.tar.gz.

File metadata

  • Download URL: guifrontend-0.1.0.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for guifrontend-0.1.0.tar.gz
Algorithm Hash digest
SHA256 04d94fd505e33479a44eac63cf5e02771da971f4c5e185ccf7a1b11cdbea3e7a
MD5 de020ffd89dfb70efdc0c85ae4ec3873
BLAKE2b-256 f8ddcb508d5b7dd5588e8121ba5ccd65fad873dd8b88ef5995d338ad78ef6f50

See more details on using hashes here.

File details

Details for the file guifrontend-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: guifrontend-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for guifrontend-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 defabefd850762cbad756abafdefb9dec4d6517849f0c3dd1c7e26dd3cab078d
MD5 3f7bc150cee73c3d34237beb93110f5e
BLAKE2b-256 a5c94e2a07bcdfb106a57c28010e800b540d7a17205b7b4c1f7317ea450986c0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page