A git log processor for better stats.
View the demo git processor demo.
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 .
Metadata
Release files for git-processor 0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| git_processor-0.7-py3-none-any.whl | Python 3 | none | any | Details |
Release files / git_processor-0.7-py3-none-any.whl
| Download URL | git_processor-0.7-py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4144c4d775c5378e3bf6320d78f20e958300a26ce9ee0cd44dc6f187c014de22
|
|
BLAKE2b-256 checksum How to use checksums |
514f7f0a0dca08ba4317551d37275f8bc1c7dfc76a8586be548689896de2a950
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|