Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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

python -m pip install baileys-python

Documentation

Install For Development

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

Build the documentation site locally:

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

Run Tests

python -m pytest -q

Run Release Gates

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

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())

Metadata

Release files for baileys-python 0.1.0a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for baileys-python 0.1.0a1
File Size Uploaded
baileys_python-0.1.0a1.tar.gz 317.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for baileys-python 0.1.0a1
File Interpreter ABI Platform
baileys_python-0.1.0a1-py3-none-any.whl Python 3 none any Details

Total release size: 602.8 kB

Release files / baileys_python-0.1.0a1.tar.gz

Download URL baileys_python-0.1.0a1.tar.gz
Size 317.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d2ac5c3b6ffb5ed7d91872d82b8fa0ec3fad4ac3ede355a8be053a76c38cff12
BLAKE2b-256 checksum
How to use checksums
393533a2787181a1bd75bc03e60a2830bc031f4bfee3687d429258be357a10af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / baileys_python-0.1.0a1-py3-none-any.whl

Download URL baileys_python-0.1.0a1-py3-none-any.whl
Size 285.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
757dcaaa9aeb3eee1022971d4c2c6b03d0cc83f9eeeb359f25ac427ef7d3820e
BLAKE2b-256 checksum
How to use checksums
42be4810b8126a22cb3fa487c9f914465600bf0a43768d26ea8a414428875510
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release history Release notifications | RSS feed

This release

0.1.0a1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page