Skip to main content

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

Project description

YesssSMS

Package status Python version Gitlab CI Badge coverage report pypi version dev version license documentation downloads

Status

It appears that Yesss has pulled the web SMS feature from their customer page in February 2023. This unfortunately breaks YesssSMS. Other MVNOs are probably also broken.

YesssSMS

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

Alternatively you can use MVNOs (Mobile Virtual Network Operators) that use the kontomanager.at web interface. These include:

  • YESSS
  • billitel
  • EDUCOM
  • fenercell
  • georg
  • goood
  • kronemobile
  • kuriermobil
  • SIMfonie
  • teleplanet
  • WOWWW
  • yooopi

Use your website login and password.

use the --mvno flag to set your provider, or define it in the config file.

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

Currently the library supports Python 3.8+, and is tested against Python 3.8 to 3.11.

Install

> pip3 install YesssSMS

Usage

>>> from YesssSMS import YesssSMS
>>> sms = YesssSMS(YOUR_LOGIN, YOUR_PASSWORD)
>>> sms.send(TO_NUMBER, "Message")
>>> # or with a different MVNO:
>>> sms = YesssSMS(YOUR_LOGIN, YOUR_PASSWORD, provider="goood")
>>> sms.send(TO_NUMBER, "Message")
# login environment variables set
>>> from YesssSMS import YesssSMS
>>> sms = YesssSMS()
>>> sms.send("06641234567", "hello future self, your pipeline failed :(")
# sending multiple SMS
from YesssSMS import YesssSMS
import requests
sms = YesssSMS()
with sms._login(requests.Session()) as sess:
    sms._send(session=sess, recipient="06641234567", message="hi! I have a new number +43650-555-1234")
    sms._send(session=sess, recipient="06509876543", message="Meine neue Handynummer: +43650-555-1234")
    sms._send(session=sess, recipient="06760001256", message="I changed my number to +43650-555-1234")
    sms._logout()

Command Line Usage

> yessssms --print-config-file > ~/.config/yessssms.conf
# edit the config file, set a login, password, default recipient, and MVNO
> vi ~/.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 -

> # MVNO
> yessssms --to 06501234567 --mvno educom -m "sending SMS using a MVNO"
# set environment variables to avoid parameters or config files;
# great for pipelines
> export YESSSSMS_LOGIN=06641234567
> export YESSSSMS_PASSWD=myverysecretsecret
> export YESSSSMS_PROVIDER=wowww
> export YESSSSMS_RECIPIENT=06641234567
# use in python script or in command line
> yessssms -T
ok: login data is valid.
> yessssms -m "sending SMS from github and gitlab pipelines... so much cloud"

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.8.1.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

YesssSMS-0.8.1-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file YesssSMS-0.8.1.tar.gz.

File metadata

  • Download URL: YesssSMS-0.8.1.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for YesssSMS-0.8.1.tar.gz
Algorithm Hash digest
SHA256 98e7fb81e826e32fd69c960b9516ba0b93ec4858fb661310f3a32de20e4f9512
MD5 86b64b9627b81accbe78559a4f3c9100
BLAKE2b-256 56292721692810fbd113118787d2af9f737bf9e50c2f74caa0490fdd24956d9f

See more details on using hashes here.

File details

Details for the file YesssSMS-0.8.1-py3-none-any.whl.

File metadata

  • Download URL: YesssSMS-0.8.1-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for YesssSMS-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a13a681f97e1dbcecae2f782e2ecfb9ab49e0092e99d5d29ad820f5e25ee00a6
MD5 29eabb282a85c0983a15b7fb1e660ff8
BLAKE2b-256 811d88a3b02f56cd452f0697f07f30900e9ccdb4f60e69d6cd74da73cd67b0c7

See more details on using hashes here.

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