在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
PyDrillerPyDriller is a Python framework that helps developers in analyzing Git repositories. With PyDriller you can easily extract information about commits, developers, modified files, diffs, and source code. Installpip install pydriller Quick usagefrom pydriller import Repositoryfor commit in Repository('https://github.com/ishepard/pydriller').traverse_commits(): print(commit.hash) print(commit.msg) print(commit.author.name) for file in commit.modified_files: print(file.filename, ' has changed') Read the docs for more usage examples.Furthermore, a video is available on Youtube. How to cite PyDriller@inproceedings{Spadini2018, address = {New York, New York, USA}, author = {Spadini, Davide and Aniche, Maur\'{i}cio and Bacchelli, Alberto}, booktitle = {Proceedings of the 2018 26th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering - ESEC/FSE 2018}, doi = {10.1145/3236024.3264598}, isbn = {9781450355735}, keywords = {2018,acm reference format,and alberto bacchelli,davide spadini,git,gitpython,maur\'{i}cio aniche,mining software repositories,pydriller,python}, pages = {908--911}, publisher = {ACM Press}, title = {{PyDriller: Python framework for mining software repositories}}, url = {http://dl.acm.org/citation.cfm?doid=3236024.3264598}, year = {2018}} How to contributeFirst clone the repository: git clone https://github.com/ishepard/pydriller.gitcd pydriller (Optional) It is suggested to make use of python3 -m venv venvsource venv/bin/activate Then, install the requirements: pip install -r requirements.txt (Important) I tend to not accept Pull Requests without tests, so:
To run the tests (using pytest): unzip test-repos.zippip install -r test-requirements.txtpytest AcknowledgementsThis project has received funding from the European Union's Horizon 2020 research and innovation programme under the Marie Sklodowska-Curie grant agreement No. 642954. |
请发表评论