buptanswer/pyimport2pkg
🐍 Reverse mapping tool: from Python import statements to pip package names. Perfect for AI-generated code!
When working with Python code, especially code generated by AI tools, it can be tricky to figure out which installation packages (like `pip install some-package`) correspond to the `import` statements in the code. This tool takes your Python project or a list of import statements as input and tells you exactly which `pip` packages you need to install. It's designed for anyone writing or managing Python code, particularly developers who use AI-assisted coding.
Use this if you have Python code and need to quickly identify all the `pip` packages required to make it runnable, especially when dealing with AI-generated code or code where module names don't directly match package names.
Not ideal if you already know all the package dependencies for your project or if you are looking for a tool to manage your Python environments (like `venv` or `conda`).
Stars
7
Forks
—
Language
Python
License
—
Category
Last pushed
Dec 06, 2025
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/buptanswer/pyimport2pkg"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
inducer/cgen
C/C++ source generation from an AST
vil02/puzzle_generator
Generates python code representing a puzzle
westandskif/convtools
convtools is a specialized Python library for dynamic, declarative data transformations with...
numen31337/copy_with_extension
Auto-generate `copyWith` methods for your Dart classes.
finsberg/gotranx
Next generation ODE translator