APIScanner -- Towards Automated Detection of Deprecated APIs in Python Libraries
Aparna Vadlamani, Rishitha Kalicheti, Sridhar Chimalakonda

TL;DR
APIScanner is an automated tool that detects deprecated APIs in Python libraries by analyzing source code with ASTs, helping developers avoid deprecated API usage during coding.
Contribution
The paper introduces APIScanner, a novel static analysis tool that automatically identifies deprecated APIs in Python libraries, improving developer efficiency and code quality.
Findings
Detected 838 of 871 deprecated API elements in six libraries
APIScanner highlights deprecated APIs in real-time within Visual Studio Code
The tool reduces manual effort in maintaining up-to-date API usage
Abstract
Python libraries are widely used for machine learning and scientific computing tasks today. APIs in Python libraries are deprecated due to feature enhancements and bug fixes in the same way as in other languages. These deprecated APIs are discouraged from being used in further software development. Manually detecting and replacing deprecated APIs is a tedious and time-consuming task due to the large number of API calls used in the projects. Moreover, the lack of proper documentation for these deprecated APIs makes the task challenging. To address this challenge, we propose an algorithm and a tool APIScanner that automatically detects deprecated APIs in Python libraries. This algorithm parses the source code of the libraries using abstract syntax tree (ASTs) and identifies the deprecated APIs via decorator, hard-coded warning or comments. APIScanner is a Visual Studio Code Extension that…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
