Pydriller

Latest version: v2.7

Safety actively analyzes 706267 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 8

1.9

The function "get_commits_last_modified_lines" now uses *git hyper-blame* if available.
Thanks to marco-c for the PR!

1.8

- better handling of merge commits
- fix bug in decoding diffs and source code that was causing many diffs to be skipped
- include new filter **only_releases**
- now modification has the source code of before and after the change

1.7

Add new configuration "filepath" in RepositoryMining to obtain the list of commits that modified a file.

thanks to kanghj for the new feature!

1.6.3

Fix bug of the `parse_diff()` function that returned wrong results if the modified line was the last line in the file without a new line ending the file.

Thank you to gotec for his contribution!

1.6.2

Fixing an issue of the last update, that was causing memory swap.

1.6.1

Performance improvement.
Modifications and Branches are now calculated only the firs time they are accessed: consecutive calls on these 2 fields do not call Git anymore.

Page 5 of 8

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.