Super-fast Twilio SMS response API
Fast Twilio SMS message response API
pyrowire is an API that handles all of the plumbing necessary to create an SMS message response project with Twilio. After installing pyrowire, all you have to do is decide what you want to do with the data that comes in to your web server. We’ve got the rest covered.
For full documentation and a tutorial, please visit our documentation page.
This repository is licensed under the BSD 3-Clause license. You can view the license in the github repo
1-minute Installation & Setup
pyrowire can be installed and initialized via pip, and is best used with virtualenv. From the root directory of your project, run:
pip install pyrowire && pyrowire-init
ENV=(DEV|STAGING|PROD) [RUN=(web|worker)] python my_app.py
Here’s what the sample app (from running pyrowire-init) looks like:
import pyrowire import my_settings # configure the pyrowire application pyrowire.configure(settings=my_settings) # all app.handler methods need to be annotated with the topic for which they process # and take one kwarg, 'message_data' @pyrowire.handler(topic='my_topic') def my_handler(message_data=None): pass # all app.validator methods need to be annotated with the name of the validator # and take one kwarg, 'message_data' @pyrowire.validator(name='my_validator') def my_validator(message_data=None): pass if __name__ == '__main__': pyrowire.run()
As you can see, it’s rather straightforward; to start out you are given placeholders for both a handler and a validator. The handler is where you will write the business logic for your Twilio application. One or more validators can be added if needed, or removed altogether. See their respective sections below for more information.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size pyrowire-0.8.0.macosx-10.10-x86_64.tar.gz (34.2 kB)||File type Dumb Binary||Python version any||Upload date||Hashes View|
|Filename, size pyrowire-0.8.0.tar.gz (19.2 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for pyrowire-0.8.0.macosx-10.10-x86_64.tar.gz