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 <nnnnnnnnnn> - Redirect current call to another phone number
* url <URL> - Redirect flow of call to TwiML at a URL
* info [<SID>] - Show info for current SID or SID given
* sid <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.4.tar.gz (7.9 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for twerp-0.0.4.tar.gz
Algorithm Hash digest
SHA256 b4ae98380b93ad4029a3898e864f94ac9be48f516d85ecaf02a5eb62c7d72463
MD5 185979f047c0e3244f0679e5d513837d
BLAKE2b-256 1ad0f68a02ed60d5e858abed0fb10d60b02c1d9ea9313fc476bc12abbb117792

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