{ "info": { "author": "bhagyarsh dhumal", "author_email": "bhagyarshdhumal@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "usim800\n==========================\n[![image](https://img.shields.io/badge/build-passing-green.svg)](https://pypi.org/project/usim800/)\n[![image](https://img.shields.io/github/license/Bhagyarsh/usim800.svg)](https://pypi.org/project/usim800/)\n[![image](https://img.shields.io/pypi/v/usim800.svg)](https://pypi.org/project/usim800/)\n\nusim800 is a Python driver module for SIM800 GSM/GPRS . Its has easy-to-use api to access GPRS and to send sms . \n\nSupport\n------------\n* raspberry pi\n* Tested on python 3 with orange pi zero and linux machine using (usb to ttl) .\n\nFeatures\n------------\n\nSend Get and post requests(supports HTTP/1.1).\n\nrequests API similar to pythons [Requests](https://github.com/kennethreitz/requests) module.\n\nSend SMS\n\n\n\nInstallation\n------------\n > pip install usim800\n\n\nQuick start :\n------------\n### Import\n\n``` {.sourceCode .python}\n>>> from usim800 import sim800\n>>> import json\n>>> gsm = sim800(baudrate=9600,path=\"/dev/ttyUSB3\")\n```\n### set APN\n\n``` {.sourceCode .python}\n>>> gsm.requests.APN = \"www\"\n```\n### get and post request\n``` {.sourceCode .python}\n>>> gsm.requests.get(url=\"http://my-json-server.typicode.com/typicode/demo/posts\")\n>>> r = gsm.requests\n>>> r.status_code\n'200'\n>>> r.content\nb'[ { \"id\": 1, \"title\": \"Post 1\" }, { \"id\": 2, \"title\": \"Post 2\" }, { \"id\": 3, \"title\": \"Post 3\" }]'\n>>> r.json()\n[[{'id': 1, 'title': 'Post 1'}, {'id': 2, 'title': 'Post 2'}, {'id': 3, 'title': 'Post 3'}]]\n>>> r.IP\n'10.110.188.15'\n>>> data = {\"name\":\"somthing....\"}\n>>> gsm.requests.post(url=\"http://ptsv2.com/t/usim800/post\",data=json.dumps(data))\n'201'\n>>> r.status_code\n'201'\n>>> r.content\nb'Thank you for this dump. I hope you have a lovely day!'\n\n>>> r.IP\n'10.182.199.208'\n```\nSMS\n``` {.sourceCode .python}\n>>> gsm.sms.send(\"8850813167\",\"hi from usim800\")\nTrue\n```\n\nFuture Plan and improvements\n------------\n* better error handling\n* read sms\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Bhagyarsh/usim800l", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "usim800", "package_url": "https://pypi.org/project/usim800/", "platform": "", "project_url": "https://pypi.org/project/usim800/", "project_urls": { "Homepage": "https://github.com/Bhagyarsh/usim800l" }, "release_url": "https://pypi.org/project/usim800/0.0.7/", "requires_dist": [ "pyserial" ], "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "summary": "usim800 is a Python driver module for SIM800 GSM/GPRS .", "version": "0.0.7" }, "last_serial": 4941112, "releases": { "0.0.6": [ { "comment_text": "", "digests": { "md5": "4096eb02e328d1831f3160a14448a49f", "sha256": "7c76f92b9d8a360fd33802c5c66c8f4539fb5bf470b0531391dc5eaa2c50532f" }, "downloads": -1, "filename": "usim800-0.0.6-py3-none-any.whl", "has_sig": false, "md5_digest": "4096eb02e328d1831f3160a14448a49f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 9868, "upload_time": "2019-03-09T16:34:18", "url": "https://files.pythonhosted.org/packages/27/56/639291377c4cdff69412a9d3efd10fda6fc0de4c8761e5ac71f2acc4d557/usim800-0.0.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4865c5f5402c368eddba44b159c870a4", "sha256": "b19c364ca6fc929577533b3ac2be5014a47569b0b5dfc957f9a415baefe0bad6" }, "downloads": -1, "filename": "usim800-0.0.6.tar.gz", "has_sig": false, "md5_digest": "4865c5f5402c368eddba44b159c870a4", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 7257, "upload_time": "2019-03-09T16:34:20", "url": "https://files.pythonhosted.org/packages/4e/f7/e4a8e690cfa0bf0571065a958fe44eb077bb26033878c4c91ccb8826e973/usim800-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "05df7c1e49522f2704eb460a024f8057", "sha256": "6c85e369915c2c287e17ca4798a97525cf338088075c7f902641d9fb64f192be" }, "downloads": -1, "filename": "usim800-0.0.7-py3-none-any.whl", "has_sig": false, "md5_digest": "05df7c1e49522f2704eb460a024f8057", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 9922, "upload_time": "2019-03-14T18:26:17", "url": "https://files.pythonhosted.org/packages/72/57/2b613ba061df7ee4146ab917e2769e59a93c5a8ac7eb6454db69d5fa6a09/usim800-0.0.7-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "57b9927fc916d527e1739ff174bed523", "sha256": "80ed47565e846d145e12f2640350cdef4dfaa537b6b73a0622c8c5311173f120" }, "downloads": -1, "filename": "usim800-0.0.7.tar.gz", "has_sig": false, "md5_digest": "57b9927fc916d527e1739ff174bed523", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 7295, "upload_time": "2019-03-14T18:26:19", "url": "https://files.pythonhosted.org/packages/31/88/5c10c48f9a7b5798c6bc403eb74738af6daea3c8184b0d78c23b0508a6f7/usim800-0.0.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "05df7c1e49522f2704eb460a024f8057", "sha256": "6c85e369915c2c287e17ca4798a97525cf338088075c7f902641d9fb64f192be" }, "downloads": -1, "filename": "usim800-0.0.7-py3-none-any.whl", "has_sig": false, "md5_digest": "05df7c1e49522f2704eb460a024f8057", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 9922, "upload_time": "2019-03-14T18:26:17", "url": "https://files.pythonhosted.org/packages/72/57/2b613ba061df7ee4146ab917e2769e59a93c5a8ac7eb6454db69d5fa6a09/usim800-0.0.7-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "57b9927fc916d527e1739ff174bed523", "sha256": "80ed47565e846d145e12f2640350cdef4dfaa537b6b73a0622c8c5311173f120" }, "downloads": -1, "filename": "usim800-0.0.7.tar.gz", "has_sig": false, "md5_digest": "57b9927fc916d527e1739ff174bed523", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 7295, "upload_time": "2019-03-14T18:26:19", "url": "https://files.pythonhosted.org/packages/31/88/5c10c48f9a7b5798c6bc403eb74738af6daea3c8184b0d78c23b0508a6f7/usim800-0.0.7.tar.gz" } ] }