Today I uploaded Django SMS to pypi. It is a simple Django app for sending SMS's. It supports interchangable backends. The reason you might need this, is that you'd want different things to happen depending on whether you are developing your application, running tests or running your code in production.
- During developement you probably want to output SMS's to the console so you can see what is going on. Django SMS ships with a console backend.
- When running your test suite you want your tests to be able to check the content of your SMS's. Django SMS ships with a local memory backend.
- When running in production you want SMS's to actually be sent through your chosen gateway. Django SMS defines a simple interface that allows you to implement backends supporting the gateway you'd like to use.
Using Django SMS is as simple as calling the toplevel function send_sms with the sender, receiver and message. Give it a try or fork it on bitbucket

Ingen kommentarer:
Send en kommentar