Skip to main content

YesssSMS let's you send SMS via yesss.at's website

Project description

YesssSMS

Python version Gitlab CI Badge coverage report pypi version license

YesssSMS let's you send SMS via yesss.at's website. Regular rates apply and a contract or prepaid plan is needed.

Use your website login and password.

This module is not suitable for batch SMS sending. Each send() call logs in and out of yesss.at's website.

Currently the library supports Python 3.5+, and is tested against Python 3.5 to 3.7.

Install

> pip3 install YesssSMS

Usage

>>> from YesssSMS import YesssSMS
>>> sms = YesssSMS(YOUR_LOGIN, YOUR_PASSWORD)
>>> sms.send(TO_NUMBER, "Message")

or for the command line:

> echo '[YESSS_AT]\nYESSS_LOGIN=06501234567\nYESSS_PASSWD=password' > ~/.config/yessssms.conf
> yessssms --test # test your setup, send yourself a message
> yessssms -t 0664123123123 -m "sending SMS from the command line :)"

> # if a default recipient is defined, you can omit the -t flag
> # the message can be piped into yessssms (it will be cut to max 3 SMS, 3*160 chars)
> echo "important message!" | yessssms -m -

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

YesssSMS-0.4.0b1.tar.gz (7.2 kB view hashes)

Uploaded Source

Built Distribution

YesssSMS-0.4.0b1-py3-none-any.whl (8.1 kB view hashes)

Uploaded Python 3

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