Metadata-Version: 2.4
Name: baileys-python
Version: 0.1.0a1
Summary: Async Python implementation of the WhatsApp Web protocol inspired by Baileys.
Author: Baileys Python contributors
License-Expression: MIT
Project-URL: Homepage, https://github.com/sivajeetsabdakar/baileys-python
Project-URL: Repository, https://github.com/sivajeetsabdakar/baileys-python
Project-URL: Issues, https://github.com/sivajeetsabdakar/baileys-python/issues
Project-URL: Documentation, https://github.com/sivajeetsabdakar/baileys-python#readme
Keywords: whatsapp,baileys,websocket,asyncio,whatsapp-web
Classifier: Development Status :: 3 - Alpha
Classifier: Framework :: AsyncIO
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Communications :: Chat
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
Requires-Python: <3.13,>=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: NOTICE
Requires-Dist: aiohttp
Requires-Dist: cryptography
Requires-Dist: protobuf
Requires-Dist: qrcode[pil]
Requires-Dist: signal-protocol
Requires-Dist: websockets
Requires-Dist: xeddsa
Provides-Extra: dev
Requires-Dist: pytest; extra == "dev"
Requires-Dist: build; extra == "dev"
Requires-Dist: twine; extra == "dev"
Provides-Extra: docs
Requires-Dist: mkdocs-material; extra == "docs"
Provides-Extra: postgres
Requires-Dist: psycopg[binary,pool]>=3.2; extra == "postgres"
Provides-Extra: proto
Requires-Dist: grpcio-tools; extra == "proto"
Dynamic: license-file

# Baileys Python

`Baileys-python` is an async Python package for WhatsApp Web protocol surfaces,
inspired by Node Baileys.

This project is an unofficial Python implementation inspired by
WhiskeySockets/Baileys. It is not affiliated with, endorsed by, sponsored by, or
maintained by WhiskeySockets/Baileys, WhatsApp, Meta, or any of their
subsidiaries or affiliates. WhatsApp and related names, marks, emblems, and
images are trademarks of their respective owners.

This is an alpha release. Start with a dedicated test account and review the
feature status before using it in a production service.

## Install

```powershell
python -m pip install baileys-python
```

## Documentation

- Documentation site: <https://sivajeetsabdakar.github.io/baileys-python/>
- Quickstart: `docs/quickstart.md`
- API examples: `docs/examples.md`
- Feature status: `docs/feature-status.md`
- Changelog: `CHANGELOG.md`

## Install For Development

```powershell
python -m pip install -e ".[dev]"
```

Build the documentation site locally:

```powershell
python -m pip install -e ".[docs]"
python -m mkdocs serve
```

## Run Tests

```powershell
python -m pytest -q
```

## Run Release Gates

```powershell
python scripts/release_gate.py
```

## License

This package is released under the MIT License. See `LICENSE` and `NOTICE` for
license text, attribution, and affiliation notices.

## Minimal Saved-Auth Login

```python
import asyncio
from pathlib import Path
from baileys import WhatsAppWebClient

async def main():
    async with WhatsAppWebClient(Path("auth/live_pair_creds.json")) as client:
        success = await client.wait_for_success(timeout=60)
        print(success.attrs)

asyncio.run(main())
```
