Skip to main content

gaviwhatsapp

WhatsApp API SDK for Python. Send messages, templates, media, and broadcasts.

Install

pip install gaviwhatsapp

Quick Start

import os
from gaviwhatsapp import WhatsApp

wa = WhatsApp(api_key=os.environ["GAVIVENTURES_API_KEY"])

# Send a text message
wa.send(to="+919876543210", text="Hello!")

# Send a template message
wa.send_template(
    to="+919876543210",
    template="order_confirmation",
    variables={"1": "ORD-1234", "2": "$49.99"},
)

# Send media
wa.send_media(
    to="+919876543210",
    type="image",
    url="https://example.com/photo.jpg",
    caption="Your receipt",
)

# List templates
result = wa.get_templates()
print(result["templates"])

# Send broadcast
wa.broadcast(
    recipients=["+919876543210", "+919876543211"],
    template="promo_offer",
)

# Register webhook
webhook = wa.register_webhook(
    url="https://myapp.com/api/webhook",
    events=["message.received"],
)
print(webhook["secret"])  # Save for HMAC verification

API Reference

Method Description
wa.send(to, text) Send a text message
wa.send_template(to, template, language?, variables?) Send a template message
wa.send_media(to, type, url, caption?, filename?) Send media
wa.get_messages(phone?, limit?) Get message history
wa.get_templates(sync?) List available templates
wa.broadcast(recipients, template, language?, variables_per_recipient?) Send to multiple recipients
wa.register_webhook(url, events?) Register a webhook endpoint
wa.list_webhooks() List registered webhooks

Get an API Key

Sign up at gaviventures.com and go to Settings > API Keys.

Metadata

Release files for gaviwhatsapp 0.1.1

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

Source distribution (sdist)

Source distribution for gaviwhatsapp 0.1.1
File Size Uploaded Provenance
gaviwhatsapp-0.1.1.tar.gz 3.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for gaviwhatsapp 0.1.1
File Interpreter ABI Platform
gaviwhatsapp-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.1 kB

Release files / gaviwhatsapp-0.1.1.tar.gz

Download URL gaviwhatsapp-0.1.1.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
bf96a854590fd74c56954ff5d7f6260f92ae38943792f278de50c2402af5326e
BLAKE2b-256 checksum
How to use checksums
b0255f4dafbad894f8abaed4fac154d0e89b640c0917c13ffe2abc7d81cf72ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Release files / gaviwhatsapp-0.1.1-py3-none-any.whl

Download URL gaviwhatsapp-0.1.1-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b4130ea44bef9b37c6835de66f6314c65152b1e096aa7fa360a802a4e850b8ce
BLAKE2b-256 checksum
How to use checksums
87e46f8f757268cdfa79a03bc2c8ff2b5786c6e22bcd72405b5a30439f771df2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Security for gaviwhatsapp 0.1.1

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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