BetterPy – Supercharge Your Python Development in PyCharm¶
BetterPy is a PyCharm plugin built to make everyday Python development faster and less repetitive. It hooks into PyCharm's native intentions and inspections engine to add thoughtful actions around type annotations, parameter refactoring, and code transformations - things like extracting parameter objects, toggling Optional hints, or copying annotations from parent methods.
The plugin is under active development, with a growing set of features targeting pytest tests and fixtures, generics, Protocol workflows, and deeper AI/MCP integrations.
GitHub: https://github.com/chbndrhnns/pycharm-plugin-betterpy
37 production-ready intentions, inspections, refactorings, and actions that make PyCharm even smarter for Python developers.
Pytest Power Tools¶
4 features. Features for fixtures, parametrize, mocking, test tree actions, and an interactive Pytest Explorer.
Type Safety¶
5 features. Wrap and unwrap expressions to match expected types, toggle type aliases, strip annotations, and get smarter completions.
Refactoring¶
8 features. Populate arguments, introduce parameter objects, extract protocols, change visibility, and more code transformations.
Productivity¶
4 features. Copy actions, generate classes, introduce custom types, enhanced dataclass info, and documentation helpers.
Code Quality¶
5 features. Inspections and filters for cleaner, safer Python code — from missing __all__ to shadowed stdlib names.
Imports & Modules¶
1 features. Manage imports and enforce module boundaries for cleaner project structure.
Navigation & Discovery¶
4 features. Enhanced navigation, search, and code discovery tools for Python projects.
IDE Customization¶
5 features. Tweaks to IDE surfaces — navigation bar, Structure View, Go-to popups, and run console — without touching your source code.
Quick Start¶
- Install the plugin from the JetBrains Marketplace — search for BetterPy.
- Open any Python file in PyCharm.
- Press ⌥⏎ / Alt+Enter on a parameter with a default value to try Make Parameter Mandatory — your first BetterPy intention.
Compatibility¶
| Requirement | Version |
|---|---|
| PyCharm / IntelliJ IDEA | 2026.1 or later |
| Python plugin | Must be installed and enabled |
All features are toggleable
Every BetterPy feature can be individually enabled or disabled in Settings → Tools → BetterPy. Incubating features are clearly marked so you know what's stable and what's experimental.