{ "info": { "author": "jerrymakesjelly", "author_email": "ganzhaoyu037@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3 :: Only", "Topic :: Utilities" ], "description": "BUPT Electricity Monitor \n==========================\n|PyPI| |TravisCI| |AppVeyorCI| |CodacyCoverage| |Codacy| |License|\n\nFree yourself from the tedious operation, now you can just use a one-line command to view the electricity information of your dormitory.\n\nThe data comes from the BUPT Work WeChat. But please **notice that** this utility tool can only query the dormitory which is located on Xitucheng Campus. The other campuses are not supported at the moment.\n\n**FEATURES**\n\n* Get your power data easily, including surplus, voltage, current, power, etc.\n* Calculate available time.\n\n.. |PyPI| image:: https://badge.fury.io/py/buptelecmon.svg\n :target: https://pypi.org/project/buptelecmon\n\n.. |TravisCI| image:: https://www.travis-ci.org/jerrymakesjelly/electricity-monitor.svg\n :target: https://www.travis-ci.org/jerrymakesjelly/electricity-monitor\n\n.. |AppVeyorCI| image:: https://ci.appveyor.com/api/projects/status/lqxj0s3fo21payke?svg=true\n :target: https://ci.appveyor.com/project/jerrymakesjelly/electricity-monitor\n\n.. |Codecov| image:: https://codecov.io/gh/jerrymakesjelly/electricity-monitor/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/jerrymakesjelly/electricity-monitor\n\n.. |LGTMAlerts| image:: https://img.shields.io/lgtm/alerts/g/jerrymakesjelly/electricity-monitor.svg?logo=lgtm&logoWidth=18\n :target: https://lgtm.com/projects/g/jerrymakesjelly/electricity-monitor/alerts/\n\n.. |LGTMQuality| image:: https://img.shields.io/lgtm/grade/python/g/jerrymakesjelly/electricity-monitor.svg?logo=lgtm&logoWidth=18\n :target: https://lgtm.com/projects/g/jerrymakesjelly/electricity-monitor/context:python\n\n.. |License| image:: https://img.shields.io/github/license/jerrymakesjelly/electricity-monitor.svg\n :target: https://github.com/jerrymakesjelly/electricity-monitor/blob/master/LICENSE\n\n.. |Codacy| image:: https://img.shields.io/codacy/grade/d6136382fa05479db539fe3299dd0f29.svg\n :target: https://www.codacy.com/project/jerrymakesjelly/electricity-monitor/dashboard\n\n.. |CodacyCoverage| image:: https://api.codacy.com/project/badge/coverage/d6136382fa05479db539fe3299dd0f29\n :target: https://www.codacy.com/app/jerrymakesjelly/electricity-monitor\n\nRequirements\n-------------\n* Python 3\n\nQuick Start\n------------\nStep 1: Install from PyPI\n++++++++++++++++++++++++++\n::\n\n pip install buptelecmon\n\nStep 2: Set your authorization information\n+++++++++++++++++++++++++++++++++++++++++++\nThis information is used to log in to the query interface. We won't send your information to other sites.\n::\n\n elecinfo --set-auth\n\nAnd input your student ID and your password. The password is usually the same as your Information Portal (my.bupt.edu.cn).\n::\n\n Student ID:\n Password:\n\nYour authorization information will be saved to ``~/.elecmon/elecmon.json``.\n\nStep 3: Run it\n++++++++++++++++\n::\n\n elecinfo \n\nThe *dormitory-number* must be in the correct format (ApartmentNumber-DormitoryNumber, e.g 1-101).\n\nAlso, this command tool will remember the dormitory number of the last query. Next time, if you want to query the same dormitory as last query, just type::\n\n elecinfo\n\nRecharge\n---------\nUse this tool to visit the recharge page directly.\n::\n\n elecinfo --recharge \n\nThen, a QR code will be shown on your terminal. Please use your WeChat to scan the QR code and pay for it.\n\nAdvanced Usage\n---------------\nFull Command Line\n++++++++++++++++++\n::\n\n elecinfo [ --version | --set-auth | [--loop] [... ] | --recharge ]\n\n============== ======================================================================\n Option Description\n============== ======================================================================\n--version Display the version of this tool.\n--set-auth Set your authorization information, as the Quick Start - Step 2 shows.\n--loop Repeat querying electricity information every 60 seconds.\n--recharge Display a recharge QR code.\n============== ======================================================================\n\n**Note:** Please DO NOT query too many dormitories at the same time or query too frequently, otherwise you may receive ``HTTP 500 Internal Server Error`` s from the remote server.\n\nAPIs\n+++++\nWe allow you to use the APIs to build your applications, for example:\n\n.. code:: python\n\n import buptelecmon\n em = buptelecmon.electricitymonitor.ElectricityMonitor()\n em.login('student_id', 'password')\n em.query(['x-xxx'])\n\nFor more information, please read the `APIs Document`_.\n\n.. _APIs Document: https://github.com/jerrymakesjelly/electricity-monitor/blob/master/docs/apis.md\n\nScreenshot\n------------\n.. image:: https://user-images.githubusercontent.com/6760674/43949495-4454d694-9cc0-11e8-88c2-cfd98e2291a6.gif\n\nChangelog\n----------\n**Mon, 13 Aug 2018**: 1.2.2 released. Fix a bug that prevent the program from quitting when an exception raises. :bookmark:\n\n**Mon, 13 Aug 2018**: 1.2.1 released. Fix documentation error. :bookmark:\n\n**Sun, 12 Aug 2018**: 1.2.0 released :bookmark:\n\n* Added recharge mode\n\n**Sat, 11 Aug 2018**: 1.1.0 released :bookmark:\n\n* Removed daemon mode \n* Added configuration mode - We don't need to write json file manually anymore \n* Published to PyPI \n\n**Fri, 30 Mar 2018**: First version. :tada:\n\nLicense\n--------\nThis software is distributed under the `MIT License`_.\n\n.. _MIT License: https://github.com/jerrymakesjelly/electricity-monitor/blob/master/LICENSE", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jerrymakesjelly/electricity-monitor", "keywords": "python bupt electricity", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "buptelecmon", "package_url": "https://pypi.org/project/buptelecmon/", "platform": "", "project_url": "https://pypi.org/project/buptelecmon/", "project_urls": { "Homepage": "https://github.com/jerrymakesjelly/electricity-monitor" }, "release_url": "https://pypi.org/project/buptelecmon/1.2.3/", "requires_dist": null, "requires_python": "", "summary": "A program for checking electricity charge.", "version": "1.2.3" }, "last_serial": 4175838, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "18b5748a7053b38805efed87c2516fee", "sha256": "4849e7adf81b1d636abe0acfd7c97ea22d68c75c4896d04c09fa7b718e5c50ad" }, "downloads": -1, "filename": "buptelecmon-0.0.1-py3.7.egg", "has_sig": false, "md5_digest": "18b5748a7053b38805efed87c2516fee", "packagetype": "bdist_egg", "python_version": "3.7", "requires_python": null, "size": 34420, "upload_time": "2018-08-11T13:07:24", "url": "https://files.pythonhosted.org/packages/8a/b0/fea79f802d9d4dd93694392935ffc3ae170dd82f232bf9991eb1988d4d4c/buptelecmon-0.0.1-py3.7.egg" }, { "comment_text": "", "digests": { "md5": "55be92d64d9a2b63ed9ce6b865affb3f", "sha256": "e8275d3a407b4660595078403d73530819a7083e907c22db9eebcd94c6cc8864" }, "downloads": -1, "filename": "buptelecmon-0.0.1.tar.gz", "has_sig": false, "md5_digest": "55be92d64d9a2b63ed9ce6b865affb3f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8399, "upload_time": "2018-08-11T13:07:26", "url": "https://files.pythonhosted.org/packages/96/c1/08e0b1c2a70267aa5ed111b55cba4427759a7b6c570f8f59d6f25b4772f6/buptelecmon-0.0.1.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "55fe4fe2e8292e57e01f4e15d1040b7b", "sha256": "5f834be4d9407e4a34836a2201fef10e1a9402a17dd051e9d84fa2446265dbcf" }, "downloads": -1, "filename": "buptelecmon-1.1.0.tar.gz", "has_sig": false, "md5_digest": "55fe4fe2e8292e57e01f4e15d1040b7b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8496, "upload_time": "2018-08-11T15:29:34", "url": "https://files.pythonhosted.org/packages/a1/5e/05b77bd817298c0f1cb3828742ae23ba92306e6f8f21b3109ccc9a59e1ef/buptelecmon-1.1.0.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "ecea82126754154be5ad6d040fc10871", "sha256": "b5babe60d3df8e8145771f4b7a96ed0c393cc2880465a19dfc655883351d792a" }, "downloads": -1, "filename": "buptelecmon-1.2.0.tar.gz", "has_sig": false, "md5_digest": "ecea82126754154be5ad6d040fc10871", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8969, "upload_time": "2018-08-12T16:36:26", "url": "https://files.pythonhosted.org/packages/84/28/127ec9dd38d882b687c88dc8596ef9fb46a96d1d4ac4405a7d5d82bdcf97/buptelecmon-1.2.0.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "f629a6853bfc66bc290e5feea08f8c45", "sha256": "4efdc2746eef0b643b8ea283aed3750ab44872f626ec7b99e301c31301c8b65f" }, "downloads": -1, "filename": "buptelecmon-1.2.1.tar.gz", "has_sig": false, "md5_digest": "f629a6853bfc66bc290e5feea08f8c45", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9074, "upload_time": "2018-08-12T16:47:35", "url": "https://files.pythonhosted.org/packages/e6/7e/25791572ec486de08d940f0d0330822142afcf1ff030795d0bec3d478824/buptelecmon-1.2.1.tar.gz" } ], "1.2.2": [ { "comment_text": "", "digests": { "md5": "d4f17d00071833e6c7933299051dd354", "sha256": "d5e97f8e580c3ed79b914d52397a1dfde333d9f51c0b92f35070ab67be456c56" }, "downloads": -1, "filename": "buptelecmon-1.2.2.tar.gz", "has_sig": false, "md5_digest": "d4f17d00071833e6c7933299051dd354", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8244, "upload_time": "2018-08-13T13:53:46", "url": "https://files.pythonhosted.org/packages/f1/4b/2659427822a96402d331d7b6723c16e630d02357dc8c28fad13372ce758d/buptelecmon-1.2.2.tar.gz" } ], "1.2.3": [ { "comment_text": "", "digests": { "md5": "f84c8d4882f8c43d35b98e02e222a581", "sha256": "c0372f82b2980c2300ecd1e905d55833a3cc52b583b0660f1efdb640a7d3ed13" }, "downloads": -1, "filename": "buptelecmon-1.2.3.tar.gz", "has_sig": false, "md5_digest": "f84c8d4882f8c43d35b98e02e222a581", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8339, "upload_time": "2018-08-16T08:43:33", "url": "https://files.pythonhosted.org/packages/f0/86/09d374214d28ee9b0444130f89e153a8b76f337b72ab6cb0b14717c16368/buptelecmon-1.2.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f84c8d4882f8c43d35b98e02e222a581", "sha256": "c0372f82b2980c2300ecd1e905d55833a3cc52b583b0660f1efdb640a7d3ed13" }, "downloads": -1, "filename": "buptelecmon-1.2.3.tar.gz", "has_sig": false, "md5_digest": "f84c8d4882f8c43d35b98e02e222a581", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8339, "upload_time": "2018-08-16T08:43:33", "url": "https://files.pythonhosted.org/packages/f0/86/09d374214d28ee9b0444130f89e153a8b76f337b72ab6cb0b14717c16368/buptelecmon-1.2.3.tar.gz" } ] }