Metadata-Version: 2.4
Name: cfsolve-python
Version: 0.1.1
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: 3
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: Programming Language :: Python :: 3.14
Classifier: License :: OSI Approved :: MIT License
Summary: Python bindings for cfsolve-python, solving Cloudflare Turnstile and challenge pages natively via a Rust execution engine.
License-Expression: MIT
Requires-Python: >=3.10
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Homepage, https://github.com/iqbalmh18/cfsolve-python
Project-URL: Issues, https://github.com/iqbalmh18/cfsolve-python/issues
Project-URL: Repository, https://github.com/iqbalmh18/cfsolve-python

# cfsolve-python

Python bindings for [`cfsolve-python`](https://github.com/iqbalmh18/cfsolve-python) (`distribution: cfsolve-python`, `import: cfsolve`, native module: `cfsolve._native`), powered by PyO3 and a native Rust execution engine.

Originally forked from [`chris124567/cfsolve`](https://github.com/chris124567/cfsolve) (MIT License).

## Quick Install & Usage

Requires Python `>=3.10` (verified on CPython 3.13, Linux `x86_64`).

```bash
uv add cfsolve-python
# or: pip install cfsolve-python
```

```python
import asyncio
from cfsolve import Browser, Profile


async def main() -> None:
    browser = Browser.impersonate(Profile.CHROME_149_LINUX)  # or Profile.SAFARI_26_IOS
    outcome = await browser.solve("https://example.com/")
    print(outcome.kind, outcome.token or outcome.clearance)


asyncio.run(main())
```

For full documentation — including architecture, API reference, `asyncio.Future` usage, `Options`, `SinkProtocol`, exception handling, and development/testing instructions — see the main repository [`README.md`](https://github.com/iqbalmh18/cfsolve-python#readme) (or [`../../README.md`](../../README.md) in this repository).

