Skip to main content

EasyBrowser local API SDK

Project description

EasyBrowser SDK

EasyBrowser SDK is a small Python helper for the EasyBrowser local API. It can create or reuse browser environments, start the local browser, open tabs, connect through CDP, and provide simple human-like browser actions for test scripts.

Website: https://easybrowser.pages.dev/

Install

pip install easybrowser-sdk

For local development:

pip install -e .

Quick Start

from easybrowser_sdk import EasyBrowserAPI

api = EasyBrowserAPI()
api.ensure_local_api_available()

env = api.ensure_container(
    name="TestEnv",
    defaultUrl="https://example.com",
)
print(env["id"])

Requirements

  • Python 3.10+
  • EasyLauncher installed and running
  • Patchright browser runtime installed when CDP automation is used
patchright install chromium

Publish

python -m pip install build twine
python -m build
python -m twine upload dist/*

Use __token__ as the username and your PyPI API token as the password.


EasyBrowser SDK 中文说明

EasyBrowser SDK 是一个用于 EasyBrowser 本地 API 的 Python 小工具。它可以创建或复用浏览器环境、启动本地浏览器、打开标签页、通过 CDP 连接浏览器,并提供简单的拟人化浏览器操作能力,方便编写测试脚本。

官网:https://easybrowser.pages.dev/

安装

pip install easybrowser-sdk

本地开发安装:

pip install -e .

快速使用

from easybrowser_sdk import EasyBrowserAPI

api = EasyBrowserAPI()
api.ensure_local_api_available()

env = api.ensure_container(
    name="TestEnv",
    defaultUrl="https://example.com",
)
print(env["id"])

依赖

  • Python 3.10+
  • 已安装并启动 EasyLauncher
  • 使用 CDP 自动化时需要安装 Patchright 浏览器运行时
patchright install chromium

发布到 PyPI

python -m pip install build twine
python -m build
python -m twine upload dist/*

上传时用户名填写 __token__,密码填写 PyPI API token。

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

easybrowser_sdk-0.1.0.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

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

easybrowser_sdk-0.1.0-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: easybrowser_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for easybrowser_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9094a30fcf5d78cd9b9ede3715b904d1de004a7d8334f4a2e3e19877c74064e8
MD5 6bf411e43ff4b9325883dca698c76064
BLAKE2b-256 7ae907813aa3bc9bfe3d3eccd8034fc4b7d24a468faa6b97b7f56df96c89c233

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for easybrowser_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e54491c8f3086ccfa950eb84977c9cfa29383d7792add7f35ef1644758d30522
MD5 05ed743285fb7f7ac499af41cbfe5c79
BLAKE2b-256 c0f4f6b5a968676d98480874e461929c4c7d9c7820d354e5d64b6a75a1228711

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