{ "info": { "author": "Matthew Schinckel", "author_email": "matt@schinckel.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Communications", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "django-sms-gateway\n====================\n\nEasily send SMS messages through a web gateway from django.\n\nThis code is quite stable, and has been in use for about 2 years, with thousands of messages sent per week, to a variety of gateways, and a number of different countries.\n\nInstallation\n-------------\n\n * Install the package into your project's virtual environment:\n \n ``pip install django-sms-gateway``\n\n * Add ``sms`` to your project's ``settings.INSTALLED_APPS``.\n\n * Run ``./manage.py migrate`` or ``./manage.py syncdb``\n \nConfiguration\n--------------\n\nThere are three django models: ``sms.Message``, ``sms.Gateway``, and ``sms.Reply``.\n\nBefore you are able to send any messages, you will need to configure at least one gateway. There is some sample data for some gateway providers. You can adapt one of these for your own purposes.\n\nUsage\n------\n\nCreate a message, ready to be sent::\n\n msg = Message.objects.create(\n recipient_number=\"123456789\", \n content=\"Test message\",\n sender=user,\n billee=user\n )\n\nNote that you must provide at least these fields. ``recipient_number`` must include the international prefix (or your gateway must be configured to add it). ``content`` should be ASCII, some gateways reject unicode. ``sender`` must be an ``auth.User``, but ``billee`` may be any object.\n\nThis does not send the message::\n\n >>> msg\n \n\nTo send it, you need to provide a gateway::\n\n msg.send(gateway)\n\n\nStatus/Reply Callback\n----------------------\n\nIf your gateway supports it, you can have it hit your server whenever there are status updates on any message. You can use the included views, in your urlpatterns::\n\n urlpatterns = patterns('',\n (r'^sms/', include('sms.urls')),\n )\n\nThis would mean that you would need to enter something like::\n\n http://example.com/sms/status_postback/\n\nIn your gateway's settings.\n\nThe status can be updated, and a status message can be provided. This is all parsed using the content of the status update request to your server, and the status_mapping data.\n\nThe same applies for replies, if you have a 2-way gateway, but using ``/sms/reply_postback/`` instead.\n\nReply callback functions\n~~~~~~~~~~~~~~~~~~~~~~~~~\n\nWhen you send a message, you can store a ``reply_callback`` function in the object. This function will be called, with the reply object passed in as the parameter. The reply object has access to it's original message (as well as it could be matched).\n\n\nBilling\n--------\n\nSince SMSs are generally billable through web gateways, there is the requirement that a billee is provided, and there is a billed flag on each message. This allows you to bill after-the-fact. If you wanted to only allow sending of messages to people with credits remaining, then you would need to validate this before attempting to send.\n\nSince a message may be longer than one segment, there is a helper property on ``sms.Message``, ``.length``, which calculates how many segments would be required.\n\nFuture\n--------\nCurrently, all sending happens in-process. There is a preliminary celery task, but it has not been extensively tested as yet.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://bitbucket.org/schinckel/django-sms-gateway", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "django-sms-gateway", "package_url": "https://pypi.org/project/django-sms-gateway/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-sms-gateway/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://bitbucket.org/schinckel/django-sms-gateway" }, "release_url": "https://pypi.org/project/django-sms-gateway/1.2.1/", "requires_dist": null, "requires_python": null, "summary": "django generic sms through http gateway", "version": "1.2.1" }, "last_serial": 790684, "releases": { "0.1.2": [], "1.0.0": [ { "comment_text": "", "digests": { "md5": "cb5d63c794d0594b0a5fea0126aafd77", "sha256": "7b86d85a6051feba1f0040644316f6e3555b852fa1538275e87ec33aeb50c557" }, "downloads": -1, "filename": "django-sms-gateway-1.0.0.tar.gz", "has_sig": false, "md5_digest": "cb5d63c794d0594b0a5fea0126aafd77", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10360, "upload_time": "2012-07-27T06:13:38", "url": "https://files.pythonhosted.org/packages/af/bd/dc0c2839b3f197b7def4583c7a2e4c7a69c9c247ea53993eaa344f6b33ff/django-sms-gateway-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "9a8a3de60ed309d9f1efce7eb2214322", "sha256": "fd5de5847c9a130ec9ee391fcca41314113f1c7f62ccf94596fbc62653557ecf" }, "downloads": -1, "filename": "django-sms-gateway-1.0.1.tar.gz", "has_sig": false, "md5_digest": "9a8a3de60ed309d9f1efce7eb2214322", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10566, "upload_time": "2012-07-27T06:17:27", "url": "https://files.pythonhosted.org/packages/df/c6/f909d51787a376d5a5bd60e2c1ed496243ac8629050e3511597d66d12759/django-sms-gateway-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "9eb5458fccda8a7ed69fbb5b0dc5ab5f", "sha256": "b36a2d43a3fa45e682770e0b0d21b445628d264c8a1b75b6b2f8f62f739e23bf" }, "downloads": -1, "filename": "django-sms-gateway-1.0.2.tar.gz", "has_sig": false, "md5_digest": "9eb5458fccda8a7ed69fbb5b0dc5ab5f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11611, "upload_time": "2012-08-27T02:25:17", "url": "https://files.pythonhosted.org/packages/ee/06/b6452afcb0b7aeb2c755ce222acc153a74bcd8e23b2a875504c68381a065/django-sms-gateway-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "3ac46020612d9a1f205ba76bf9ac57ad", "sha256": "bea4f469c044c381aa711239ae3031df88bc58988e252fbcf3f31bdcb1525d7e" }, "downloads": -1, "filename": "django-sms-gateway-1.0.3.tar.gz", "has_sig": false, "md5_digest": "3ac46020612d9a1f205ba76bf9ac57ad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21969, "upload_time": "2012-11-14T00:45:18", "url": "https://files.pythonhosted.org/packages/8a/15/8464144d33e6f8db135a35ad709e09cc8b3e9cb2b996da295f378405a9a7/django-sms-gateway-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "86fa3bbeb9e8b0936ed974b4007a94c0", "sha256": "4fabe2bf13edf844ee92790e4ec4702785ef1e83567caafdd29c778c6130960e" }, "downloads": -1, "filename": "django-sms-gateway-1.0.4.tar.gz", "has_sig": false, "md5_digest": "86fa3bbeb9e8b0936ed974b4007a94c0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22295, "upload_time": "2012-11-23T04:08:54", "url": "https://files.pythonhosted.org/packages/78/4b/651da38b5480322346ba4c6d25817084032e482eb5bbf296797eb8dca39b/django-sms-gateway-1.0.4.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "fd013ad3675915c87ee2968b65688d37", "sha256": "9d5b42654577362635ac4ca02199a32038bb776ef6e3db0255171dad1688ca50" }, "downloads": -1, "filename": "django-sms-gateway-1.1.0.tar.gz", "has_sig": false, "md5_digest": "fd013ad3675915c87ee2968b65688d37", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24537, "upload_time": "2012-11-23T05:50:41", "url": "https://files.pythonhosted.org/packages/05/78/2e30d240314e0cfb0a4c17fe42e73a8a24ef72db0b18fa181c8a78004409/django-sms-gateway-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "1d0ee04c062742294bbf535cc3f6f47a", "sha256": "faa94fd5df025751ae086ac109dfb144846468c4a9435240ad9746f793779abc" }, "downloads": -1, "filename": "django-sms-gateway-1.1.1.tar.gz", "has_sig": false, "md5_digest": "1d0ee04c062742294bbf535cc3f6f47a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24556, "upload_time": "2012-11-23T06:45:15", "url": "https://files.pythonhosted.org/packages/62/44/5c35d3723dc8570fabb932db05d1414b419a0a9875dba894a81c38d2ee7e/django-sms-gateway-1.1.1.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "36c4f2da68a3713a4b5d86b566ef6ac6", "sha256": "f4621d00adc34571d419ef19bc39588b50faa18922178138ce33474f830cb07f" }, "downloads": -1, "filename": "django-sms-gateway-1.1.2.tar.gz", "has_sig": false, "md5_digest": "36c4f2da68a3713a4b5d86b566ef6ac6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24569, "upload_time": "2012-11-23T06:49:05", "url": "https://files.pythonhosted.org/packages/50/d0/9b5d4ca3e1ffcdaa5e8f7ee612be4ca06cc52e8bc07e850755711f4b4f9d/django-sms-gateway-1.1.2.tar.gz" } ], "1.1.3": [ { "comment_text": "", "digests": { "md5": "153ed48010b8121b2d597585a5817036", "sha256": "1923898fee7960f80edd158b7d688eb5b1b2af9a81c2035f9fd39179f3beddcb" }, "downloads": -1, "filename": "django-sms-gateway-1.1.3.tar.gz", "has_sig": false, "md5_digest": "153ed48010b8121b2d597585a5817036", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24604, "upload_time": "2012-11-23T07:08:04", "url": "https://files.pythonhosted.org/packages/10/4e/9d338cf6d565d1a3a6c78dcbef35b1f0c2669bd94635e6d8b69d67144f5e/django-sms-gateway-1.1.3.tar.gz" } ], "1.1.4": [ { "comment_text": "", "digests": { "md5": "b380b848b404b6283197ce1f2e720a4d", "sha256": "23ded0a02a563387662d0626bb79ac612f6b60917f3a8d431fc75f3908094e9d" }, "downloads": -1, "filename": "django-sms-gateway-1.1.4.tar.gz", "has_sig": false, "md5_digest": "b380b848b404b6283197ce1f2e720a4d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24614, "upload_time": "2012-11-26T05:44:05", "url": "https://files.pythonhosted.org/packages/30/1c/3063683934eae0c5340dbeec652bdc3134e2bebc6ed27c134e75641ac5c1/django-sms-gateway-1.1.4.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "823f9fcbb4eb77c324b4b89dda4f49e7", "sha256": "19cbf4f601c1b53dd2edf3cb95e9275d57dec8613af448620eacfda4f34dcfe4" }, "downloads": -1, "filename": "django-sms-gateway-1.2.0.tar.gz", "has_sig": false, "md5_digest": "823f9fcbb4eb77c324b4b89dda4f49e7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26455, "upload_time": "2012-11-28T04:38:28", "url": "https://files.pythonhosted.org/packages/00/67/c1571aea09192f01e9fd2df1497e0e11fc52b5f43c2ad3c3a3b69c58487b/django-sms-gateway-1.2.0.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "bcedf441925ab6b7d454de6a095d784f", "sha256": "77863bf5042104543c4653ea7e501032010a67662f081b97a5989488d57b67ba" }, "downloads": -1, "filename": "django-sms-gateway-1.2.1.tar.gz", "has_sig": false, "md5_digest": "bcedf441925ab6b7d454de6a095d784f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26769, "upload_time": "2012-12-03T05:43:20", "url": "https://files.pythonhosted.org/packages/b9/49/50676bc87f9f62b72933b0d371f2b680a30d5ea1416281990d15b21e544a/django-sms-gateway-1.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bcedf441925ab6b7d454de6a095d784f", "sha256": "77863bf5042104543c4653ea7e501032010a67662f081b97a5989488d57b67ba" }, "downloads": -1, "filename": "django-sms-gateway-1.2.1.tar.gz", "has_sig": false, "md5_digest": "bcedf441925ab6b7d454de6a095d784f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26769, "upload_time": "2012-12-03T05:43:20", "url": "https://files.pythonhosted.org/packages/b9/49/50676bc87f9f62b72933b0d371f2b680a30d5ea1416281990d15b21e544a/django-sms-gateway-1.2.1.tar.gz" } ] }