Coder Social home page Coder Social logo

rootwzrd / hold-the-line Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vitorio/hold-the-line

0.0 1.0 0.0 14 KB

Simple Python voicemail and SMS/MMS receiver for holding onto phone numbers in Twilio

License: Creative Commons Zero v1.0 Universal

Python 100.00%

hold-the-line's Introduction

hold-the-line

hold-the-line - Simple Python voicemail and SMS/MMS receiver for holding onto phone numbers in Twilio

Verifies Twilio security signatures at all times; this may make local testing difficult without additional changes.

Runs through AWS Lambda via Zappa, see past commits for gevent/systemd/init.d/etc. versions.

Zappa usage

$ ~/Library/Python/2.7/bin/virtualenv env
$ source env/bin/activate
(env) $ pip install 'twilio<6.0' zappa phonenumbers marrow.mailer flask
(env) $ zappa init

Then edit your zappa_settings.json to reflect your usage, e.g. if this is one of many hold-the-line instances, changing the name of the deployed project:

{
    "dev": {
        "app_function": "holdtheline.app", 
        "aws_region": "us-east-2", 
        "profile_name": "zappa", 
        "s3_bucket": "zappa-██████████",
        "keep_warm": false,
        "project_name": "holdtheline-██████████"
    }
}

keep_warm is also set to false because Twilio will wait up to 15s for a response, and even on a cold start, Lambda will generally return in that time or less.

I deploy two different instances from the same source, so to deploy I then do:

(env) $ cp holdtheline.██████████.cfg holdtheline.cfg
(env) $ zappa deploy dev -s zappa_settings.██████████.json 

Public domain

Written in 2015 and 2016 and 2017 by Vitorio Miliano http://vitor.io/

To the extent possible under law, the author has dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.

You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see http://creativecommons.org/publicdomain/zero/1.0/.

hold-the-line's People

Contributors

vitorio avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.