Release Date: December 6, 2025
We're excited to announce the first stable release of PyImport2Pkg! This release marks the transition from alpha to production-ready status, with comprehensive internationalization, API stability improvements, and bug fixes.
PyImport2Pkg solves a common problem in the AI-assisted coding era:
Given Python code with import statements, quickly identify which pip packages need to be installed.
import cv2 # → pip install opencv-python
from PIL import Image # → pip install Pillow
import sklearn # → pip install scikit-learnPerfect for when AI generates code with lots of imports and you need to set up dependencies!
All CLI output has been translated from Chinese to English for better international accessibility.
Before (v0.3.0):
构建状态:
状态: completed
总包数: 5000
After (v1.0.0):
Build Status:
Status: completed
Total packages: 5000
Core classes are now exported from the package root for easier imports:
# Now you can do:
from pyimport2pkg import Scanner, Parser, Filter, Mapper, Exporter
# Instead of:
from pyimport2pkg.scanner import Scanner
from pyimport2pkg.parser import Parser
# ...- Dynamic Version in JSON Export - Fixed hardcoded "0.2.0" in JSON export metadata
- Complete JSON Export - Unresolved imports now properly included in JSON output
- Documentation Accuracy - Fixed all Python API examples in README
- CLI Documentation - Corrected parameter names (
--python-version,requirementsformat)
- Development Status: Alpha → Production/Stable
- All 304 tests passing
- Comprehensive documentation
- English + Chinese README
pip install pyimport2pkgOr upgrade from earlier versions:
pip install --upgrade pyimport2pkg# Analyze a project
pyimport2pkg analyze /path/to/project
# Generate requirements.txt
pyimport2pkg analyze . -o requirements.txt
# Query a specific module
pyimport2pkg query cv2- Update version to 1.0.0
- Internationalize all CLI output (Chinese → English)
- Export core classes from package root (
__init__.py) - Fix dynamic version in JSON export (was hardcoded 0.2.0)
- Fix missing
unresolvedparameter in JSON export - Fix mapper.py documentation and comment numbering
- Remove unused
Pathimport from mapper.py - Update development status to Production/Stable
- Fix README Python API examples (correct method names)
- Fix README CLI documentation (
--python-version,requirementsformat) - Update both English and Chinese READMEs
- Add comprehensive v1.0.0 changelog
- Create v1.0.0 user guide
- All 304 tests passing
- Updated test assertions to use dynamic version
- User Guide: USER_GUIDE_v1.0.0.md
- Changelog: CHANGELOG_v1.0.0.md
- README: English | 中文
Simply upgrade via pip - fully backward compatible:
pip install --upgrade pyimport2pkgNo configuration or code changes required for CLI usage.
If you import classes from submodules, you can now use the cleaner root imports:
# Old (still works)
from pyimport2pkg.scanner import Scanner
# New (recommended)
from pyimport2pkg import ScannerThank you to everyone who tested the v0.x releases and provided feedback. Your input helped shape this stable release!
- PyPI: https://pypi.org/project/pyimport2pkg/
- GitHub: https://github.com/buptanswer/pyimport2pkg
- Issues: https://github.com/buptanswer/pyimport2pkg/issues
- Documentation: See README.md
- Source code (zip)
- Source code (tar.gz)
- PyPI packages:
pyimport2pkg-1.0.0.tar.gzandpyimport2pkg-1.0.0-py3-none-any.whl
Full Changelog: v0.3.0...v1.0.0
Made with ❤️ for developers using AI code generators
🤖 This release was prepared with assistance from Claude Code