{ "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 :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Software Development :: Version Control :: Git" ], "description": "# 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/growield/huawei-modem-py-api-client-through-proxy/tree/0.0.1", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/growield/huawei-modem-py-api-client-through-proxy", "keywords": "Huawei,Modem,HTTP API Client,API Client,Router", "license": "", "maintainer": "", "maintainer_email": "", "name": "huawei-modem-py-api-client-through-proxy", "package_url": "https://pypi.org/project/huawei-modem-py-api-client-through-proxy/", "platform": "", "project_url": "https://pypi.org/project/huawei-modem-py-api-client-through-proxy/", "project_urls": { "Download": "https://github.com/growield/huawei-modem-py-api-client-through-proxy/tree/0.0.1", "Homepage": "https://github.com/growield/huawei-modem-py-api-client-through-proxy" }, "release_url": "https://pypi.org/project/huawei-modem-py-api-client-through-proxy/0.0.1/", "requires_dist": null, "requires_python": "", "summary": "huaweisms is a python api client for Huawei Modems.", "version": "0.0.1" }, "last_serial": 5556513, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "8bbf5bb65daa52b33463cf96f97079d1", "sha256": "b1dadb05b010047ed158b31104df2444a58416e1d2515cdea8dd6673c7ccb214" }, "downloads": -1, "filename": "huawei-modem-py-api-client-through-proxy-0.0.1.tar.gz", "has_sig": false, "md5_digest": "8bbf5bb65daa52b33463cf96f97079d1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8035, "upload_time": "2019-07-19T13:36:39", "url": "https://files.pythonhosted.org/packages/49/a3/79102a55cf3e1f8e8749a72e9d75f79b0bfa6641c1dd860932c4a45b01bc/huawei-modem-py-api-client-through-proxy-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8bbf5bb65daa52b33463cf96f97079d1", "sha256": "b1dadb05b010047ed158b31104df2444a58416e1d2515cdea8dd6673c7ccb214" }, "downloads": -1, "filename": "huawei-modem-py-api-client-through-proxy-0.0.1.tar.gz", "has_sig": false, "md5_digest": "8bbf5bb65daa52b33463cf96f97079d1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8035, "upload_time": "2019-07-19T13:36:39", "url": "https://files.pythonhosted.org/packages/49/a3/79102a55cf3e1f8e8749a72e9d75f79b0bfa6641c1dd860932c4a45b01bc/huawei-modem-py-api-client-through-proxy-0.0.1.tar.gz" } ] }