{ "info": { "author": "Niel Chah, Anthony Bloomer", "author_email": "", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers" ], "description": "github-traffic-stats\n====================\n\n.. image:: https://travis-ci.org/nchah/github-traffic-stats.svg?branch=master\n :target: https://travis-ci.org/nchah/github-traffic-stats\n\nGet statistics on web traffic to your GitHub repositories.\n\nPython CLI\n----------\n\nPython CLI tool to get web traffic stats on the command line using the\nGitHub API.\n\nA few use cases to show why this may be useful.\n\n- Checking the volume of traffic to all of your repos. Monitor sudden\n spikes in interest or any general patterns.\n- Storing the traffic stats for future reference.\n- Checking how often your code is cloned.\n\nInstallation\n------------\n\n::\n\n pip install github_traffic_stats\n\nDependencies\n------------\n\n- Requests (`kennethreitz/requests`_)\n\nInstall the requirements by running: \n\n::\n\n pip install -r requirements.txt\n\nThere are a number of GitHub `libraries`_ for Python and other\nlanguages, although they may not support the Repository Traffic API\n(announced on August 15, 2016).\n\nUsage\n-----\n\n::\n\n usage: gts [-h] username [repo] [save_csv] [-o]\n or: \n usage: gts [-h] username:password [repo] [save_csv] [-o]\n\n positional arguments:\n username Github username\n password Github password for 'username', or access token\n repo User's repo\n save_csv Set to \"no_csv\" if no CSV should be saved\n\n optional arguments:\n -h, --help show this help message and exit\n -o, --organization specify Github organization if different from username\n\nInformation on `Github Access Tokens`_.\n\nRun\n---\n\nRun on the command line with either ``python`` or ``python3``.\n\n::\n\n $ gts 'nchah' 'github-traffic-stats' 'save_csv'\n Password:* (passwords are hidden)\n > github-traffic-stats - Visitors\n Date Views Unique visitors\n Totals 125 36\n 2017-07-16 1 1\n 2017-07-17 10 2\n 2017-07-19 11 4\n 2017-07-20 12 5\n 2017-07-21 3 3\n 2017-07-22 1 1\n 2017-07-23 1 1\n 2017-07-24 17 6\n 2017-07-25 32 5\n 2017-07-26 1 1\n 2017-07-27 1 1\n 2017-07-28 6 4\n 2017-07-29 26 5\n 2017-07-30 3 1\n\n > github-traffic-stats - Git clones\n Date Clones Unique cloners\n Totals 5 5\n 2017-07-17 1 1\n 2017-07-24 2 2\n 2017-07-26 1 1\n 2017-07-29 1 1\n\n > github-traffic-stats - Referring sites\n Date Views Unique visitors\n Totals 44 27\n Google 33 24\n github.c... 11 3\n\n\n $ # Or to get stats on all of your repositories\n $ gts 'nchah' 'ALL' 'save_csv'\n Password:* (passwords are hidden)\n\n $ # Or if you are running on an organization repo (for example NREL's SAM repo) as a user with access\n $ gts 'nickdiorio' 'SAM' 'save_csv' -o 'NREL'\n Password:* (passwords are hidden)\n ...\n\nTraffic data stored in CSV files with columns:\n\n::\n\n repository_name, date, views, unique_visitors\n\n| Separate CSVs are created for each run of the script.\n| To merge and only preserve the unique data points, run:\n\n::\n\n $ bash bash/merge-csv.sh [folder_with_CSVs]\n\nDocumentation\n-------------\n\nA list of the references used for this project.\n\n- `GitHub API`_\n- `Preview the Repository Traffic API (August 15, 2016)`_\n\n.. _kennethreitz/requests: https://github.com/kennethreitz/requests\n.. _libraries: https://developer.github.com/libraries/\n.. _GitHub API: https://developer.github.com/v3/\n.. _Preview the Repository Traffic API (August 15, 2016): https://developer.github.com/changes/2016-08-15-traffic-api-preview/\n.. _Github Access Tokens: https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/\n\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/nchah/github-traffic-stats", "keywords": "github,traffic,api", "license": "", "maintainer": "", "maintainer_email": "", "name": "github-traffic-stats", "package_url": "https://pypi.org/project/github-traffic-stats/", "platform": "", "project_url": "https://pypi.org/project/github-traffic-stats/", "project_urls": { "Homepage": "https://github.com/nchah/github-traffic-stats" }, "release_url": "https://pypi.org/project/github-traffic-stats/1.2.0/", "requires_dist": [ "requests" ], "requires_python": "", "summary": "Get statistics on web traffic to your GitHub repositories.", "version": "1.2.0" }, "last_serial": 3862220, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "237010c3e9bd5b2e7b938e1c26c412c0", "sha256": "f7d91857cb704eecd41fb16fd5b0ac8d0f65557a78d51a31f573bfbc50ec8213" }, "downloads": -1, "filename": "github_traffic_stats-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "237010c3e9bd5b2e7b938e1c26c412c0", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5557, "upload_time": "2017-10-10T23:19:21", "url": "https://files.pythonhosted.org/packages/f2/87/d20e85b32c0db46b40793dea344d8f6b71c664b4eeb02d98d65cc779691e/github_traffic_stats-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e6e18224b609ed427929305df3c6098d", "sha256": "64297e5f0f36712dbe0c8d87ed2f98d89e540c6ec6c2bddbe8519f79d0cd2a80" }, "downloads": -1, "filename": "github_traffic_stats-1.0.0.tar.gz", "has_sig": false, "md5_digest": "e6e18224b609ed427929305df3c6098d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4950, "upload_time": "2017-10-10T23:19:22", "url": "https://files.pythonhosted.org/packages/0b/3c/e9897bb2b23fc93ff4e8193d85f4fc2ad62994c851f953cae2af5a077b1b/github_traffic_stats-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "8c1ca1868faa785d89b6cb70cb56cc59", "sha256": "6ae7fec51d077bcea169961d27b034f2b53b75d78414cdaf737e2daca6e8a3e7" }, "downloads": -1, "filename": "github_traffic_stats-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8c1ca1868faa785d89b6cb70cb56cc59", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7539, "upload_time": "2017-10-11T06:41:37", "url": "https://files.pythonhosted.org/packages/00/cb/de0ba865c4588c505b9a03a9f97e33897aab12ad76d9cf70a9b60b2dd0ff/github_traffic_stats-1.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f1cbe4ab49add842fe2de659f35a6a81", "sha256": "74bd9453158c73f3df5ef8db8f460277bff1ce9be9197664b47efec9cbf5dc0f" }, "downloads": -1, "filename": "github_traffic_stats-1.0.1.tar.gz", "has_sig": false, "md5_digest": "f1cbe4ab49add842fe2de659f35a6a81", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5424, "upload_time": "2017-10-11T06:41:39", "url": "https://files.pythonhosted.org/packages/df/c5/184efdf904a676a077d6deddd2c90b37449cee8c9218a68219da7d7ac3f6/github_traffic_stats-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "278cbd31b61229713f0768185f932c9c", "sha256": "1e24352180c5194c96cb4ef79073dfed32bcf7317c291fa63ca74f36f4535333" }, "downloads": -1, "filename": "github_traffic_stats-1.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "278cbd31b61229713f0768185f932c9c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8403, "upload_time": "2018-03-06T10:09:09", "url": "https://files.pythonhosted.org/packages/d9/da/5a2a5ea641da1a646d004c9fcdae584af693554c99ad58f03ce325ff232d/github_traffic_stats-1.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5acc9b7b3b1f7f1b4d6e82d3454153c0", "sha256": "a4674bd05395644ec3f37f50fda42efce55e66b2a1ba0fbd28549023440ee9b9" }, "downloads": -1, "filename": "github_traffic_stats-1.0.2.tar.gz", "has_sig": false, "md5_digest": "5acc9b7b3b1f7f1b4d6e82d3454153c0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6018, "upload_time": "2018-03-06T10:09:12", "url": "https://files.pythonhosted.org/packages/14/76/b0e06844b3955e108685869d5dee75ba462bf4f271c66093de3107fa9bb3/github_traffic_stats-1.0.2.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "ad8ea437fee8a2dcf1e265f1fa150849", "sha256": "71771dc8743fa8da55e76fc4d2c8399e36fdcb50065cf562fae7261acee953bd" }, "downloads": -1, "filename": "github_traffic_stats-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ad8ea437fee8a2dcf1e265f1fa150849", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8120, "upload_time": "2017-11-08T01:09:39", "url": "https://files.pythonhosted.org/packages/e6/b4/b798c5dc75c62089399cdb769f0c3865d8a671f11ec31267dd49f6a7d59a/github_traffic_stats-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1d6ee0909620c8834c702a15e8c11c36", "sha256": "74f4b34ddadf74effeb0e2fd8bafce80ff54074f49307af973beb2e65b53451f" }, "downloads": -1, "filename": "github_traffic_stats-1.1.0.tar.gz", "has_sig": false, "md5_digest": "1d6ee0909620c8834c702a15e8c11c36", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5820, "upload_time": "2017-11-08T01:09:40", "url": "https://files.pythonhosted.org/packages/95/ae/f38b8679f35cd4034e708c15ab6f90a48db20badd70a20c67eb189a978e9/github_traffic_stats-1.1.0.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "7f5cdf8944b20b9a2751ea1651abf5a6", "sha256": "fc984441999eed56af81601233277b65fa3e79d6cc27c5306df005a99a51457d" }, "downloads": -1, "filename": "github_traffic_stats-1.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7f5cdf8944b20b9a2751ea1651abf5a6", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6597, "upload_time": "2018-04-27T16:25:05", "url": "https://files.pythonhosted.org/packages/de/e0/0544a6c3ab2b787fe04c0c0a001b9abd4d4e27137e9acaff253dbc29fccf/github_traffic_stats-1.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4e8c7249b6179a8bb9a6142a38f8d0fa", "sha256": "ef6d9e4e64c7b80d57cacc0e34396194ff7a28d1f3705e7dbcd5a180f028ab9f" }, "downloads": -1, "filename": "github_traffic_stats-1.2.0.tar.gz", "has_sig": false, "md5_digest": "4e8c7249b6179a8bb9a6142a38f8d0fa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6449, "upload_time": "2018-04-27T16:25:07", "url": "https://files.pythonhosted.org/packages/c8/c2/1f11bce3fc6dc9bc68caa8af4d44af5bfc9dfe996d61a4cba2001613f05c/github_traffic_stats-1.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7f5cdf8944b20b9a2751ea1651abf5a6", "sha256": "fc984441999eed56af81601233277b65fa3e79d6cc27c5306df005a99a51457d" }, "downloads": -1, "filename": "github_traffic_stats-1.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7f5cdf8944b20b9a2751ea1651abf5a6", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6597, "upload_time": "2018-04-27T16:25:05", "url": "https://files.pythonhosted.org/packages/de/e0/0544a6c3ab2b787fe04c0c0a001b9abd4d4e27137e9acaff253dbc29fccf/github_traffic_stats-1.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4e8c7249b6179a8bb9a6142a38f8d0fa", "sha256": "ef6d9e4e64c7b80d57cacc0e34396194ff7a28d1f3705e7dbcd5a180f028ab9f" }, "downloads": -1, "filename": "github_traffic_stats-1.2.0.tar.gz", "has_sig": false, "md5_digest": "4e8c7249b6179a8bb9a6142a38f8d0fa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6449, "upload_time": "2018-04-27T16:25:07", "url": "https://files.pythonhosted.org/packages/c8/c2/1f11bce3fc6dc9bc68caa8af4d44af5bfc9dfe996d61a4cba2001613f05c/github_traffic_stats-1.2.0.tar.gz" } ] }