Skip to main content

Twilio command-line application for sending SMS text messages and making voice calls.

Project description

README
======

.. contents::


Installation
------------

pip install twerp



Configure twerp
---------------

~/.twerprc


ACCOUNT_SID=a902830980980980ff987yada

AUTH_TOKEN=98798asdfas9df87sadf987yada

CALLERID=+12135551212



Usage Examples
==============

$ twerp -N

List your Twilio phone numbers


$ twerp -Nv

List lots of details about each of your Twilio numbers:


$ twerp -m 'this is a test' -s +12135551212

Send SMS message to +12135551212

$ twerp -c +12135551212 -u http://computer.net/TWIML

Call +12135551212 and execute the TWIML at given URL

$ twerp -c +12135551212,+13235551212 -u http://twimlets.com/conference?Music=rock

Call two numbers and put them in a conference room. First one gets rock music till another caller joins.


$ twerp -l

List all of your SMS messages (Be careful if you have zillions, filtering coming soon)


$ twerp -S nnnnnnnnnnnn

Show details of SMS message by SID


$ twerp -i --dial +13235551212 -u http://twimlets.com/conference?Music=rock
Go into interactive command-line mode after calling number.


Interactive Mode
================


The Prompt
----------

The prompt will have part of the SID if a call is in progress:

twerp (CA3...ab) >>

If you hang up a call, for example, there will be no SID, so the prompt will look like this:

twerp (...) >>


Interactive Mode Commands
-------------------------

list - List all calls in progress, ringing or queued
hangup - Hang up call associated with SID shown in prompt
nuke - Hang up all calls associated with account. ALL OF THEM!
forward - Forward call to another phone number
url - Redirect flow of call to TwiML at a URL
info - Show info for current SID or SID given
sid - Change the current SID associated with interactive-mode


TODO
----

See http://blog.cakebread.info/



.. Twerp News

News
====

0.0.3
-----

*Release date: 1/17/2012

* Added --interactive command-line feture to control calls in progress
* Changed many keyword options, we're still super++ pre-alpha, so I can do that.
* Added docs at http://twerp.rtfd.org/


0.0.2
-----

*Release date: 1/6/2012

* Added voice dialing

0.0.1
-----

*Release date: 1/5/2012

* Initial release

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

twerp-0.0.2.tar.gz (5.1 kB view details)

Uploaded Source

File details

Details for the file twerp-0.0.2.tar.gz.

File metadata

  • Download URL: twerp-0.0.2.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for twerp-0.0.2.tar.gz
Algorithm Hash digest
SHA256 d5c1c6bf32114360cd230bf2550c02d569548056baf391869fd94c4916b25435
MD5 1ce2b166c71566e8bd45d6f2f1350f30
BLAKE2b-256 ccad465ea38c8a6ed43c697a1f27fa08fe0458ddba7d770cde7e11f503b4ae2e

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