A production-grade CLI tool for the WasenderAPI
Project description
Wasender CLI
A production-grade CLI tool for the WasenderAPI using Python with Typer.
Installation
- Make sure you have Python 3.9+ installed.
- Install the CLI in editable mode:
pip install -e .
Setup
You must set your Wasender API token. You can pass it via --token, set an environment variable, or use a .env file.
Option 1: .env file (Recommended)
Create a .env file in the directory where you run the CLI:
WASENDER_TOKEN=your_token_here
Option 2: Environment Variable
export WASENDER_TOKEN=your_token_here
# On Windows PowerShell:
# $env:WASENDER_TOKEN="your_token_here"
Examples
Sessions Group
wasender sessions list
wasender sessions create --name "My Session"
Messages Group
wasender messages text my_session 1234567890 "Hello from Wasender CLI!"
wasender messages image my_session 1234567890 https://example.com/image.png
Contacts Group
wasender contacts list my_session
wasender contacts add my_session 1234567890 "John Doe"
Groups Group
wasender groups list my_session
wasender groups create my_session "Test Group" --participants 1234567890@s.whatsapp.net,0987654321@s.whatsapp.net
Use wasender --help or wasender <group> --help to see all available commands and options.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wasender_cli-0.1.0.tar.gz.
File metadata
- Download URL: wasender_cli-0.1.0.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4e612cfc06fc49b66396bb5d30069d476da43d429c5673a8c2058e13b93d95f
|
|
| MD5 |
ab47bacd1ec4fe6aecf21b1cbfd7df67
|
|
| BLAKE2b-256 |
2f65356df56a882ac939c27dd95498b7df8acf5a8b44b8cf11357ea37939de47
|
File details
Details for the file wasender_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: wasender_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
425e02586ef9fcd76090244523027d6336b87c00db8bb560d7b945f131b3f492
|
|
| MD5 |
c16cc26189442477992f7aec77e8e609
|
|
| BLAKE2b-256 |
2f9763620ef0f3e1aac7ebb54098eea63c072a273583986514c858dd7543398f
|