{ "info": { "author": "LCTT", "author_email": "2200201796@qq.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python :: 3" ], "description": "# Grank - Github \u9879\u76ee\u6d3b\u8dc3\u5ea6\u5206\u6790\u5de5\u5177\n[![All Contributors](https://img.shields.io/badge/all_contributors-3-orange.svg?style=flat-square)](#contributors)\n\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/grank.svg?style=flat-square)](https://pypi.org/project/Grank/) [![PyPI](https://img.shields.io/pypi/v/grank.svg?style=flat-square)](https://pypi.org/project/Grank/) [![GitHub tag](https://img.shields.io/github/tag/lctt/grank.svg?style=flat-square)](https://github.com/lctt/grank/) [![GitHub](https://img.shields.io/github/license/lctt/grank.svg?style=flat-square)](https://github.com/lctt/grank/) [![GitHub last commit](https://img.shields.io/github/last-commit/lctt/grank.svg?style=flat-square)](https://github.com/lctt/grank/)\n\n[![Travis (.com)](https://img.shields.io/travis/com/LCTT/Grank.svg?style=flat-square)](https://travis-ci.com/LCTT/Grank)\n[![GitHub issues](https://img.shields.io/github/issues/lctt/grank.svg?style=flat-square)](https://github.com/lctt/grank/)\n[![GitHub pull requests](https://img.shields.io/github/issues-pr/lctt/grank.svg?style=flat-square)](https://github.com/lctt/grank/)\n\n\n## \u7279\u6027\n\n- \u8bfb\u53d6 Commit \u4fe1\u606f\u5206\u6790\n - \u652f\u6301\u6293\u53d6\u7279\u5b9a\u65f6\u95f4\u6bb5\u7684 commit \u6570\u636e\n- \u4f7f\u7528 GraphQL \u8fdb\u884c\u6570\u636e\u7684\u6293\u53d6\n- \u5206\u6790\u7ed3\u679c\u81ea\u52a8\u6392\u884c\uff0c\u5e76\u751f\u6210\u6d3b\u8dc3\u5ea6\u6298\u7ebf\u56fe\n - \u63d0\u4f9b\u6240\u6709\u9879\u76ee\u7684\u6d3b\u8dc3\u5ea6\u3001\u793e\u533a\u5316\u6392\u884c\n - \u63d0\u4f9b\u5355\u4e2a\u9879\u76ee\u7684\u6d3b\u8dc3\u5ea6\u3001\u793e\u533a\u5316\u6574\u5408\u56fe\u50cf\n\n## \u6837\u4f8b\u56fe\u7247\u5c55\u793a\n\n**\u591a\u9879\u76ee\u6d3b\u8dc3\u5ea6**\n\n![](https://postimg.aliavv.com/newmbp/3xexn.jpg)\n\n**\u591a\u9879\u76ee\u793e\u533a\u5316**\n\n![](https://postimg.aliavv.com/newmbp/f2fce.jpg)\n\n**\u5355\u9879\u76ee\u793e\u533a\u5316\u53ca\u6d3b\u8dc3\u5ea6**\n\n![](https://postimg.aliavv.com/newmbp/ebrrr.jpg)\n\n\n## \u5b89\u88c5\u9700\u6c42\n\n**Python 3.4 +**\n\n## \u4f7f\u7528\u65b9\u6cd5\n\n1. \u4f7f\u7528 pip \u5b89\u88c5\u9879\u76ee `pip install grank`\n2. \u83b7\u53d6 Github \u7684 [Personal Access Token](https://github.com/settings/tokens)\n3. \u4f7f\u7528 `grank login` \u8bbe\u7f6e Token\n4. \u4f7f\u7528 `grank config` \u8bbe\u7f6e\u793e\u533a\u5316\u4f01\u4e1a\u5173\u952e\u8bcd\n5. \u4f7f\u7528 `grank analy [mode] []` \u6765\u5206\u6790\u7279\u5b9a\u7528\u6237/\u7ec4\u7ec7\u548c\u9879\u76ee\uff0c\u6bd4\u5982 `grank analy lctt grank`,\u5206\u6790\u7ed3\u679c\u53ef\u4ee5\u5728\u6267\u884c\u547d\u4ee4\u76ee\u5f55\u7684 result \u76ee\u5f55\u4e2d\u627e\u5230\u3002\n6. \u4f7f\u7528\u547d\u4ee4\u884c\u6a21\u5f0f\u64cd\u4f5c\uff0c\u5982 `grank --token=XXXX --start=2018-01-01 --stop=2018-05-21 --askrule=0 --rule=inc analy ` \u5176\u4e2d token \u5fc5\u987b\u6307\u5b9a\uff0c\u5176\u4ed6\u53ef\u4ee5\u4f7f\u7528\u7f3a\u7701\u8bbe\u7f6e\n\n## \u547d\u4ee4\u5217\u8868\n\n1. `grank checklogin` \u663e\u793a\u5f53\u524d Token \u7684\u767b\u5f55\u7528\u6237\n2. `grank login` \u8bbe\u7f6e\u7528\u6237 Token\n3. `grank config` \u8bbe\u7f6e\u5173\u952e\u8bcd\uff0c\u7528\u4e8e\u793e\u533a\u5316\u5206\u6790\n4. `grank analy [mode]` \u5206\u6790\u7ec4\u7ec7\u540d\u4e0b\u6216\u7528\u6237\u540d\u4e0b\u9879\u76ee\u7684\u6d3b\u8dc3\u5ea6\u6216\u793e\u533a\u5316\u7a0b\u5ea6\uff0cmode \u7684\u9ed8\u8ba4\u503c\u4e3a`all`\uff0c\u53ef\u8bbe\u5b9a\u4e3a`social`\u6216`activity`\u3002\u8c03\u7528\u65b9\u6cd5 `grank analy lctt` / `grank analy --social lctt grank`\u3002\n5. `grank clean` \u6e05\u7a7a\u5f53\u524d\u76ee\u5f55\u4e0b\u7684\u4e34\u65f6\u6587\u4ef6\u548c\u7ed3\u679c\uff0c\u8c03\u7528\u65b9\u6cd5 `grank clean`\n\n## \u914d\u7f6e\u6587\u4ef6\u8bf4\u660e\n\n```\n[login]\ntoken = xxx #personal access token\n\n[social]\naskrule = 1 # \u8bbe\u7f6e\u4e3a1\u65f6\u5c06\u63d0\u9192\u7528\u6237\u8bbe\u7f6e\u89c4\u5219\nrule = corp|inc # \u8fdb\u884c\u793e\u533a\u5316\u5206\u6790\u65f6\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\u89c4\u5219\n\n[time]\nstart_time = 2017-01-01 # \u5206\u6790\u7684\u5f00\u59cb\u65f6\u95f4\nend_time = 2018-10-01 # \u5206\u6790\u7684\u7ed3\u675f\u65f6\u95f4\n\n[rank]\ntop = 3 # \u7ed8\u56fe\u65f6\u7ed8\u5236\u6298\u7ebf\u7684\u9879\u76ee\u6570\u91cf\n```\n\n## \u8d21\u732e\u9879\u76ee\n\n\u5728\u60a8\u8fdb\u884c\u9879\u76ee\u8d21\u732e\u524d\uff0c\u8bf7\u67e5\u770b [CONTRIBUTING.md](CONTRIBUTING.md)\n\n## \u5f00\u6e90\u534f\u8bae\n\n[GPL-3.0](LICENSE)\n\n## Contributors\n\nThanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):\n\n\n\n| [
Bestony](https://www.ixiqin.com/)
[\ud83d\udcbb](https://github.com/LCTT/Grank/commits?author=bestony \"Code\") [\ud83d\udcd6](https://github.com/LCTT/Grank/commits?author=bestony \"Documentation\") [\ud83d\udca1](#example-bestony \"Examples\") [\ud83d\udce6](#platform-bestony \"Packaging/porting to new platform\") [\ud83d\udc40](#review-bestony \"Reviewed Pull Requests\") [\u26a0\ufe0f](https://github.com/LCTT/Grank/commits?author=bestony \"Tests\") [\ud83d\udd27](#tool-bestony \"Tools\") | [
Xingyu.Wang](http://wxy.github.io/)
[\ud83d\udcac](#question-wxy \"Answering Questions\") [\ud83d\udc1b](https://github.com/LCTT/Grank/issues?q=author%3Awxy \"Bug reports\") [\ud83d\udcbb](https://github.com/LCTT/Grank/commits?author=wxy \"Code\") [\ud83d\udc40](#review-wxy \"Reviewed Pull Requests\") [\ud83d\udce2](#talk-wxy \"Talks\") | [
LuMing](http://LuuMing.github.io)
[\ud83d\udcbb](https://github.com/LCTT/Grank/commits?author=LuuMing \"Code\") [\ud83d\udcd6](https://github.com/LCTT/Grank/commits?author=LuuMing \"Documentation\") [\u26a0\ufe0f](https://github.com/LCTT/Grank/commits?author=LuuMing \"Tests\") |\n| :---: | :---: | :---: |\n\n\nThis project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/LCTT/Grank", "keywords": "", "license": "GPLv3", "maintainer": "", "maintainer_email": "", "name": "ljjGrank", "package_url": "https://pypi.org/project/ljjGrank/", "platform": "", "project_url": "https://pypi.org/project/ljjGrank/", "project_urls": { "Homepage": "https://github.com/LCTT/Grank" }, "release_url": "https://pypi.org/project/ljjGrank/1.0.4/", "requires_dist": [ "click", "requests", "pandas", "numpy", "matplotlib" ], "requires_python": ">=3.4", "summary": "A Github Project Rank Command Line Tool", "version": "1.0.4" }, "last_serial": 4767246, "releases": { "1.0.4": [ { "comment_text": "", "digests": { "md5": "ef3645edd31e64260e33248a38234571", "sha256": "6a036aab1eda2e625903da32944de4a7a6d893fee330447f5bb203fa61f5d0f5" }, "downloads": -1, "filename": "ljjGrank-1.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "ef3645edd31e64260e33248a38234571", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 29384, "upload_time": "2019-02-01T07:22:48", "url": "https://files.pythonhosted.org/packages/a9/97/f5c76770e75650c537a4e46d34e197d0dc04ba8a894d1174e64c33f2cbf8/ljjGrank-1.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e326591a66b773a1d374b851542cf8ab", "sha256": "6b6ef10d5092d052589fc7bd66ec9d43d4f0519b25baae86a1d71bf5a25f192a" }, "downloads": -1, "filename": "ljjGrank-1.0.4.tar.gz", "has_sig": false, "md5_digest": "e326591a66b773a1d374b851542cf8ab", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 12858, "upload_time": "2019-02-01T07:22:50", "url": "https://files.pythonhosted.org/packages/9c/89/8c582ff714777e66e2f2049b3bb8f007da568866988382ecfcb37a43655f/ljjGrank-1.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ef3645edd31e64260e33248a38234571", "sha256": "6a036aab1eda2e625903da32944de4a7a6d893fee330447f5bb203fa61f5d0f5" }, "downloads": -1, "filename": "ljjGrank-1.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "ef3645edd31e64260e33248a38234571", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 29384, "upload_time": "2019-02-01T07:22:48", "url": "https://files.pythonhosted.org/packages/a9/97/f5c76770e75650c537a4e46d34e197d0dc04ba8a894d1174e64c33f2cbf8/ljjGrank-1.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e326591a66b773a1d374b851542cf8ab", "sha256": "6b6ef10d5092d052589fc7bd66ec9d43d4f0519b25baae86a1d71bf5a25f192a" }, "downloads": -1, "filename": "ljjGrank-1.0.4.tar.gz", "has_sig": false, "md5_digest": "e326591a66b773a1d374b851542cf8ab", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 12858, "upload_time": "2019-02-01T07:22:50", "url": "https://files.pythonhosted.org/packages/9c/89/8c582ff714777e66e2f2049b3bb8f007da568866988382ecfcb37a43655f/ljjGrank-1.0.4.tar.gz" } ] }