Skip to main content

Visualize git commits and contributions

Project description

gitviz

Features

  • Analyze git logs for commits, merges, branches, contributions
  • Interactive Plotly dashboards (Streamlit)
  • Export to HTML, CSV, JSON
  • Theming, filtering, heatmaps, and more

CLI Usage

Install dependencies (recommended in a virtual environment):

pip install -r requirements.txt
python -m pip install .

Run the CLI to generate a dashboard:

gitviz C:\path\to\repo --output dashboard.html --theme plotly_dark --export-csv activity.csv --export-json activity.json

Quickly launch an interactive Streamlit dashboard:

gitviz C:\path\to\repo --serve

using in python code

you can also call the dashboard generator directly from python:

from gitviz import run_dashboard_analysis
run_dashboard_analysis(
        repo_path: '/path/to/repo', 
        output: str = 'dashboard.html', 
        theme:str='plotly', 
        app_name:str="Application Dashboard", 
        title:str="Git Activity Dashboard", 
        export_csv:str="activity.csv", 
        export_json:str="activity.json", 
        export_data:list=['json', 'csv'],)

Notes:

  • If --output is provided, a static interactive HTML file (Plotly) will be generated.
  • Use --serve to open a live Streamlit dashboard.
  • The CLI supports a typo alias --expart-csv for --export-csv to match historical usage.

Additional CLI filters and GIF export:

# Filter by author and search messages, restrict by dates
gitviz C:\path\to\repo --author Alice --search "fix" --since 2023-01-01 --until 2023-12-31 --output filtered.html

# Export a GIF of activity over time
gitviz C:\path\to\repo --export-gif C:\temp\activity.gif

Streamlit UI additions:

  • Use the inputs on the page to filter by author, message text, date ranges, and branch.
  • Use "Create Activity GIF" to generate a GIF and preview it inline.

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

gitviz-0.1.0.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

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

gitviz-0.1.0-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file gitviz-0.1.0.tar.gz.

File metadata

  • Download URL: gitviz-0.1.0.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for gitviz-0.1.0.tar.gz
Algorithm Hash digest
SHA256 75844b61bd3b0ad3fc2005242520bb70c0e3b057571822a34e012b9e1eb8baee
MD5 421c74b7a3747e391e464b08755fb594
BLAKE2b-256 dc4ef10392643ce683202805c83181a2a6541a9a64c98d1a9a35724f87ed128d

See more details on using hashes here.

File details

Details for the file gitviz-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: gitviz-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for gitviz-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 674d097536b9f238fdf1d1ed99aa12b0e2cf3ae10a711263b24416725c38ecdd
MD5 a1e19691a63aa2a761330c0de18cbf15
BLAKE2b-256 441e2e3c7508d8e5ccc49c28bd5e8b4614c33fb55bc2a0501e4038b2d0cc275b

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