Skip to main content

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()

Metadata

Release files for githubcontribs 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for githubcontribs 0.3.0
File Size Uploaded
githubcontribs-0.3.0.tar.gz 15.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for githubcontribs 0.3.0
File Interpreter ABI Platform
githubcontribs-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 27.8 kB

Release files / githubcontribs-0.3.0.tar.gz

Download URL githubcontribs-0.3.0.tar.gz
Size 15.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2bda9925d174c546dad0e5ba72f3ba4b013f9e315919029c78896cb1b5c22a70
BLAKE2b-256 checksum
How to use checksums
2091de579bceddec4d911f7a8168173b797f5a995b798a57bb1ead09cef7deb2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.5

Release files / githubcontribs-0.3.0-py3-none-any.whl

Download URL githubcontribs-0.3.0-py3-none-any.whl
Size 12.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3332265975551e5c030295c0510d986c5f1f7c53075597d3e440fef991b9196f
BLAKE2b-256 checksum
How to use checksums
55043366dceec51ce35e89de5368f09c532fcf3196f0338b58661316c7ce7fba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.5

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page