Skip to main content

PyZapp Python SDK

Elegant HTTP client for the PyZapp API. No Node.js, no Baileys here — just httpx + pydantic with typed models and mapped errors.

Install

pip install -e .

Use

from whatsapp_sdk import WhatsAppClient

with WhatsAppClient(base_url="http://localhost:8000", api_key="...") as client:
    inst = client.create_instance()
    client.print_qr(inst.instance_id)   # ASCII no terminal; escaneie com o WhatsApp
    client.send_message(inst.instance_id, "+5511999999999", "Olá!")

Methods: create_instance, list_instances, get_instance, delete_instance, connect, get_qr, print_qr, get_status, send_message, request_pairing_code (returns the 8-digit string), set_webhook(url, secret?).

Errors (all subclass WhatsAppSDKError, with stable .code): AuthenticationError, InstanceNotFoundError, NotConnectedError, QRNotAvailableError, ValidationError, ServiceError.

Tests

pip install -e ".[dev]"
python -m pytest   # httpx.MockTransport, no network

Release files for pyzapp-sdk 0.1.0

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

Source distribution (sdist)

Source distribution for pyzapp-sdk 0.1.0
File Size Uploaded
pyzapp_sdk-0.1.0.tar.gz 5.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyzapp-sdk 0.1.0
File Interpreter ABI Platform
pyzapp_sdk-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.4 kB

Release files / pyzapp_sdk-0.1.0.tar.gz

Download URL pyzapp_sdk-0.1.0.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1b07620afe0f53621d5701f44817728884c199259a4451de85199b72b773cb77
BLAKE2b-256 checksum
How to use checksums
5371c2e0c88ddd391e67264aaeccdcc3b1923df7b5b69088cb8e51e80b72bd8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.

Transparency log

Release files / pyzapp_sdk-0.1.0-py3-none-any.whl

Download URL pyzapp_sdk-0.1.0-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
461657357b4a6d132f438299ce022b1285646a1eec97372d07deb359bb7606d1
BLAKE2b-256 checksum
How to use checksums
3f2b49d20dcab1f40825a3de322ffa4b97f80ece0c70d17e1a73109adfc272d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.1

2 release files

0.2.0

2 release files

This release

0.1.0 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