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.2.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.2-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hiws-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 c04cbfb7d7de53ab2ced626dc984c831c5566d5e5e045ec225dbb1cbaaba7155
MD5 5e2273b21af491037e875ee87cbfbf56
BLAKE2b-256 1e53bfd3617db4db8b2c265bad653e3c5b7803d358c61061fdf83696fcb17129

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hiws-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3b8066b0f534351c5211934117bf1dba1e30fb5215c722c454a4458d49b01625
MD5 a063e39000f462f689ee92b5ef910b16
BLAKE2b-256 ec1e4dcaa4deef01b133d3806989e4e54323943533ebd4088ef1181854191e20

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