{"id":18963791,"url":"https://github.com/opensoft/github-statistics-tool","last_synced_at":"2025-09-13T08:07:05.394Z","repository":{"id":140233474,"uuid":"56636511","full_name":"opensoft/github-statistics-tool","owner":"opensoft","description":"A tool to collect statistic from github for finances and accounting purposes","archived":false,"fork":false,"pushed_at":"2016-04-22T18:58:32.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-01T05:27:54.742Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opensoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-19T22:23:33.000Z","updated_at":"2016-04-19T22:33:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"75a5650c-da28-4c3a-a072-4a9a27cd16ba","html_url":"https://github.com/opensoft/github-statistics-tool","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opensoft%2Fgithub-statistics-tool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opensoft%2Fgithub-statistics-tool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opensoft%2Fgithub-statistics-tool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opensoft%2Fgithub-statistics-tool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opensoft","download_url":"https://codeload.github.com/opensoft/github-statistics-tool/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239959597,"owners_count":19725170,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T14:21:42.483Z","updated_at":"2025-02-21T05:20:18.210Z","avatar_url":"https://github.com/opensoft.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Github statistic tool\n=====================\nThis utility collects statistics of all commits to all repos in the github organisation and export that to CSV files.\n\n# Requirements\n* python 3  (3.2 and higher, tested with 3.2 and 3.4)\n* pip\n\nLibraries that should be installed separately (with pip, for example). See Installation section for more details\n* jsmin\n* requests\n\n# Installation\nYou should use access-tokens isntead your password for HTTPS/github authentication.\n\n* Create and activate virtual environment, install required packages\n```\n$ virtualenv -p /usr/bin/python3 venv\n$ source venv/bin/activate\n$ pip install jsmin requests\n```\n\n**Set up github credentials**\n* Get github OAuth acess token for github user you will be using with the app.\n    * If this user doesn't have personal access token here are instructions how to create it:\n        https://developer.github.com/v3/oauth/\n        https://github.com/blog/1509-personal-api-tokens\n    * If your githab user has OAuth access tokens already, you could find that tokens at the user settings page:\n        https://github.com/settings/tokens\n* Copy a `config/secret.config.json.dummy` to the file `config/secret.config.json`\n* Edit `config/secret.config.json` file and enter your github user name and its access token hash to the appropriate fields.\n* Create a new ssh key (see more details here: https://help.github.com/articles/generating-ssh-keys/).\n\nNow you can run the application. The easiest way to check if it works or not is to run:\n\n# Usage:\n```\n./git-stats.py \u003corganisation\u003e -csv \u003ccsv-filename\u003e [-limit \u003cnumber\u003e]\n```\n\nExamples:\nSave all commits for the opensoft organisation to the file:\n```\n./git-stats opensoft -csv commiters.csv\n```\nSave all commits for the first 5 repos in opensoft to csv file (this is useful for testing)\n```\n./git-stats opensoft -csv commiters.csv -limit 5\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopensoft%2Fgithub-statistics-tool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopensoft%2Fgithub-statistics-tool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopensoft%2Fgithub-statistics-tool/lists"}