buptanswer/pyimport2pkg

🐍 Reverse mapping tool: from Python import statements to pip package names. Perfect for AI-generated code!

15
/ 100
Experimental

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`).

Python-development dependency-management AI-assisted-coding package-resolution requirements-generation
No License No Package No Dependents
Maintenance 6 / 25
Adoption 4 / 25
Maturity 5 / 25
Community 0 / 25

How are scores calculated?

Stars

7

Forks

Language

Python

License

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.