YesssSMS let's you send SMS via yesss.at's website.
Project description
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.6+, and is tested against Python 3.6 to 3.9.
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 :(")
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file YesssSMS-0.6.0.tar.gz
.
File metadata
- Download URL: YesssSMS-0.6.0.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da08d373408ef822fdfb7d848d7f8c915d55c82f0681a5d1539b5f9dd0a098f5 |
|
MD5 | fff734fe6eff6e16c040f254de967211 |
|
BLAKE2b-256 | fde08e303ab7554808d6c1b80c7c53f04b157abeb812c1e67fe3765193ba46b3 |
File details
Details for the file YesssSMS-0.6.0-py3-none-any.whl
.
File metadata
- Download URL: YesssSMS-0.6.0-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 683069ce9ff7cc793ae15f3d359368f39a02c67d5d5df11eb922c6591aa44acc |
|
MD5 | 27c7adb2c558d240a35de8596fcb54e1 |
|
BLAKE2b-256 | 73215f9e604f2c32232f6e70f225c7eb06c05aec2eb9830ad59b0a181c596236 |