{"id":16505314,"url":"https://github.com/veghdev/write-githubstat","last_synced_at":"2026-04-20T12:03:23.712Z","repository":{"id":176548070,"uuid":"490312225","full_name":"veghdev/write-githubstat","owner":"veghdev","description":"write-githubstat makes it easy to collect, filter and save github statistics to csv files.","archived":false,"fork":false,"pushed_at":"2024-07-09T17:21:36.000Z","size":60,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T01:34:52.083Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/veghdev.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":"2022-05-09T14:13:38.000Z","updated_at":"2024-07-09T17:21:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"6b775048-269e-4bde-bf51-571c8a699a4f","html_url":"https://github.com/veghdev/write-githubstat","commit_stats":null,"previous_names":["veghdev/write-githubstat"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veghdev%2Fwrite-githubstat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veghdev%2Fwrite-githubstat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veghdev%2Fwrite-githubstat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veghdev%2Fwrite-githubstat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/veghdev","download_url":"https://codeload.github.com/veghdev/write-githubstat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242750503,"owners_count":20179248,"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-10-11T15:10:31.533Z","updated_at":"2026-04-20T12:03:23.680Z","avatar_url":"https://github.com/veghdev.png","language":"Python","readme":"# write-githubstat\nwrite-githubstat makes it easy to collect, filter and save github statistics to csv files.\n\n[![PyPI version](https://badge.fury.io/py/write-githubstat.svg)](https://badge.fury.io/py/write-githubstat)\n\n\n# About The Project\n\nwrite-githubstat makes it easy to collect, filter and save github statistics to csv files.\n\n# Installation\n\nwrite-githubstat requires `pandas` package.\n\n```sh\npip install write-githubstat\n```\n\n# Usage\n\n```python\nimport logging\nfrom pathlib import Path\n\nfrom writegithubstat import WriteGithubStat, GithubAuth, Referrers, Paths, StarsForks, ViewsClones\n\n\nlogging.basicConfig(level=logging.INFO)\n\nowner = \"owner\"\nrepo = \"repo\"\ntoken = \"token\"\n\nauth = GithubAuth(owner, repo, token)\nwrite_githubstat = WriteGithubStat(auth)\nfor stat_type in (\n    Referrers(owner, repo),\n    Paths(owner, repo),\n    StarsForks(owner, repo),\n    ViewsClones(owner, repo, write_githubstat.date),\n):\n    year = write_githubstat.date[0:4]\n    outdir = \"stats\"\n    outfile = (\n        f\"{year}_githubstat_{stat_type.__class__.__name__.lower()}.csv\"\n    )\n    csv = Path(outdir) / outfile\n    write_githubstat.write_stat(stat_type, csv)\n```\n\n# License\n\nCopyright © 2023.\n\nReleased under the [Apache 2.0 License](https://github.com/veghdev/write-condastat/blob/main/LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fveghdev%2Fwrite-githubstat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fveghdev%2Fwrite-githubstat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fveghdev%2Fwrite-githubstat/lists"}