A package for generating Git contribution charts
Project description
GitCommitChart
This is a small python library that uses PIL to generate Github commit charts dynamically. Its very cool.
Examples
Create a simple chart
from GitCommitChart import create_git_commit_chart
import random
if __name__ == "__main__":
# Example data array with 365 elements
# each with a random value between 0 and 100
data = [random.randint(0, 10) for i in range(365)]
# Create the Git commit chart
image = create_git_commit_chart(data, rows_per_column=7)
image.save("test.png")
Create a chart with labels
from GitCommitChart import create_git_commit_chart
import random
if __name__ == "__main__":
data = [random.randint(0, 10)
for i in range(365)] # Example data for a year
# Create the Git commit chart
image = create_git_commit_chart(
data,
rows_per_column=7,
horizontal_labels=["Jan", "Feb", "Mar"...
vertical_labels=["Sun", "Wed", "Sat"],
label_font_size=40
)
image.save("test.png")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pygitcontributionchart-0.0.3.tar.gz.
File metadata
- Download URL: pygitcontributionchart-0.0.3.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1f9eb15a2fe9c7a0c46ddeb7c3abf5f68176f50240d9a22319f101737d55bff
|
|
| MD5 |
f179a4398faefbe3c3d0cdba034c80aa
|
|
| BLAKE2b-256 |
f75388309ee1f77ff602fdbf53e2b16f9b8e0d2a34c8f5e85aaeffe58d9ce19b
|
File details
Details for the file pygitcontributionchart-0.0.3-py3-none-any.whl.
File metadata
- Download URL: pygitcontributionchart-0.0.3-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
816bfb8f55fa61113996991e8417f55a7134ba5d0ef4365a9d53694cf1d6ea73
|
|
| MD5 |
b6bce937ab8a6297f4c841fdd6d41fcb
|
|
| BLAKE2b-256 |
943c3c237f968f016e9f08bbd4d805182973cf815b778cf2ae60d62872545368
|