Metadata-Version: 2.4
Name: easybrowser-sdk
Version: 0.1.2
Summary: EasyBrowser local API SDK
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.31
Requires-Dist: loguru>=0.7
Requires-Dist: patchright
Requires-Dist: PySocks>=1.7

# EasyBrowser SDK

EasyBrowser SDK is a small Python client for the EasyBrowser local API.

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

## Install

```bash
pip install easybrowser-sdk
```

## Quick Start

```python
from easybrowser_sdk import EasyBrowserAPI

api = EasyBrowserAPI()
api.ensure_local_api_available()

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

## Requirements

- Python 3.10+
- EasyLauncher installed and running

Free VIP activation is available inside EasyLauncher.

## Publish

```bash
python -m pip install build twine
python -m build
python -m twine check dist/*
python -m twine upload dist/*
```

Use `__token__` as the username and a PyPI API token as the password.

---

# EasyBrowser SDK

EasyBrowser SDK 是一个用于 EasyBrowser 本地 API 的简洁 Python 客户端。

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

## 安装

```bash
pip install easybrowser-sdk
```

## 快速开始

```python
from easybrowser_sdk import EasyBrowserAPI

api = EasyBrowserAPI()
api.ensure_local_api_available()

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

## 运行要求

- Python 3.10 及以上
- 已安装并运行 EasyLauncher

EasyLauncher 内可免费开通 VIP。

## 发布

```bash
python -m pip install build twine
python -m build
python -m twine check dist/*
python -m twine upload dist/*
```

用户名使用 `__token__`，密码使用 PyPI API token。
