Skip to main content

Process and parse through git log statistic

Project description

A git log processor for better stats.

Setup

Install the library with:

# From pypi
python3 -m pip install git_processor

To use it, run the generate_git_logs.sh in where you have all your repository. It will create a stats.txt file.

import os
from git_processor.data import Projects

p = Projects(os.path.abspath("stats.txt"))  # Process the git log stats
p.clean_up_names()                          # Get all similar names as one
p.df                                        # Get the created dataframe
p.total()                                   # Total commits per user

Let’s use jupyter to display the information.

pyhton3 -m pip install jupyter
cd jupyter/
jupyter notebook

Once you are in the jupyter notebook, you can display the data and plot the stats. Check in the jupyter/ folder, you can reuse the demo and get your stats in one go. Just click on Run All Cell, or go along with <kbd>shift</kbd> + <kbd>enter</kbd> to run them individually.

Testing

To find out more info about the testing configuration, check out the tox.ini file.

# Run the test suite
tox
# Run the linter:
tox -e lint

Local Installation

Using a virtual environment:

# From pypi
python3 -m pip install virtualenv

Then set it up and install the package locally

# Create the virtual environment
python3 -m venv `pwd`/env
# Activate it
source env/bin/activate
# Install from local
(env) python3 -m pip install .

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

git_processor-0.5-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file git_processor-0.5-py3-none-any.whl.

File metadata

  • Download URL: git_processor-0.5-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.5

File hashes

Hashes for git_processor-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 08753948a6c6f1ae664b3af98d5dc7b0deda8cc1b690a0e99b9986163f49f48e
MD5 ac3bab041ee5ce7b7abc785513e4abd6
BLAKE2b-256 8808633a094a8b3bbe31fa06502678fd5cbb290ee0dd6c2817eff3454a839f4c

See more details on using hashes here.

Supported by

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