Metadata-Version: 2.5
Name: onestop-antibot
Version: 0.1.0
Summary: OneStop Antibot SDK: generate Akamai, SBSD, Pixel, DataDome, Cloudflare and Kasada payloads through the /generate API.
Project-URL: Homepage, https://github.com/Onestopapi/onestop-python-sdk
Project-URL: Documentation, https://onestopantibot.com/dashboard/docs
Project-URL: Repository, https://github.com/Onestopapi/onestop-python-sdk
Project-URL: Changelog, https://github.com/Onestopapi/onestop-python-sdk/blob/main/CHANGELOG.md
Project-URL: Issues, https://github.com/Onestopapi/onestop-python-sdk/issues
Author: onestopantibot
License-Expression: MIT
License-File: LICENSE
Keywords: akamai,antibot,cloudflare,datadome,kasada,onestop,sbsd
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Software Development :: Libraries
Classifier: Typing :: Typed
Requires-Python: >=3.10
Requires-Dist: httpx>=0.27
Requires-Dist: typing-extensions>=4.1; python_version < '3.11'
Requires-Dist: zstandard>=0.22
Description-Content-Type: text/markdown

# OneStop Python SDK

Python client for the [OneStop Antibot](https://onestopantibot.com) API. The SDK calls `/generate` and returns typed results; your application fetches the target pages and scripts and sends the generated payloads.

## Install

```sh
python -m pip install onestop-antibot
```

Requires Python 3.10+. Import it as `onestop_antibot`.

## Quick start

```python
import onestop_antibot as onestop

client = onestop.Client(
    api_key="YOUR_API_KEY",
    identifier="",  # your identifier or account name
)
ip = client.get_ip()  # set ip_http_client to an httpx.Client through your proxy so this is the proxy's IP
session = client.session(
    site=page_url, referer=page_url, user_agent=user_agent, accept_language="en-US,en;q=0.9", ip=ip,
)
res = session.akamai_sensor(abck=abck, bmsz=bmsz, script=script, script_url=script_url)
# POST res.payload as sensor_data; send res.context on the next call.
```

See [examples/](examples) for full flows per product and TLS client.

Documentation: [onestopantibot.com/dashboard/docs](https://onestopantibot.com/dashboard/docs)
