{ "info": { "author": "Cyrus Liu", "author_email": "liuxingran97@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "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": "
\n\nA simple SDK for HDU.\n
\n\n\n---\n\nhdu-api \u662f\u4e00\u4e2a\u96c6\u7ed3 HDU \u6240\u6709\u6559\u52a1\u7ba1\u7406\u670d\u52a1\u7684 SDK\uff0c\u63d0\u4f9b\u4e86\u4e00\u5361\u901a\u670d\u52a1\u3001\u8003\u8bd5\u3001\u8bfe\u8868\u3001\u9009\u8bfe\u548c\u4e00\u4e9b\u516c\u5171\u4fe1\u606f\u5982\u7a7a\u95f2\u6559\u5ba4\u3001\u4e0a\u8bfe\u65f6\u95f4\u7b49\u4fe1\u606f\u7684 API\u3002 hdu-api \u4e3b\u8981\u57fa\u4e8e Requests \u5e93\u548c Beautiful Soup \u5e93\u5199\u6210\u3002\n\n## \u7279\u6027\n\n* \u652f\u6301\u4e00\u5361\u901a\u670d\u52a1\u7684\u4fe1\u606f\u67e5\u8be2\n* \u652f\u6301\u6559\u52a1\u7ba1\u7406\u7cfb\u7edf\u7684\u8003\u8bd5\u3001\u8bfe\u7a0b\u7b49\u4fe1\u606f\u67e5\u8be2\n* \u652f\u6301\u5b66\u751f\u7ba1\u7406\u7cfb\u7edf\u7684\u4fe1\u606f\u67e5\u8be2\n* \u652f\u6301 ihdu PC \u7248\u548c\u624b\u673a\u7248\u7684\u4fe1\u606f\u67e5\u8be2\n* \u6613\u7528\uff0c\u53cb\u597d\u7684 API\n* \u57fa\u4e8e requests \u5e93\uff0c\u652f\u6301\u6bcf\u4e2a\u7f51\u7ad9\u7684 session \u4f7f\u7528\u548c\u7ba1\u7406\uff0c\u91cd\u7528\u6027\u9ad8\n* \u81ea\u5b9a\u4e49\uff0c\u5bf9\u8fd4\u56de\u6570\u636e\u8fdb\u884c\u81ea\u5b9a\u4e49\u5316\n\n## \u5b89\u88c5\n\n\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u5b89\u88c5\uff0c\u5982 pip:\n\n```text\npip install hdu-api\n```\n\n## \u5feb\u901f\u5f00\u59cb\n\n```text\n>>> import hdu_api\n>>> hdu = hdu_api.HDU('\u5b66\u53f7', '\u5bc6\u7801')\n>>> client = hdu.create()\n>>> client.exam.schedule_current()\n[{'classroom': '\u7b2c12\u6559\u7814\u697c201',\n 'course_name': '\u64cd\u4f5c\u7cfb\u7edf\uff08\u7532\uff09',\n 'exam_time': '2019\u5e741\u670817\u65e5(09:00-11:00)',\n 'exam_type': '',\n 'seat': '10',\n 'select_code': '(2018-2019-1)-A0507050-06018-1',\n 'staff_name': 'xxx'},\n\n ...\n\n {'classroom': '\u7b2c6\u6559\u7814\u697c\u5317308',\n 'course_name': '\u8f6f\u4ef6\u5de5\u7a0b\uff08\u7532\uff09',\n 'exam_time': '2019\u5e741\u67089\u65e5(13:45-15:45)',\n 'exam_type': '',\n 'seat': '24',\n 'select_code': '(2018-2019-1)-A0507190-06061-2',\n 'staff_name': 'xxx'}]\n\n>>> client.card.balance()\n[{'account_id': 'xxxxxx',\n 'balance': '69.97',\n 'card_id': 'xxxxxx',\n 'staff_id': 'xxxxxx',\n 'staff_name': 'xxx'}]\n```\n\n## \u6587\u6863\n\nhttps://liuxingran.gitbook.io/hdu-api/\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/Cyrus97/hdu-api", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "hdu-api", "package_url": "https://pypi.org/project/hdu-api/", "platform": "", "project_url": "https://pypi.org/project/hdu-api/", "project_urls": { "Homepage": "https://github.com/Cyrus97/hdu-api" }, "release_url": "https://pypi.org/project/hdu-api/0.1.0/", "requires_dist": [ "requests", "beautifulsoup4", "lxml" ], "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", "summary": "A simple SDK for HDU.", "version": "0.1.0" }, "last_serial": 5140286, "releases": { "0.0.1b0": [ { "comment_text": "", "digests": { "md5": "1d95b219430c8f185b973a3262f34c5a", "sha256": "0eb0c525ea5d20cd6516777e691a4fd7ef829f6be158835b74cf5540ca48fb88" }, "downloads": -1, "filename": "hdu_api-0.0.1b0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1d95b219430c8f185b973a3262f34c5a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", "size": 25102, "upload_time": "2019-02-11T13:13:29", "url": "https://files.pythonhosted.org/packages/39/6a/96e8700d8ff5afc05e7c08c169c92e145467fbe7c8c9ca89a925dce3b462/hdu_api-0.0.1b0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1970457527480fa00bf8c49af0d9a07b", "sha256": "18f7bda0f13cfa79ae849656a612c2c25afa04e00b110f0ff1e69b62542eef30" }, "downloads": -1, "filename": "hdu-api-0.0.1b0.tar.gz", "has_sig": false, "md5_digest": "1970457527480fa00bf8c49af0d9a07b", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", "size": 22889, "upload_time": "2019-02-11T13:13:31", "url": "https://files.pythonhosted.org/packages/7f/a8/adf510303914d65ddb3291a3d278c966ee61e6f14cb992a8898e80326ccd/hdu-api-0.0.1b0.tar.gz" } ], "0.0.1b1": [ { "comment_text": "", "digests": { "md5": "acaa50b5b07844b22f81bf150dad6c08", "sha256": "5b8cfa244fead01d76e368e8224a3173bf5354a847cd255a65986f83630762ec" }, "downloads": -1, "filename": "hdu_api-0.0.1b1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "acaa50b5b07844b22f81bf150dad6c08", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", "size": 25310, "upload_time": "2019-02-13T14:23:34", "url": "https://files.pythonhosted.org/packages/33/8e/06468d547eb22d3d22347cb81b8ecab0786f934f17414760073fa9dbb19b/hdu_api-0.0.1b1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6f9e87baa7801644947acfc86a0c8e74", "sha256": "a991cca7c14d4923e9805f47b9a06b1c7e2f8d78468e1c50e3215b9a9a0c4b90" }, "downloads": -1, "filename": "hdu-api-0.0.1b1.tar.gz", "has_sig": false, "md5_digest": "6f9e87baa7801644947acfc86a0c8e74", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", "size": 23013, "upload_time": "2019-02-13T14:23:36", "url": "https://files.pythonhosted.org/packages/d9/e1/321067c84d04512659271732863976015619e94f73b21b58c5b38891d184/hdu-api-0.0.1b1.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "6ceebd2b57f220aff05e020864792560", "sha256": "cf883be794e0a455de94d6c9f589c6bfe0e9a2cd44092267240063f0b96f0531" }, "downloads": -1, "filename": "hdu_api-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6ceebd2b57f220aff05e020864792560", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", "size": 25436, "upload_time": "2019-04-14T09:16:39", "url": "https://files.pythonhosted.org/packages/4d/16/c43f28a09145a6821c4a8d0ba71409bbb9fa7323c9042a6afd4da92c7596/hdu_api-0.1.0-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6ceebd2b57f220aff05e020864792560", "sha256": "cf883be794e0a455de94d6c9f589c6bfe0e9a2cd44092267240063f0b96f0531" }, "downloads": -1, "filename": "hdu_api-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6ceebd2b57f220aff05e020864792560", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", "size": 25436, "upload_time": "2019-04-14T09:16:39", "url": "https://files.pythonhosted.org/packages/4d/16/c43f28a09145a6821c4a8d0ba71409bbb9fa7323c9042a6afd4da92c7596/hdu_api-0.1.0-py2.py3-none-any.whl" } ] }