{ "info": { "author": "Stefan Foulis", "author_email": "stefan.foulis@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP" ], "description": "==============\ndjango-sendsms\n==============\n\n\nA simple api to send SMS messages with django. The api is structured the same way as djangos own email api.\n\nInstallation\n============\n\n::\n\n pip install django-sendsms\n\nConfigure the ``SENDSMS_BACKEND`` (defaults to ``'sendsms.backends.console.SmsBackend'``)::\n\n SENDSMS_BACKEND = 'myapp.mysmsbackend.SmsBackend'\n\n\nBasic usage\n===========\n\nSending SMSs is like sending emails::\n\n from sendsms import api\n api.send_sms(body='I can haz txt', from_phone='+41791111111', to=['+41791234567'])\n\nyou can also make instances of ``SmsMessage``::\n\n from sendsms.message import SmsMessage\n message = SmsMessage(body='lolcats make me hungry', from_phone='+41791111111', to=['+41791234567'])\n message.send()\n\n\nCustom backends\n===============\n\nCreating custom ``SmsBackend`` s::\n\n from sendsms.backends.base import BaseSmsBackend\n from some.sms.delivery.api\n\n class AwesomeSmsBackend(BaseSmsBackend):\n def send_messages(self, messages):\n for message in messages:\n for to in message.to:\n try:\n some.sms.delivery.api.send(\n message=message.body,\n from_phone=message.from_phone,\n to_phone=to,\n flashing=message.flash\n )\n except:\n if not self.fail_silently:\n raise\n\nThen all you need to do is reference your backend in the ``SENDSMS_BACKEND`` setting.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/mypebble/django-sendsms", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "django-sendsms-pebble", "package_url": "https://pypi.org/project/django-sendsms-pebble/", "platform": "OS Independent", "project_url": "https://pypi.org/project/django-sendsms-pebble/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/mypebble/django-sendsms" }, "release_url": "https://pypi.org/project/django-sendsms-pebble/0.3/", "requires_dist": null, "requires_python": null, "summary": "A simple API to send SMS messages.", "version": "0.3" }, "last_serial": 1911475, "releases": { "0.3": [ { "comment_text": "", "digests": { "md5": "f4205514feb84a40793ba2b4dcac9f0e", "sha256": "d0f8a104ea4b202c7b74a87223873df3f64651f0bdb8db4cb46811b9b7798809" }, "downloads": -1, "filename": "django-sendsms-pebble-0.3.tar.gz", "has_sig": false, "md5_digest": "f4205514feb84a40793ba2b4dcac9f0e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9767, "upload_time": "2016-01-19T11:22:04", "url": "https://files.pythonhosted.org/packages/57/24/7368d21d234a6a480ada3f7dcf7c70434d695d2b128104d50ddd1fb4d500/django-sendsms-pebble-0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f4205514feb84a40793ba2b4dcac9f0e", "sha256": "d0f8a104ea4b202c7b74a87223873df3f64651f0bdb8db4cb46811b9b7798809" }, "downloads": -1, "filename": "django-sendsms-pebble-0.3.tar.gz", "has_sig": false, "md5_digest": "f4205514feb84a40793ba2b4dcac9f0e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9767, "upload_time": "2016-01-19T11:22:04", "url": "https://files.pythonhosted.org/packages/57/24/7368d21d234a6a480ada3f7dcf7c70434d695d2b128104d50ddd1fb4d500/django-sendsms-pebble-0.3.tar.gz" } ] }