@antybrowser/sdk (Python)
Official Antybrowser Python SDK for the Local API.
Installation
pip install antybrowser
Quick Start
import asyncio
from antybrowser import AntybrowserClient, CreateProfileRequest
async def main():
async with AntybrowserClient(api_key="your_key", port=5173) as client:
# List profiles
profiles = await client.get_profiles()
for p in profiles:
print(f"{p.name} (status: {p.status})")
# Create a profile
profile = await client.create_profile(CreateProfileRequest(
name="My Profile",
browser_type="Chrome",
os_fingerprint="Windows",
language="en-US",
use_fingerprint=True,
))
# Start it — get debug port for Selenium/Playwright
result = await client.start_profile(profile.id)
print(f"Debug port: {result.data.debug_port}")
asyncio.run(main())
Configuration
# Simple
client = AntybrowserClient(api_key="my_key")
# Custom port
client = AntybrowserClient(api_key="my_key", port=5174)
# Full override
client = AntybrowserClient(api_key="my_key", base_url="http://10.0.0.5:5173")
Context Manager
async with AntybrowserClient(api_key="my_key") as client:
profiles = await client.get_profiles()
# Connection automatically closed
API Methods
| Method | Description |
|---|---|
get_status() |
Check API connection |
get_settings() |
Get settings |
get_sync_status() |
Get sync status |
refresh_sync(profile_id?) |
Trigger sync |
get_profiles() |
List profiles |
create_profile(request) |
Create profile |
update_profile(id, **fields) |
Update profile |
delete_profile(id) |
Delete profile |
start_profile(id) |
Start profile |
stop_profile(id) |
Stop profile |
duplicate_profile(id, opts?) |
Duplicate profile |
get_automations() |
List automations |
run_automation(id, request) |
Run automation |
get_groups() |
List groups |
create_group(request) |
Create group |
update_group(id, **fields) |
Update group |
delete_group(id) |
Delete group |
get_proxies() |
List proxies |
create_proxy(request) |
Create proxy |
check_proxy(host, port, ...) |
Check proxy |
check_proxies_bulk(proxies) |
Bulk check |
delete_proxy(id) |
Delete proxy |
get_extensions() |
List extensions |
delete_extension(id) |
Delete extension |
get_profile_extensions(id) |
Get profile extensions |
set_profile_extensions(id, ids) |
Set profile extensions |
Error Handling
from antybrowser import AntybrowserError
try:
await client.get_profiles()
except AntybrowserError as e:
print(f"Status: {e.status_code}")
print(f"Body: {e.response_body}")
License
MIT
Metadata
Release files for antybrowser 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| antybrowser-1.0.2.tar.gz | 8.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| antybrowser-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.6 kB
Release files / antybrowser-1.0.2.tar.gz
| Download URL | antybrowser-1.0.2.tar.gz |
|---|---|
| Size | 8.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f09925f33ac63b08bebd232e4ea086fa56eed8d411deb0f340d0dd46dd0a3d45
|
|
BLAKE2b-256 checksum How to use checksums |
f6922d3001b8715d70a53007c3f12c933a2f8f57a39c8d5e348e3011925a1674
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / antybrowser-1.0.2-py3-none-any.whl
| Download URL | antybrowser-1.0.2-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1156803b08c2436b0e08e6611213f7a74b6c3fe28811072be476616a2ab7c643
|
|
BLAKE2b-256 checksum How to use checksums |
09e62058eb217a18071d70e1528bca72937efa56fef40784157e50c88d89904f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Security for antybrowser 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.