{"id":18405768,"url":"https://github.com/pybites-open-source/git-stats","last_synced_at":"2025-07-22T17:34:01.982Z","repository":{"id":86406725,"uuid":"374082814","full_name":"PyBites-Open-Source/git-stats","owner":"PyBites-Open-Source","description":null,"archived":false,"fork":false,"pushed_at":"2022-10-26T10:28:05.000Z","size":69,"stargazers_count":16,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T08:36:05.708Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PyBites-Open-Source.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2021-06-05T10:17:34.000Z","updated_at":"2024-10-03T14:27:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"549f2203-bec4-46f7-bb21-843342e140ba","html_url":"https://github.com/PyBites-Open-Source/git-stats","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PyBites-Open-Source/git-stats","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PyBites-Open-Source%2Fgit-stats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PyBites-Open-Source%2Fgit-stats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PyBites-Open-Source%2Fgit-stats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PyBites-Open-Source%2Fgit-stats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PyBites-Open-Source","download_url":"https://codeload.github.com/PyBites-Open-Source/git-stats/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PyBites-Open-Source%2Fgit-stats/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266539582,"owners_count":23945048,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["hacktoberfest"],"created_at":"2024-11-06T03:04:42.516Z","updated_at":"2025-07-22T17:34:01.953Z","avatar_url":"https://github.com/PyBites-Open-Source.png","language":"Python","readme":"# Are you an active developer?\n\nThe aim of this package is to get some useful stats from a local `git` repo.\n\n## To run it\n\nAll code uses Standard Library so far so you should be able to run it upon checkout:\n\n```\npython3 -m stats YOUR_REPO_FOLDER\n```\n\n## Example output\n\nBit meta but here is how it looks for this repo at this time of writing:\n\n```\n$ python3 -m stats ~/code/git-stats\n--------------------------------------------------\n\u003c Git Repo Activity Report \u003e\n\u003e Repo: git-stats\n--------------------------------------------------\n\n* Repo changes (inserts and deletes) per week:\n\n2021-22                                | 1607\n2021-23                                | 479\n\n* Number of commits per week and author:\n\n2021-22\n- Bob Belderbos                        |  32\n2021-23\n- Bob Belderbos                        |   3\n\n* Files that are most often found in commits:\n\nstats/git.py                           |  16\nstats/report.py                        |   9\ntests/functional/test_report.py        |   6\nREADME.md                              |   5\ntests/conftest.py                      |   4\nstats/stats.py                         |   3\nMakefile                               |   3\nstats/__main__.py                      |   3\ntests/unit/test_git.py                 |   2\ntests/test_git.py                      |   2\n--------------------------------------------------\n```\n\nTo run it from any repo / directory, add this to your `.bashrc` (`.zshrc`) file (assuming your virtual environment is called `venv` and is located in the project folder):\n\n```\nalias ae='source venv/bin/activate'\nfunction gitst {\n    (pwd=`pwd` \u0026\u0026 cd ~/code/git-stats/ \u0026\u0026 ae \u0026\u0026 python3 -m stats $pwd)\n}\n```\n\nThe sub shell (`()`) makes that it should not have any side effects on your current shell session.\n\n## To run the tests:\n\nThere are unit tests and one functional (end-to-end) test. You can run them like this:\n\n```\nmake venv\nsource venv/bin/activate\nmake install\nmake unit (or make test)\nmake functional\nmake testall\nmake coverage\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpybites-open-source%2Fgit-stats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpybites-open-source%2Fgit-stats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpybites-open-source%2Fgit-stats/lists"}