Skip to main content

Simple analytics for GitHub contributions across an organization.

Project description

githubcontribs: Analyze GitHub contributions

A simple Python API to fetch and plot GitHub contributions across repositories.

Install:

pip install githubcontribs

Fetch data:

import githubcontribs
fetcher = githubcontribs.Fetcher("laminlabs")  # pass the organization
df = fetcher.fetch_contribs("lamindb")  # pass one or multiple repositories
df.head()
#>	date		author		repo	type	title											...
#>	2025-10-11	falexwolf	lamindb	commit	🚸 Better UX for `lamin annotate` CLI command	...
#>	2025-10-10	Koncopd		lamindb	commit	🐛 Various fixes for filtering (#3147)			...
#>	2025-10-10	falexwolf	lamindb	commit	🐛 Do not retrieve records from trash based on	...

Plot data:

plotter = githubcontribs.Plotter(df)
plotter.plot_total_number_by_author_by_type()
image
plotter.plot_number_by_month_by_author()
image

If you want to make such analyses reproducible: here is how to track the notebooks, environments, and input & ouput data for these plots.

PS: You can also fetch all repos with activity in a year.

fetcher.fetch_repos()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

githubcontribs-0.3.0.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

githubcontribs-0.3.0-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file githubcontribs-0.3.0.tar.gz.

File metadata

  • Download URL: githubcontribs-0.3.0.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.5

File hashes

Hashes for githubcontribs-0.3.0.tar.gz
Algorithm Hash digest
SHA256 2bda9925d174c546dad0e5ba72f3ba4b013f9e315919029c78896cb1b5c22a70
MD5 4f279079b56e5e3cef302bea7195612b
BLAKE2b-256 2091de579bceddec4d911f7a8168173b797f5a995b798a57bb1ead09cef7deb2

See more details on using hashes here.

File details

Details for the file githubcontribs-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for githubcontribs-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3332265975551e5c030295c0510d986c5f1f7c53075597d3e440fef991b9196f
MD5 ec3872152b8181f4ab7738e6c088a8b0
BLAKE2b-256 55043366dceec51ce35e89de5368f09c532fcf3196f0338b58661316c7ce7fba

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page