Show HN: deptry 0.14.0 – detect unused Python dependencies up to 10 times faster

deptry 0.14.0 was just released, bringing significant speed improvements: It is now up to 10 times faster than the previous release!

For those unfamiliar with deptry; deptry is a command line tool to check for issues with dependencies in a Python project, such as unused or missing dependencies.

GitHub: https://github.com/fpgmaas/deptry

For some benchmarks of the new release, see the release notes:

https://github.com/fpgmaas/deptry/releases/tag/0.14.0

The performance improvement was achieved by leveraging Rust to parse the AST and extract the import statements from .py files, rather than using Python's ast module.

The addition of Rust to the project also opens up doors for more optimizations in the future, so stay tuned!

142 points flo12392 2 years ago 24 comments

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton