Skip to main content

rpa-skill-runtime

独立 RPA Skill 共用的任务与 CloakBrowser 运行时。它负责任务进程、BrowserContext、Page、 JSON 动作协议和 Playwright storage_state,不包含登录业务、系统选择器、UiTools、UI 框架 矩阵、Skill 生成器或页面探测工具。

安装

Python 最低版本为 3.10:

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

Runtime 直接依赖 cloakbrowser[geoip]>=0.4.10,<0.5playwright>=1.61.0。Playwright 仅提供控制 API,不安装或启动 stock Chromium。

系统 Skill 通过 lifecycle_main 启动任务,通过 action_main 执行自己的登录和业务动作。 任务默认有头、关闭拟人操作;Skill 可在自己的 manage.py 使用 default_headlessdefault_humanizefixed_browser_args 声明固定默认值。调用方只可在 manage.py start 传入 headlesshumanize 和额外 browser_args,任务创建后不可切换。

账号登录成功后由当前 Skill 的 login.py 调用保存接口。已有登录态的任务会在成功业务 动作后自动刷新:首次变化立即写入,后续按 300 秒节流,并在正常关闭或 idle timeout 前 刷新待保存状态。失败动作不产生快照,同账号并发任务采用最后原子写入覆盖。

发布

发布脚本位于 rpa-skill-runtime/

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

默认递增 patch 并发布到公开 PyPI;--bump minor 递增 minor 并将 patch 归零。--dry-run 测试、构建和检查后恢复源码版本,不上传、不安装;--install-current 不递增、不上传,只 安装当前源码版本。认证信息只从 ~/.pypirc 或 Twine 标准环境变量读取。

正式发布后,脚本把精确版本安装到开发 Python 和 Runtime .venv,从源码目录外验证核心 导入和 CloakBrowser 二进制。上传成功后的本地安装失败不会回退已经发布的版本。

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.2.0.tar.gz (20.6 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.2.0-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for rpa_skill_runtime-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7279bfa8f77b4958688fcc96e7c435284f67b104de5ce2ad924cf3c10942de2f
MD5 86ebfbc9f3742f3afb04eb400d7435cf
BLAKE2b-256 bd6a33b9b753f23466d22479c91dc837d0da68d8a0606412e7280fb1c26aed18

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rpa_skill_runtime-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3d0e2797a75c9284e2f7112c470018cb24a2878dacb7c9d8abe7d49165d93a6b
MD5 0e230e8967e9ab94bbeffc83495c3cb0
BLAKE2b-256 535ec20157643a902008d4cedd99fac08d5e4150b36f9916dda1300812ac74d5

See more details on using hashes here.

Release history Release notifications | RSS feed

0.3.0

2 files

0.2.1

2 files

This release

0.2.0 This release

2 files

0.1.19

2 files

0.1.18

2 files

0.1.17

2 files

0.1.16

2 files

0.1.15

2 files

0.1.14

2 files

0.1.13

2 files

0.1.12

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page