Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cjcrafter/pythongettersandsetters

Plugin for PyCharm that adds Getters and Setters
https://github.com/cjcrafter/pythongettersandsetters

getters-and-setters idea intellij intellij-plugin jetbrains pycharm pycharm-plugin python

Last synced: 25 days ago
JSON representation

Plugin for PyCharm that adds Getters and Setters

Awesome Lists containing this project

README

        

# Python Getters And Setters

[![downloads](https://img.shields.io/jetbrains/plugin/d/20946?style=for-the-badge)](https://plugins.jetbrains.com/plugin/20946-python-getters-and-setters)
[![rating](https://img.shields.io/jetbrains/plugin/r/rating/20946?style=for-the-badge)](https://plugins.jetbrains.com/plugin/20946-python-getters-and-setters/reviews)

**Python Getters And Setters** is a convenient [PyCharm](https://www.jetbrains.com/pycharm/) plugin designed to effortlessly generate getters, setters, and deleters for your properties.

Ever wondered why you'd want to use getters and setters in Python? Dive into the [discussion](https://stackoverflow.com/questions/2627002/whats-the-pythonic-way-to-use-getters-and-setters) here.

plugin screenshot

## How to Generate Properties

1. Use the shortcut `alt + insert` or right-click within your code and select "generate."
2. A popup titled *"Generate"* will appear.
3. From the options available, select *"Getters and Setters"*.

## Customizing the Format

If the default format isn't quite right for you, don't worry. Customize the [live code template](https://www.jetbrains.com/help/pycharm/using-live-templates.html) to tailor it to your needs. Need guidance? Refer to [this discussion](https://github.com/CJCrafter/PythonGettersAndSetters/pull/1) on customizing the template.