Metadata-Version: 2.4
Name: wasender-cli
Version: 0.1.0
Summary: A production-grade CLI tool for the WasenderAPI
Author-email: Tapatio Solutions <girishdudhwal@gmail.com>
License: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Environment :: Console
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: typer>=0.9.0
Requires-Dist: httpx>=0.25.0
Requires-Dist: rich>=13.0.0
Requires-Dist: python-dotenv>=1.0.0
Dynamic: license-file

# Wasender CLI

A production-grade CLI tool for the WasenderAPI using Python with Typer.

## Installation

1. Make sure you have Python 3.9+ installed.
2. Install the CLI in editable mode:
   ```bash
   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:
```ini
WASENDER_TOKEN=your_token_here
```

**Option 2: Environment Variable**
```bash
export WASENDER_TOKEN=your_token_here
# On Windows PowerShell:
# $env:WASENDER_TOKEN="your_token_here"
```

## Examples

### Sessions Group
```bash
wasender sessions list
wasender sessions create --name "My Session"
```

### Messages Group
```bash
wasender messages text my_session 1234567890 "Hello from Wasender CLI!"
wasender messages image my_session 1234567890 https://example.com/image.png
```

### Contacts Group
```bash
wasender contacts list my_session
wasender contacts add my_session 1234567890 "John Doe"
```

### Groups Group
```bash
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.
