Skip to main content

Simple and straightforward way to send text messages

Project description

SMS4 Python Client

This is the Python client library for SMS4.

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

Installation

pip install sms4

Usage

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!')

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

sms4-0.1.0.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

sms4-0.1.0-py2-none-any.whl (3.5 kB view hashes)

Uploaded Python 2

Supported by

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