Metadata-Version: 2.4
Name: wsbypass
Version: 0.1.0
Summary: Universal Cloudflare-bypassing WebSocket client using TLS impersonation
Author: aro22
License-Expression: MIT
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: Topic :: Internet :: WWW/HTTP
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: curl_cffi>=0.7.0
Dynamic: license-file

# wsbypass

Connect to Cloudflare-protected WebSockets without running a browser.

Uses `curl_cffi` under the hood to handle TLS fingerprints (BoringSSL / JA3) so the handshake passes Cloudflare and Akamai anti-bot checks.

## Install

```bash
pip install wsbypass
```

## Quick Example

```python
import wsbypass
from curl_cffi import CurlWsFlag

# Connect through Cloudflare TLS
ws = wsbypass.connect(
    "wss://target.com/ws",
    origin="https://target.com"
)

# Send frames
ws.send('{"type": "ping"}', CurlWsFlag.TEXT)

# Read frames
raw, _ = ws.recv()
print(raw.decode("utf-8"))

ws.close()
```
