{ "info": { "author": "Pablo Santa Cruz, Mkhanyisi Madlavana", "author_email": "pablo@roshka.com.py, mkhanyisi@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: MacOS", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Software Development :: Version Control :: Git" ], "description": "[![Build Status](https://travis-ci.org/dopstar/huawei-modem-python-api-client.svg?branch=master)](https://travis-ci.org/dopstar/huawei-modem-python-api-client) [![Python Version](https://img.shields.io/pypi/pyversions/huawei-modem-api-client.svg)](https://pypi.python.org/pypi/huawei-modem-api-client) [![PyPI Status](https://img.shields.io/pypi/v/huawei-modem-api-client.svg)](https://pypi.python.org/pypi/huawei-modem-api-client) [![PyPI Downloads](https://img.shields.io/pypi/dm/huawei-modem-api-client.svg)](https://pypi.python.org/pypi/huawei-modem-api-client) [![Code Coverage](https://img.shields.io/coveralls/github/dopstar/huawei-modem-python-api-client.svg)](https://coveralls.io/github/dopstar/huawei-modem-python-api-client) [![Licence](https://img.shields.io/github/license/pablo/huawei-modem-python-api-client.svg)](https://raw.githubusercontent.com/pablo/huawei-modem-python-api-client/master/LICENSE.md)\n\n# Python HTTP API client for Huawei Modems\n\nThis is a python library to interact with a Huawei modem over HTTP API.\n\nThe library has been tested on these devices:\n* E5180\n* E8372\n* B315\n\nPlease let me know if you tested it successfully with other modems as well.\n\n## Currently Supported\n\n* webserver\n * get_session_token_info: gets a session token to use\n* user\n * login: creates a new session on the HTTP API\n* sms\n * get_sms: get information from boxes: inbox, outbox\n * send_sms: sends an SMS through device's modem\n * delete_sms: deletes an sms from one of their boxes\n * sms_count: get the sms count on each box\n* ussd\n * status: get status of ussd. This will tell you if there are ussd messages available to read\n * send: sends a ussd message\n * get: retrieves a ussd message\n* wlan:\n * get_connected_hosts: gets a list of connected devices\n * block_host: blocks the device from network\n * unblock_host: unblock device on network\n * get_blocked_hosts: gets a list of blocked devices\n * is_host_blocked: checks if device is blocked\n* dialup:\n * connect_mobile: enables mobile (ie LTE / 4G / 3G / etc) network\n * disconnect_mobile: disables mobile network\n * get_mobile_status: checks the mobile connection status\n* device:\n * reboot: reboots the modem\n\n### Prerequisites\n\nOnly [`requests`](https://github.com/requests/requests) library (and its dependencies) is required.\n\nThis is `requirements.txt` content:\n\n```\ncertifi==2018.11.29\nchardet==3.0.4\nidna>=2.6\nrequests>=2.0.0\nurllib3>=1.22\n```\n\n### Installing\n\n```bash\npip install huawei-modem-api-client\n```\n\n### Example\n```python\nimport huaweisms.api.user\nimport huaweisms.api.wlan\nimport huaweisms.api.sms\n\nctx = huaweisms.api.user.quick_login(\"myusername\", \"mypassword\")\nprint(ctx)\n# output: \n\n# sending sms\nhuaweisms.api.sms.send_sms(\n ctx,\n 'phone-number',\n 'this is the sms message'\n)\n\n# connected devices\ndevice_list = huaweisms.api.wlan.get_connected_hosts(ctx)\n\n```\n\nNote: The default modem host is assumed to be `192.168.8.1`. If that is not the case for you, you can specify your modem ip as follows:\n\n```python\nimport huaweisms.api.user\nctx = huaweisms.api.user.quick_login(\"myusername\", \"mypassword\", modem_host='10.11.12.13')\nprint(ctx)\n\n#output: \n```\n\n## Built With\n\n* [requests](https://github.com/requests/requests) - Python HTTP Requests for Humans\u2122\n\n## Contributing\n\nSend me a PM if you want to contribute. \n\n## Authors\n\n* **Pablo Santa Cruz** - *Owner* - [pablo](https://github.com/pablo)\n* **Mka Madlavana** - *Collaborator* - [dopstar](https://github.com/dopstar)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/dopstar/huawei-modem-python-api-client/tarball/1.0.8", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/pablo/huawei-modem-python-api-client", "keywords": "Huawei,Modem,HTTP API Client,API Client,Router", "license": "", "maintainer": "", "maintainer_email": "", "name": "huawei-modem-api-client", "package_url": "https://pypi.org/project/huawei-modem-api-client/", "platform": "", "project_url": "https://pypi.org/project/huawei-modem-api-client/", "project_urls": { "Download": "https://github.com/dopstar/huawei-modem-python-api-client/tarball/1.0.8", "Homepage": "https://github.com/pablo/huawei-modem-python-api-client" }, "release_url": "https://pypi.org/project/huawei-modem-api-client/1.0.8/", "requires_dist": null, "requires_python": "", "summary": "huaweisms is a python api client for Huawei Modems.", "version": "1.0.8" }, "last_serial": 5914012, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "590d28e21db394e1105d21e54d46f9af", "sha256": "cf23fc736a184fef5d1ea165466a5a69b8bc544d919597b4db695f9ea0401557" }, "downloads": -1, "filename": "huawei-modem-api-client-1.0.0.tar.gz", "has_sig": false, "md5_digest": "590d28e21db394e1105d21e54d46f9af", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5590, "upload_time": "2019-02-11T23:23:18", "url": "https://files.pythonhosted.org/packages/40/c6/5d960e0c3f03b980f54c093507c4d829dfd60254ed2e4c830028f29f912d/huawei-modem-api-client-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "028a1a57d26a907e6a753e02096f553e", "sha256": "42b5d755af1e3503e3ca51f6bc08e0c72b28277f99c2ce7fc8f0ca436a3e0e1b" }, "downloads": -1, "filename": "huawei-modem-api-client-1.0.1.tar.gz", "has_sig": false, "md5_digest": "028a1a57d26a907e6a753e02096f553e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7836, "upload_time": "2019-02-16T23:11:13", "url": "https://files.pythonhosted.org/packages/bb/ef/097b9e616a89459f41ec41bb9141ea5e643db3538ad7720cae88dc694dba/huawei-modem-api-client-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "140ab6dbb6bbe199a9f47262500d01ba", "sha256": "49c5d4f06c5e936b07dcbe01463b09ee7bd513cb46e74f0dc3f660201e5e9d48" }, "downloads": -1, "filename": "huawei-modem-api-client-1.0.2.tar.gz", "has_sig": false, "md5_digest": "140ab6dbb6bbe199a9f47262500d01ba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7201, "upload_time": "2019-02-26T20:10:41", "url": "https://files.pythonhosted.org/packages/21/cf/6d5369f5f9f69c520c051f32d03142dce57decffdf96c11f9335c2160037/huawei-modem-api-client-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "1de4070779b47d3c35d8c86e10d2f5fe", "sha256": "c3214672ade85cb72dc61864160b841df649cefe271c25e196fc7dc745eb0254" }, "downloads": -1, "filename": "huawei-modem-api-client-1.0.3.tar.gz", "has_sig": false, "md5_digest": "1de4070779b47d3c35d8c86e10d2f5fe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8316, "upload_time": "2019-03-07T17:47:47", "url": "https://files.pythonhosted.org/packages/89/06/205846d6d06a3b19e3f8b6d556e1324ab03dad5dd95b07771d5c0eb21c4d/huawei-modem-api-client-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "fedd8f23c6f1afa632364c44a0858fdd", "sha256": "bb75885f08cecfe55f71d7bdf717ffe5c9147d8697fcca2dffcf14e7b828d7cd" }, "downloads": -1, "filename": "huawei-modem-api-client-1.0.4.tar.gz", "has_sig": false, "md5_digest": "fedd8f23c6f1afa632364c44a0858fdd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7691, "upload_time": "2019-03-10T14:48:51", "url": "https://files.pythonhosted.org/packages/d5/83/e0748b2d0a5288bc35cbce385d526255dadecfb2b70778d28b84017b1d1d/huawei-modem-api-client-1.0.4.tar.gz" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "2f62e29563d70e7636b9c5e8d26f5fd8", "sha256": "d10d8bb15f24eb23c6c8b3a1e93e5505c2ca3be71b22899650939a5f7feb651c" }, "downloads": -1, "filename": "huawei-modem-api-client-1.0.5.tar.gz", "has_sig": false, "md5_digest": "2f62e29563d70e7636b9c5e8d26f5fd8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7715, "upload_time": "2019-03-10T17:46:25", "url": "https://files.pythonhosted.org/packages/8f/2b/3f93068c6ab0e9196c132f96709c5329584640f6ad7ecdad079ab5f4b680/huawei-modem-api-client-1.0.5.tar.gz" } ], "1.0.6": [ { "comment_text": "", "digests": { "md5": "95ddda71a7f8155bad0b292b64a3d0e9", "sha256": "04288f030fd753d664e7ebdbe9ebe42aa66d000789080ed9bc47d534c0425da3" }, "downloads": -1, "filename": "huawei-modem-api-client-1.0.6.tar.gz", "has_sig": false, "md5_digest": "95ddda71a7f8155bad0b292b64a3d0e9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9427, "upload_time": "2019-06-22T13:06:31", "url": "https://files.pythonhosted.org/packages/88/1f/71bf87bc7057ef6fab30fa1f7e6c6ceaed5d5c4333f2ccda42dec48857ce/huawei-modem-api-client-1.0.6.tar.gz" } ], "1.0.7": [ { "comment_text": "", "digests": { "md5": "66c289391e5fe6dc10199bc765e1457f", "sha256": "4622a7a212b5c286d67fd51d378c0ccf3355d6b519bdcfe196c3055711937110" }, "downloads": -1, "filename": "huawei-modem-api-client-1.0.7.tar.gz", "has_sig": false, "md5_digest": "66c289391e5fe6dc10199bc765e1457f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9785, "upload_time": "2019-10-01T17:50:05", "url": "https://files.pythonhosted.org/packages/fe/95/8e77e38dd58fe170ff7c8f5264ce02973070c79c434b30e43b6d910079be/huawei-modem-api-client-1.0.7.tar.gz" } ], "1.0.8": [ { "comment_text": "", "digests": { "md5": "5b64c6545a3feb87a318175667a98b46", "sha256": "29e5377a38ac65e8f36efa09bcd707d5e0a1b0e1a2017f7a3d42cc610029b45f" }, "downloads": -1, "filename": "huawei-modem-api-client-1.0.8.tar.gz", "has_sig": false, "md5_digest": "5b64c6545a3feb87a318175667a98b46", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9801, "upload_time": "2019-10-01T17:56:42", "url": "https://files.pythonhosted.org/packages/3d/53/016bf241cb0eff2a4500af4c09e557d8bbe6643193bf8c9f48d2b07f7c1a/huawei-modem-api-client-1.0.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5b64c6545a3feb87a318175667a98b46", "sha256": "29e5377a38ac65e8f36efa09bcd707d5e0a1b0e1a2017f7a3d42cc610029b45f" }, "downloads": -1, "filename": "huawei-modem-api-client-1.0.8.tar.gz", "has_sig": false, "md5_digest": "5b64c6545a3feb87a318175667a98b46", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9801, "upload_time": "2019-10-01T17:56:42", "url": "https://files.pythonhosted.org/packages/3d/53/016bf241cb0eff2a4500af4c09e557d8bbe6643193bf8c9f48d2b07f7c1a/huawei-modem-api-client-1.0.8.tar.gz" } ] }