Installation¶
Requirements¶
- Python 3.10 or higher
- LibCST (installed automatically)
Install from PyPI¶
Install with Optional Dependencies¶
# Include Rope for semantic refactoring (move with import updates)
pip install rejig[rope]
# Include all optional dependencies
pip install rejig[all]
Install from Source¶
Verify Installation¶
Editor Integration¶
Rejig is a library, not a CLI tool. You'll typically use it in:
- Python scripts — Write refactoring scripts for your project
- Jupyter notebooks — Explore and test transformations interactively
- CI/CD pipelines — Automate code migrations
- Custom CLI tools — Build project-specific refactoring commands