SoblendWA para Python
Cliente de WhatsApp Web multi-dispositivo con el motor de
SoblendWA en Rust, como módulo nativo para asyncio. Hecho
por Soblend Development Studio.
Todo el trabajo pesado (cifrado Signal, socket, códec binario, almacenamiento) corre en Rust, fuera del GIL. Los
métodos son corrutinas normales de Python: se usan con await, sin hilos ni callbacks.
Instalar
pip install soblendwa
Funciona con Python 3.9 o más reciente (ABI estable) en Windows x64, macOS (Intel y ARM) y Linux x64 o ARM64. No hace falta tener Rust.
Compilar desde el repositorio
pip install maturin
maturin develop --release
python test_bindings.py
Para generar una rueda instalable: maturin build --release.
Uso
import asyncio
from soblendwa import SoblendWA
async def main():
bot = await SoblendWA.create(store={"type": "sqlite", "path": "session/auth.db"}, push_name="Mi Bot")
@bot.on("qr")
def qr(event):
print("Escanea:", event["code"])
@bot.on("message")
async def answer(message):
if message["info"]["fromMe"]:
return
if message["text"] == "!ping":
await bot.reply(message, f"Pong\n{bot.elapsed(message):.2f} ms")
if message["text"] == "!foto":
with open("foto.jpg", "rb") as photo:
await bot.send_image(message["info"]["chat"], photo.read(), caption="Hola", quoted=message)
await bot.run()
asyncio.run(main())
Si prefieres manejar el bucle tú mismo: await bot.connect() y luego async for event in bot.events(): ....
Opciones extra de SoblendWA.create: proxy="socks5://usuario:clave@host:1080",
chat_store={"path": "session/chats.json"} y link_previews={"enabled": False}.
Los enlaces de un texto llevan vista previa sola. Para quitarla o escribirla a mano:
await bot.send_text(chat, texto, preview=False) o preview={"title": "Mi título"}.
Para migrar un bot de Baileys sin volver a escanear el QR:
from soblendwa import import_baileys
report = await import_baileys("./auth_info", type="sqlite", path="session/auth.db")
Para vincular con código en lugar de QR: await bot.request_pair_code("5215512345678") después del primer evento qr.
Almacenamiento
store={"type": "file", "path": "session"}
store={"type": "sqlite", "path": "auth.db", "account": "ventas"}
store={"type": "postgres", "url": "postgres://bot:clave@localhost/wa", "account": "ventas"}
store={"type": "redis", "url": "redis://127.0.0.1/", "account": "ventas"}
store={"type": "mongo", "url": "mongodb://localhost:27017", "database": "wa", "account": "ventas"}
store={"type": "memory"}
MongoDB es experimental: falta probarlo contra un servidor real.
Métodos
send_text, reply, react, send_image, send_video, send_audio, send_document, send_sticker, send_file,
download, download_to_file, send_interactive, send_buttons, send_list, chats, contacts, messages, search,
send_poll, vote_poll, edit, revoke, typing, set_online, group_info, joined_groups, on_whatsapp,
profile_picture, block, unblock, send_proto, request_pair_code, stats, pending_sends, ping, elapsed,
disconnect y logout.
Los eventos son diccionarios con una clave type (qr, connected, message, pollVote, chatUpdate, …), con
los mismos campos que en el binding de Node.js.
Aviso
SoblendWA es independiente y no está afiliado a WhatsApp ni a Meta. Automatizar una cuenta puede ir contra sus Términos de Servicio y provocar un bloqueo. Lee qué está probado.
MIT © 2026 Soblend Development Studio
Metadata
Release files for soblendwa 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| soblendwa-0.1.0-cp39-abi3-win_amd64.whl | CPython 3.9 | abi3 | Windows x86-64 | Details for soblendwa-0.1.0-cp39-abi3-win_amd64.whl |
| soblendwa-0.1.0-cp39-abi3-manylinux_2_28_x86_64.whl | CPython 3.9 | abi3 | Linux glibc 2.28+ x86-64 | Details for soblendwa-0.1.0-cp39-abi3-manylinux_2_28_x86_64.whl |
| soblendwa-0.1.0-cp39-abi3-manylinux_2_28_aarch64.whl | CPython 3.9 | abi3 | Linux glibc 2.28+ ARM64 | Details for soblendwa-0.1.0-cp39-abi3-manylinux_2_28_aarch64.whl |
| soblendwa-0.1.0-cp39-abi3-macosx_11_0_arm64.whl | CPython 3.9 | abi3 | macOS 11.0+ ARM64 | Details for soblendwa-0.1.0-cp39-abi3-macosx_11_0_arm64.whl |
| soblendwa-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl | CPython 3.9 | abi3 | macOS 10.12+ x86-64 | Details for soblendwa-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl |
Total release size: 40.0 MB
Release files / soblendwa-0.1.0-cp39-abi3-win_amd64.whl
| Download URL | soblendwa-0.1.0-cp39-abi3-win_amd64.whl |
|---|---|
| Size | 8.8 MB |
| Tags | CPython 3.9 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
966703c03023952f8282bbb265d254cb1189f231637a0273627eee614c26b687
|
|
BLAKE2b-256 checksum How to use checksums |
827766b96deeb0c4f22c6a9b33a6310af5eeae7ea78e8342cb5821b7c43432a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / soblendwa-0.1.0-cp39-abi3-manylinux_2_28_x86_64.whl
| Download URL | soblendwa-0.1.0-cp39-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 8.2 MB |
| Tags | CPython 3.9 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
5be472f65331b674e15abd0276846ccf0c96cafbac840ff293e2ca46349d7c6c
|
|
BLAKE2b-256 checksum How to use checksums |
d756121e3d794325090a523dda9cec94830069127030cc660d9bba9719b0d14d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / soblendwa-0.1.0-cp39-abi3-manylinux_2_28_aarch64.whl
| Download URL | soblendwa-0.1.0-cp39-abi3-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 7.6 MB |
| Tags | CPython 3.9 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
a318d077ecbdc9ec8ad1ec32bf8ef8e3e55ae6a25c842058129614643fa130f0
|
|
BLAKE2b-256 checksum How to use checksums |
0df917e34f8e167fbb0e3487020bfea50e5750bc47bfb2a22339fea436fc1053
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / soblendwa-0.1.0-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | soblendwa-0.1.0-cp39-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 7.5 MB |
| Tags | CPython 3.9 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
8d89c0e1bb61f727ad9b09c90946b2e7acda9e10d6cc05d2bc7d98f49890e248
|
|
BLAKE2b-256 checksum How to use checksums |
b88ebe39c91d57ba552db10e255dfb6cd02b250a0aa7f3bd85e61b2a2a8b0869
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / soblendwa-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl
| Download URL | soblendwa-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 8.0 MB |
| Tags | CPython 3.9 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
6024b0cb04c76ca3103696bce5bae6bb1e6efa2531a009367555cc17455c6dcc
|
|
BLAKE2b-256 checksum How to use checksums |
65207c803ce1a01f167bf1c19113983d81fef97ac2db48e281975c0c5fb0733f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Security for soblendwa 0.1.0
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.