{ "info": { "author": "DrMartiner", "author_email": "DrMartiner@GMail.Com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "=====\nDajngo SMS Aero\n=====\n\nSimple Django application for send SMS via smsaero.ru\n\n=====\nQuick start\n=====\n\n1. Add \"smsaero\" to your INSTALLED_APPS setting like this::\n\n INSTALLED_APPS = (\n ...\n 'smsaero',\n 'django_rq', # if you want use the queue of Redis\n )\n\n # if you want use the queue of Redis\n RQ_QUEUES = {\n 'default': {\n 'HOST': 'localhost',\n 'PORT': 6379,\n 'DB': 0,\n 'PASSWORD': '',\n },\n }\n\n2. Define SMSAERO_USER and SMSAERO_PASSWORD (raw password) or SMSAERO_PASSWORD_MD5 (hash of password) at settings.py::\n\n SMSAERO_USER = 'username'\n SMSAERO_PASSWORD = '123'\n # or\n SMSAERO_PASSWORD_MD5 = '202cb962ac59075b964b07152d234b70'\n\n\n3. Run ```python manage.py syncdb``` to create the smsaero models.\n\n4. Start the development server and visit http://127.0.0.1:8000/admin/\n to create a smsaero (you'll need the Admin app enabled).\n\n=====\nUsage\n=====\n\nSend SMS, check the SMS status, get account balance and get signatures::\n\n from smsaero.urils import send_sms\n from smsaero.urils import get_sms_status\n from smsaero.urils import get_balance\n from smsaero.urils import get_signatures_name\n from smsaero.models import SMSMessage\n \n # Send SMS\n sms = send_sms('+79998881122', 'Some text...') # sms has SMSMessage type\n print sms.sms_id # id of accepted message\n print sms.get_status_display() # status\n \n # Check SMS status\n status = get_sms_status(sms.sms_id) # returned string\n \n # Get balance of accaunt\n print get_balance() # returned the rubbles\n \n # Get array of signature names\n print get_signatures_name() # Array of string\n\nRunning workers::\n python manage.py rqworker default\n\nAsync send SMS::\n\n from smsaero.urils import send_sms_async\n from smsaero.urils import get_sms_status_async\n from smsaero.urils import get_balance_async\n from smsaero.urils import get_signatures_name_async\n from smsaero.models import SMSMessage\n\n # Send SMS\n job = send_sms_async('+79998881122', 'Some text...')\n job.result # result has SMSMessage type\n\n job = get_sms_status_async(sms.sms_id)\n job.result # return string\n\n job = get_balance_asunc()\n job.result # returned the rubbles\n\n job = get_signatures_name()\n job.result # Array of string", "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/drmartiner/django-smsaero/", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "django-smsaero", "package_url": "https://pypi.org/project/django-smsaero/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-smsaero/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/drmartiner/django-smsaero/" }, "release_url": "https://pypi.org/project/django-smsaero/0.9.5/", "requires_dist": null, "requires_python": null, "summary": "A simple Django app for send SMS via smsaero.ru.", "version": "0.9.5" }, "last_serial": 914749, "releases": { "0.9.2": [ { "comment_text": "", "digests": { "md5": "fca2fbe9e0cc095095361972d0bd33d2", "sha256": "dc4aaa3eb7e7c6f3428977c0ebd469bc516c98df4c90fda556187515a9277be1" }, "downloads": -1, "filename": "django-smsaero-0.9.2.tar.gz", "has_sig": false, "md5_digest": "fca2fbe9e0cc095095361972d0bd33d2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6379, "upload_time": "2013-06-14T06:54:50", "url": "https://files.pythonhosted.org/packages/3d/7a/d305ca5620a3379ac4d4180c6561be4a78091f671002bbb5e2ddc765f953/django-smsaero-0.9.2.tar.gz" } ], "0.9.3": [ { "comment_text": "", "digests": { "md5": "45cfdce2d8c221c859c4bd3bcacc17fc", "sha256": "24c7e1e4ce618b1042876ec8b28710e2a974393a2050fc2facd00f424d40c2a4" }, "downloads": -1, "filename": "django-smsaero-0.9.3.macosx-10.8-intel.exe", "has_sig": false, "md5_digest": "45cfdce2d8c221c859c4bd3bcacc17fc", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 72811, "upload_time": "2013-10-17T10:13:26", "url": "https://files.pythonhosted.org/packages/0f/f1/6e8927c502aa3efcc5a6ee156bc5750d2a23dc6d95dd6d5a01bcbcb88c68/django-smsaero-0.9.3.macosx-10.8-intel.exe" }, { "comment_text": "", "digests": { "md5": "122dd9223dd4a8bf1b42f907f19b3d43", "sha256": "16dc332bc98a4c78b0817f6a7e4fd2d5fb075d9d676a98cb621be14af9673687" }, "downloads": -1, "filename": "django-smsaero-0.9.3.tar.gz", "has_sig": false, "md5_digest": "122dd9223dd4a8bf1b42f907f19b3d43", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6382, "upload_time": "2013-10-17T10:13:22", "url": "https://files.pythonhosted.org/packages/bc/98/301170761c649c54c6e74d350c7f7d6c361e2854ab60aa6c2069a542afd2/django-smsaero-0.9.3.tar.gz" } ], "0.9.4": [ { "comment_text": "", "digests": { "md5": "63a8640cdd8b05b5f8e94fa58846c637", "sha256": "3b8f52251b0b2228625a50e5ac617a692b9f20bb7a184b8170c4efa9fa6ff23e" }, "downloads": -1, "filename": "django-smsaero-0.9.4.macosx-10.8-intel.exe", "has_sig": false, "md5_digest": "63a8640cdd8b05b5f8e94fa58846c637", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 72772, "upload_time": "2013-11-08T18:24:11", "url": "https://files.pythonhosted.org/packages/8e/65/b1372fe07702a20b8ed7b22b72ac8b913ea8307caf8f246f554239be8577/django-smsaero-0.9.4.macosx-10.8-intel.exe" }, { "comment_text": "", "digests": { "md5": "30f77728587c280ce92a0a373e7d22e7", "sha256": "87e7332ef59364723bed7509527c485ef2a90c0d82eaebcfab231ad3ef881b6c" }, "downloads": -1, "filename": "django-smsaero-0.9.4.tar.gz", "has_sig": false, "md5_digest": "30f77728587c280ce92a0a373e7d22e7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6348, "upload_time": "2013-11-08T18:24:09", "url": "https://files.pythonhosted.org/packages/36/43/9352de8d47f069369efeb73d77dce61d01b63922638ec23b7fc49a6a7ff8/django-smsaero-0.9.4.tar.gz" } ], "0.9.5": [ { "comment_text": "", "digests": { "md5": "1e9dd0f1191188329e30ffe6c0b0767e", "sha256": "d1609344b53137ee570bb4fb5f6982233adbba0f04394d0bcbaec479eb6fa0eb" }, "downloads": -1, "filename": "django-smsaero-0.9.5.macosx-10.8-intel.exe", "has_sig": false, "md5_digest": "1e9dd0f1191188329e30ffe6c0b0767e", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 72778, "upload_time": "2013-11-08T18:28:24", "url": "https://files.pythonhosted.org/packages/7b/2e/aaad5b802a9d130db7491217eb3261c9bf3db1c781c0d7c6d3370ea997a2/django-smsaero-0.9.5.macosx-10.8-intel.exe" }, { "comment_text": "", "digests": { "md5": "4cb8536430eaf08819c063a8a0a9bb74", "sha256": "c789227dc048c9711f3ee60bc9e415796cdb8371f663db15adaf1876ac235207" }, "downloads": -1, "filename": "django-smsaero-0.9.5.tar.gz", "has_sig": false, "md5_digest": "4cb8536430eaf08819c063a8a0a9bb74", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6353, "upload_time": "2013-11-08T18:28:22", "url": "https://files.pythonhosted.org/packages/e9/34/a5bf501ee5ce782c09abb745c683c631a5361bc7069ae16c6008d16b25e2/django-smsaero-0.9.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1e9dd0f1191188329e30ffe6c0b0767e", "sha256": "d1609344b53137ee570bb4fb5f6982233adbba0f04394d0bcbaec479eb6fa0eb" }, "downloads": -1, "filename": "django-smsaero-0.9.5.macosx-10.8-intel.exe", "has_sig": false, "md5_digest": "1e9dd0f1191188329e30ffe6c0b0767e", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 72778, "upload_time": "2013-11-08T18:28:24", "url": "https://files.pythonhosted.org/packages/7b/2e/aaad5b802a9d130db7491217eb3261c9bf3db1c781c0d7c6d3370ea997a2/django-smsaero-0.9.5.macosx-10.8-intel.exe" }, { "comment_text": "", "digests": { "md5": "4cb8536430eaf08819c063a8a0a9bb74", "sha256": "c789227dc048c9711f3ee60bc9e415796cdb8371f663db15adaf1876ac235207" }, "downloads": -1, "filename": "django-smsaero-0.9.5.tar.gz", "has_sig": false, "md5_digest": "4cb8536430eaf08819c063a8a0a9bb74", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6353, "upload_time": "2013-11-08T18:28:22", "url": "https://files.pythonhosted.org/packages/e9/34/a5bf501ee5ce782c09abb745c683c631a5361bc7069ae16c6008d16b25e2/django-smsaero-0.9.5.tar.gz" } ] }