WAeys
Pure-Python port of Baileys — a WhatsApp Web protocol client. No Node.js / node_modules dependency: all crypto is pure Python.
Features
- WhatsApp Web protocol over WebSockets (Noise-encrypted)
- E2EE (Signal) sessions in pure Python
- Pairing code & QR login
- Messages: text, media, contacts, location, react, poll, events, and more
- Interactive messages (buttons, lists, templates) via raw protobuf
- Session persistence with a pluggable key store
- Fully typed generated protobuf classes (no
google.protobufdependency) - Message retry manager for undelivered messages
Install
pip install waeys
Requires Python 3.10+. Only runtime dependency: websockets>=12.0.
Documentation
Complete guides (very detailed, in three languages):
| Language | Guide |
|---|---|
| English | docs/usage.en.md |
| Español | docs/usage.es.md |
| Português | docs/usage.pt.md |
Quick usage
import asyncio
from WAeys.Defaults.index import default_connection_config
from WAeys.Utils.auth_utils import init_auth_creds
from WAeys.Utils.browser_utils import Browsers
from WAeys.Socket.socket import make_socket
async def main():
config = default_connection_config()
config['auth'] = {'creds': init_auth_creds(), 'keys': make_file_key_store()}
config['browser'] = Browsers.macOS('Safari')
config['logger'].level = 'info'
sock = make_socket(config)
ev = sock['ev']
async def on_conn(update):
if update.get('qr'):
print('Scan the QR in WhatsApp > Linked Devices')
print(update['qr'])
if update.get('connection') == 'open':
await sock['sendMessage']('51921826291@s.whatsapp.net', {'text': 'Hello from WAeys!'})
ev.on('connection.update', lambda u: asyncio.ensure_future(on_conn(u)))
await asyncio.Event().wait()
if __name__ == '__main__':
asyncio.run(main())
See the full guides above for pairing codes, session persistence, media, interactive messages, events and production tips.
Compatibility
WAeys is pure Python and runs on Linux, macOS, Windows, Android (Termux), Docker, VPS and Raspberry Pi.
Disclaimer
This is an unofficial client for the WhatsApp Web protocol. Using it may violate WhatsApp's Terms of Service and can lead to account bans. Use at your own risk. This project is not affiliated with WhatsApp or Meta.
License
MIT
Metadata
Release files for waeys 0.1.3
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 |
|---|---|---|---|---|
| waeys-0.1.3.tar.gz | 411.2 kB | Without provenance | Details for waeys-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| waeys-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for waeys-0.1.3-py3-none-any.whl |
Total release size: 815.7 kB
Release files / waeys-0.1.3.tar.gz
| Download URL | waeys-0.1.3.tar.gz |
|---|---|
| Size | 411.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
87c65dc4fedec3e439bf26993a4b5fc3c25f8096f778156c6e42fdad3b82fb78
|
|
BLAKE2b-256 checksum How to use checksums |
2962f004618ca1e823f98ca67e9ed0f4f26be72b531916acab4de687dc95ff68
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / waeys-0.1.3-py3-none-any.whl
| Download URL | waeys-0.1.3-py3-none-any.whl |
|---|---|
| Size | 404.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4f6ab81ae3ff7449c5b298e3bd447bf395330810cb53f9db103d5a7f21f0dae8
|
|
BLAKE2b-256 checksum How to use checksums |
7d9e6c5ea27d61191078d94b528ad2411b3d079a756dc6c6d0e202f7f9fbda9a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Security for waeys 0.1.3
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.