Skip to main content

A wrapper for WhatsApp's Cloud API

Project description

hiws

A Python package for interacting with WhatsApp's Cloud API.

Installation

pip install hiws

Usage

from hiws import WhatsAppMessenger

messenger = WhatsAppMessenger(access_token="YOUR_ACCESS_TOKEN", phone_number_id="YOUR_PHONE_NUMBER_ID")

# Example usage
message_id = await messenger.send_text(recipient_phone_number="1234567890", text="Hello, World!")

print(message_id)

Development

To install in development mode:

git clone https://github.com/cervant-ai/hiws.git
cd hiws
pip install -e .

To install development dependencies:

pip install -e ".[dev]"

Testing

pytest
pip install -e ".[dev]"

Testing

pytest

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hiws-0.1.1.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hiws-0.1.1-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file hiws-0.1.1.tar.gz.

File metadata

  • Download URL: hiws-0.1.1.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for hiws-0.1.1.tar.gz
Algorithm Hash digest
SHA256 dcc9628775c9a36d4042453b4c4eeef919ce297f8bb7bd130044974776ac2bea
MD5 b727c7cc2accd75a3f4dccae6aede5fc
BLAKE2b-256 c1867606dc6f923331e936f7614b1ee733c5417afdb27a481616d78dcdcf0869

See more details on using hashes here.

File details

Details for the file hiws-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: hiws-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for hiws-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 60ba0682cf4feea8d020f2efc359d273e28fd32699af00b29b9f1db984bf6040
MD5 24275f231e9a9ae9897fb616b2ebdc3b
BLAKE2b-256 b520c7e33652e9ee0eb1d3e71953830fc1a97cdb3802ba34a0d985e93f2600d6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page