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
- 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
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| baileys_python-0.1.0a1.tar.gz | 317.5 kB | Without provenance | Details for baileys_python-0.1.0a1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| baileys_python-0.1.0a1-py3-none-any.whl | Python 3 | none | any | Details for baileys_python-0.1.0a1-py3-none-any.whl |
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
|
Security for baileys-python 0.1.0a1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.