Skip to content

Instantly share code, notes, and snippets.

View TonyV23's full-sized avatar
:shipit:

HAKIZIMANA Tony Carlin TonyV23

:shipit:
View GitHub Profile
@TonyV23
TonyV23 / main.py
Created August 25, 2023 17:25
This is a python script using the PyDriller library that allows to extract in a repository information like commits, project contributors, modifications, diffs and source code
from pydriller import Repository
for commit in Repository('linkRepo').traverse_commits() :
print (commit.hash)
print (commit.author.name)
print (commit.author_date)
for modification in commit.modifications :
print(modification.file_name +' is changed ')