Skip to main content

A utility for interacting with data from git repositories as Pandas dataframes

Project description

v0.0.5

![Cumulative Blame Stravalib](https://raw.githubusercontent.com/wdm0006/git-pandas/master/examples/img/stravalib_cumulative_blame.png)

A simple set of wrappers around gitpython for creating pandas dataframes out of git data. The project is centered around two primary objects:

  • Repository

  • ProjectDirectory

A Repository object contains a single git repo, and is used to interact with it. A ProjectDirectory references a directory in your filesystem which may have in it multiple git repositories. The subdirectories are all walked to find any child repos, and any analysis is aggregated up from all of those into a single output (pandas dataframe).

This is a pre-v1.0.0 project, so the interfaces and functionality may change.

Current functionality includes:

  • Commit history with extension and directory filtering

  • Edited files history with extension and directory filtering

  • Blame with extension and directory filtering

  • Branches

  • Tags

  • ProjectDirectory-level general information table

  • Approximate bus factor

  • Cumulative Blame as a time series

Please see examples for more detailed usage. The image above is generated using the repository object’s cumulative blame function on stravalib.

Installation

To install use:

pip install git-pandas

Documentation

Docs can be found here: [http://wdm0006.github.io/git-pandas/](http://wdm0006.github.io/git-pandas/)

Contributing

We are looking for contributors, so if you are interested, please review our contributor guidelines in CONTRIBUTING.md, which includes some proposed starter issues, or if you have an idea of your own, send us a pull request.

License

This is BSD licensed (see LICENSE.md)

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

git-pandas-0.0.5.tar.gz (12.0 kB view details)

Uploaded Source

File details

Details for the file git-pandas-0.0.5.tar.gz.

File metadata

  • Download URL: git-pandas-0.0.5.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for git-pandas-0.0.5.tar.gz
Algorithm Hash digest
SHA256 42340ac74bc959f961edc09f460f5350dff13df5a824aaa4f2a231cf8ccb6185
MD5 9f23e04d13d0335368a6c5019cff63dd
BLAKE2b-256 bbd4f3e5d8dfc2f49ded06a78cc193d5f38a359a4155233247e0d73098226034

See more details on using hashes here.

Supported by

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