cfsolve-python
Python bindings for 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 (MIT License).
Quick Install & Usage
Requires Python >=3.10 (verified on CPython 3.13, Linux x86_64).
uv add cfsolve-python
# or: pip install cfsolve-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 (or ../../README.md in this repository).