Skip to content

lukmdo/smsgates

Repository files navigation

smsgates project

First:

pip install -r requirements.pip
python setup.py install
python setup.py test

Then make most from sendsms script:

For most flexibility export your contacts (from Google Contacts or Apple Adress Book in vCard to $HOMEDIR/Documents/contacts.vcf). Then add that to your .bashrc:

SMSGATES_BOOTSTRAP=`which smsgates_bootstrap.sh`
if [ "$?" -eq "0" ]; then
  export SMSGATES_SENDSMS_GATE="GATENAME"
  export SMSGATES_SENDSMS_LOGIN="LOGIN"
  export SMSGATES_SENDSMS_PASSWORD="PASSWORD"
  source "$SMSGATES_BOOTSTRAP"
fi

Send bob sms with name TAB completion:

sms b+TAB
sms bob MSG
echo "fun time!" |sms bob

For more see sendsms.py -h

Or build your code using smsgates:

from smsgates.contrib import MySMSGate

with MySMSGate(login=l, password=p) as gate:
    gate.send(some_text, number)

Your mobile provider has poor/None sms gate ...maybe twilio.com is for you

Twilio looks as nice option if you don't mind paying few $. Just create an account and kick:

pip install -r provider_requirements/twilio_requirements.pip

An then pass:

  • --gate_name as twilio.com
  • --sender as your number
  • --login as your account sid
  • --password as your account token

Ideas:

  • speedup vCard contacts parsing ?
  • listing gates
  • storing some metadata (when/what send to who) ? configurable default off
  • support contact groups
  • automate grabbing google contacts ?

About

use smsgates to send your SMS the way U like

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published