Skip to main content

面向独立 RPA Skill 的轻量 CloakBrowser 运行时

Project description

rpa-skill-runtime

独立 RPA Skill 共用的轻量 CloakBrowser 运行时,使用 Playwright API 提供任务进程、隐身 浏览器会话、JSON 动作协议和 DOM UI 工具。登录和业务动作仍由各系统 Skill 自己实现, 不安装或启动 Playwright stock Chromium。

安装

Python 最低版本为 3.10:

python3.12 -m pip install "rpa-skill-runtime>=0.1.17"
python3.12 -m cloakbrowser install

安装后,系统 Skill 直接导入 rpa_skill_runtime,不需要携带构建器源码。

任务启动时可用布尔参数 humanize 选择 CloakBrowser 拟人交互;通用默认关闭,系统 Skill 可在自己的 manage.py 声明特殊默认值。该设置在任务生命周期内固定,浏览器模式重启时 继续沿用,不影响 stealth、GeoIP 或指纹策略。

任务启动时还可用布尔参数 headless 选择是否显示窗口;通用默认显示,系统 Skill 可在 自己的 manage.py 声明默认无头。

账号登录成功后立即保存 Playwright storage_state。已有登录态的任务会在成功业务动作后 自动刷新:首次变化立即写入,后续按 300 秒节流,并在正常关闭或空闲超时前落盘最后一份 待保存状态。刷新失败不改变业务动作输出,同账号并发任务采用最后写入覆盖。

发布

./publish.sh --dry-run
./publish.sh
./publish.sh --skip-tests
./publish.sh --repository internal
./publish.sh --install-current
TWINE_REPOSITORY_URL=https://pypi.example.com/legacy/ ./publish.sh

发布脚本位于 rpa-skill-builder/ 根目录。默认发布到公开 PyPI;认证信息只从 ~/.pypirc 或 Twine 标准环境变量读取。正式发布后会把精确版本安装到开发 Python 和构建器 .venv,并从源码目录外验证导入。 --skip-tests 只用于调用方已按变更范围完成定向验证且明确要求不运行完整测试的发布;它不 跳过构建、制品检查、上传后的精确版本安装和安装环境验证。

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

rpa_skill_runtime-0.1.17.tar.gz (73.0 kB view details)

Uploaded Source

Built Distribution

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

rpa_skill_runtime-0.1.17-py3-none-any.whl (96.6 kB view details)

Uploaded Python 3

File details

Details for the file rpa_skill_runtime-0.1.17.tar.gz.

File metadata

  • Download URL: rpa_skill_runtime-0.1.17.tar.gz
  • Upload date:
  • Size: 73.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for rpa_skill_runtime-0.1.17.tar.gz
Algorithm Hash digest
SHA256 ddde38004df62dc401d8bc956b05ef69a318f8f3559db0f5f9840073a8fb2799
MD5 54df5abc52006745033ca6eeb8e949a4
BLAKE2b-256 7c87e4be70dec0ac5c589b8f5806556096f21bcbbcb1266021032f2566cc8c93

See more details on using hashes here.

File details

Details for the file rpa_skill_runtime-0.1.17-py3-none-any.whl.

File metadata

File hashes

Hashes for rpa_skill_runtime-0.1.17-py3-none-any.whl
Algorithm Hash digest
SHA256 d5cb4018e012138793015899ed7ab108ff3283dcb7ff2af3566f7e86895b45df
MD5 fe3044202876763e033a71baa2caecfe
BLAKE2b-256 83cdcfa678ede68a38cf6fb30f03c549b0464f6b45a7b98521447578fea70c55

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