semvec/pypi-packages huggingface dataset:
sms4 0.1.0
Simple and straightforward way to send text messages
License: MIT

# SMS4 Python Client

This is the Python client library for [SMS4](https://www.sms4.dev).

This library provides both blocking and non blocking functions for sending
text messages via sms4 API.

## Installation

```bash
pip install sms4
```

## Usage

```python
from sms4 import send, nonblocking_send

# result is a json server response. see docs for details
result = send('+123456798', 'The server is down!')
print(result)

# multiple numbers are supported and you can pass token via
# 3rd argument to send function
result = send(['+123456798', '+123456799'], 'The server is down!', 'YOUR_TOKEN')
print(result)

# Will be send in another thread, no result returned
nonblocking_send('+123456798', 'The server is down!')
```