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.2.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.2.0
File Size Uploaded
pyzapp_sdk-0.2.0.tar.gz 5.8 kB Details

Built distribution (wheel)

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

Total release size: 11.3 kB

Release files / pyzapp_sdk-0.2.0.tar.gz

Download URL pyzapp_sdk-0.2.0.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1a116a59669c28a83982aba8c5e35f35dc779de55f492482d5e33634134bf6d1
BLAKE2b-256 checksum
How to use checksums
481b1e7d91220eaddaea5f0987ce26cd6539e84be9348e00e89e0597fe9716a5
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.2.0-py3-none-any.whl

Download URL pyzapp_sdk-0.2.0-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
189c276de52b3cbdbf72641b8d98a7e15629798f5a082bffa9f7a5f449a0678a
BLAKE2b-256 checksum
How to use checksums
46f4ed2f00746dc2a5c4f014f90b08f69368b0f6cb98f63804f0883a97ab5597
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

This release

0.2.0 This release

2 release files

0.1.0

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