{ "info": { "author": "Stefan Foulis", "author_email": "stefan@foulis.ch", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "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.. image:: https://coveralls.io/repos/github/stefanfoulis/django-sendsms/badge.svg?branch=master\n :target: https://coveralls.io/github/stefanfoulis/django-sendsms?branch=master\n\n.. image:: https://travis-ci.org/stefanfoulis/django-sendsms.svg?branch=master\n :target: https://travis-ci.org/stefanfoulis/django-sendsms\n\n.. image:: https://badge.fury.io/py/django-sendsms.svg\n :target: https://badge.fury.io/py/django-sendsms\n\nA simple api to send SMS messages with django. The api is structured the same way as Django's 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 import 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.\n\n\nRunning tests\n=============\n\n::\n\n python setup.py test\n\nOr better, install and run \"tox\".\n\n\nContributing\n============\n\n\nPull requests are very welcome. Please make sure code is formatted using black and isort.", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/stefanfoulis/django-sendsms", "keywords": "", "license": "BSD", "maintainer": "Stefan Foulis", "maintainer_email": "stefan@foulis.ch", "name": "django-sendsms", "package_url": "https://pypi.org/project/django-sendsms/", "platform": "OS Independent", "project_url": "https://pypi.org/project/django-sendsms/", "project_urls": { "Homepage": "http://github.com/stefanfoulis/django-sendsms" }, "release_url": "https://pypi.org/project/django-sendsms/0.4/", "requires_dist": null, "requires_python": "", "summary": "A simple API to send SMS messages.", "version": "0.4" }, "last_serial": 5830537, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "d1802baa9258d4e74d9fa30b411f7108", "sha256": "b81584ec2504f0d7c7e35d241919aedbb1dee065657b74ed34a1d71a0dbcedb0" }, "downloads": -1, "filename": "django-sendsms-0.1.0.tar.gz", "has_sig": false, "md5_digest": "d1802baa9258d4e74d9fa30b411f7108", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5565, "upload_time": "2011-08-10T18:11:27", "url": "https://files.pythonhosted.org/packages/d6/29/1996878cd4139e591cffa8ec12d770955e9735caeae64cc7ca30607cb6a9/django-sendsms-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "d0b2700d39ccfd85362c9eb9bb4087a0", "sha256": "20cd45c9637d006b76ef32dd06dee40f479a129513b88d48d106fbe5b2983abc" }, "downloads": -1, "filename": "django-sendsms-0.1.1.tar.gz", "has_sig": false, "md5_digest": "d0b2700d39ccfd85362c9eb9bb4087a0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5663, "upload_time": "2011-08-17T07:19:56", "url": "https://files.pythonhosted.org/packages/4c/1d/39e9370a7b9a7bac771bc61de60054a0fd5c22223a2e6d5af154f1941898/django-sendsms-0.1.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "d0bbef99d348e9175dcf02c4b6d11cc2", "sha256": "78529bf6772ce18881daa810f0e2ab72a0187d0ffe766ed7a67682a5433e6454" }, "downloads": -1, "filename": "django-sendsms-0.2.tar.gz", "has_sig": false, "md5_digest": "d0bbef99d348e9175dcf02c4b6d11cc2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7817, "upload_time": "2011-08-24T15:43:55", "url": "https://files.pythonhosted.org/packages/cf/b7/6d1341fb021011a48f7516179164a16e437e9c7d1f846e96d0bc1ead3a7b/django-sendsms-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "5d06a182d038afc4e443453f02b2e12b", "sha256": "380510a5255e8e56dacc0ad79c37d69f52390c3d382927e44457b02c3d0bc0e2" }, "downloads": -1, "filename": "django-sendsms-0.2.1.tar.gz", "has_sig": false, "md5_digest": "5d06a182d038afc4e443453f02b2e12b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7928, "upload_time": "2011-11-03T15:45:58", "url": "https://files.pythonhosted.org/packages/d7/32/1021aad41858c06d7952d35a53369c75f3aa1c1c8c9576be6d43cf946e29/django-sendsms-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "6a7eb207863ef41e2ca8c7cd5df543ad", "sha256": "4b3cea09b0d683f990c5b48556af67d9a5197e303bcaa5c4925cfcdb9a7cdfd0" }, "downloads": -1, "filename": "django-sendsms-0.2.2.tar.gz", "has_sig": false, "md5_digest": "6a7eb207863ef41e2ca8c7cd5df543ad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10064, "upload_time": "2012-04-20T13:33:25", "url": "https://files.pythonhosted.org/packages/f2/eb/e00ea34c59359e00348d754a451c5f1d33417b297d6837fba84c5a0a06bd/django-sendsms-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "9538dc02d70d8515eb00666f3db18268", "sha256": "9679fcfe3c4c29c2b70900f9d3bfa3788d84aff3a4f6008b2fb53abdc5c0ad25" }, "downloads": -1, "filename": "django-sendsms-0.2.3.tar.gz", "has_sig": false, "md5_digest": "9538dc02d70d8515eb00666f3db18268", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11324, "upload_time": "2016-06-13T12:14:54", "url": "https://files.pythonhosted.org/packages/84/d6/47463768369cc9a594809c2c379e63eed85ddc67c167b319f5a3df23c5b1/django-sendsms-0.2.3.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "5c66b2cc505ff398e9115b6055eecbd9", "sha256": "ef6511c55ef0b66cb87a955ccfabc947a18aa92a52b2ecb394d863430df66725" }, "downloads": -1, "filename": "django-sendsms-0.3.tar.gz", "has_sig": false, "md5_digest": "5c66b2cc505ff398e9115b6055eecbd9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13138, "upload_time": "2018-04-23T21:40:16", "url": "https://files.pythonhosted.org/packages/d0/b8/bce626f50765bef046fadac6f5d777a83f812cb3aabfb3009bb892e656d5/django-sendsms-0.3.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "552449281713857fa5c9f50c1da78dfd", "sha256": "b9a839d8635fb1c21896be985f59f2ca46040b22085372212dec86224047d202" }, "downloads": -1, "filename": "django-sendsms-0.3.1.tar.gz", "has_sig": false, "md5_digest": "552449281713857fa5c9f50c1da78dfd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13193, "upload_time": "2018-04-24T22:09:09", "url": "https://files.pythonhosted.org/packages/55/20/0863ba94a4e7553c1c8ab4c33d9cf30d84b2c9480caa833458b780061f91/django-sendsms-0.3.1.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "173022c0f61718642ecfd1f2e0744906", "sha256": "8558883e5f9fe7cf6785674c86bc5f93c979adf4e7719eacf181965dac990312" }, "downloads": -1, "filename": "django-sendsms-0.4.tar.gz", "has_sig": false, "md5_digest": "173022c0f61718642ecfd1f2e0744906", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15748, "upload_time": "2019-09-15T00:13:09", "url": "https://files.pythonhosted.org/packages/fd/4f/29127fc0bfc6e8ddfa46bd89d1cd67abed5635f92afeeb18f67dbfd63cea/django-sendsms-0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "173022c0f61718642ecfd1f2e0744906", "sha256": "8558883e5f9fe7cf6785674c86bc5f93c979adf4e7719eacf181965dac990312" }, "downloads": -1, "filename": "django-sendsms-0.4.tar.gz", "has_sig": false, "md5_digest": "173022c0f61718642ecfd1f2e0744906", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15748, "upload_time": "2019-09-15T00:13:09", "url": "https://files.pythonhosted.org/packages/fd/4f/29127fc0bfc6e8ddfa46bd89d1cd67abed5635f92afeeb18f67dbfd63cea/django-sendsms-0.4.tar.gz" } ] }