# Access Property Getters/Setters Python

**URL:** <https://forum.opentap.io/t/access-property-getters-setters-python/368>\
**Category:** Technical\
**Tags:** python\
**Created:** [July 1, 2021, 6:52pm UTC](https://forum.opentap.io/t/access-property-getters-setters-python/368 "2021-07-01T18:52:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![john.berlien](https://avatars.discourse-cdn.com/v4/letter/j/ac91a4/32.png) [@john.berlien](https://forum.opentap.io/u/john.berlien)\
**Post date:** [July 1, 2021, 6:52pm UTC](https://forum.opentap.io/t/access-property-getters-setters-python/368/1 "2021-07-01T18:52:50Z")

</div>

Is there any way to access/define the getters and setters of the properties of classes you add in Python? Like if I add the “visa\_address” property, would there be any way to define the getter and setter? Python has Properties, that work different from Python attributes, where you can define getters and setters, but would that get incorporated into the OpenTAP plugin?

---

<div class="post-metadata">

**Author:** ![brennen\_direnzo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opentap.io/brennen_direnzo/32/6_2.png) [@brennen\_direnzo](https://forum.opentap.io/u/brennen_direnzo)\
**Post date:** [July 6, 2021, 4:05pm UTC](https://forum.opentap.io/t/access-property-getters-setters-python/368/2 "2021-07-06T16:05:06Z")

</div>

@john.berlien are you referring to using the `@property` and `@property.setter`?

It is possible to use these, but they would be more like private properties, and not reflected to OpenTAP.

---

<div class="post-metadata">

**Author:** ![john.berlien](https://avatars.discourse-cdn.com/v4/letter/j/ac91a4/32.png) [@john.berlien](https://forum.opentap.io/u/john.berlien)\
**Post date:** [July 6, 2021, 4:07pm UTC](https://forum.opentap.io/t/access-property-getters-setters-python/368/3 "2021-07-06T16:07:28Z")

</div>

That’s basically what I was referring to, and yeah that’s what I was afraid of. Not ideal, but there are ways around it.
