# In python wrapper methode GetElements() not works

**URL:** <https://openfhe.discourse.group/t/in-python-wrapper-methode-getelements-not-works/1436>\
**Category:** OpenFHE ports/wrappers\
**Created:** [July 20, 2024, 12:27am UTC](https://openfhe.discourse.group/t/in-python-wrapper-methode-getelements-not-works/1436 "2024-07-20T00:27:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![evgen](https://avatars.discourse-cdn.com/v4/letter/e/85f322/32.png) [@evgen](https://openfhe.discourse.group/u/evgen)\
**Post date:** [July 20, 2024, 12:27am UTC](https://openfhe.discourse.group/t/in-python-wrapper-methode-getelements-not-works/1436/1 "2024-07-20T00:27:38Z")

</div>

c1 = cc.Encrypt(keys.publicKey, ptx1)  
In python wrapper by calling methode:  
c1.GetElements()  
i get error: ‘openfhe.Ciphertext’ object has no attribute ‘GetElements’  
In openfhe development this methode works

---

<div class="post-metadata">

**Author:** ![dsuponitskiy-duality](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@dsuponitskiy-duality](https://openfhe.discourse.group/u/dsuponitskiy-duality)\
**Post date:** [July 24, 2024, 6:23pm UTC](https://openfhe.discourse.group/t/in-python-wrapper-methode-getelements-not-works/1436/2 "2024-07-24T18:23:41Z")

</div>

@evgen Some functions, that are available in the C++ library, are not exposed in openfhe-python to make the library more user-friendly.  
You could find all ciphertext function descriptions at [Ciphertext — openfhe-python 0.8.0 documentation](https://openfheorg.github.io/openfhe-python/html/ciphertext.html).

---

<div class="post-metadata">

**Author:** ![evgen](https://avatars.discourse-cdn.com/v4/letter/e/85f322/32.png) [@evgen](https://openfhe.discourse.group/u/evgen)\
**Post date:** [July 24, 2024, 7:02pm UTC](https://openfhe.discourse.group/t/in-python-wrapper-methode-getelements-not-works/1436/3 "2024-07-24T19:02:34Z")

</div>

ok, python wrapper is really user-friendly, but some functions are esssentially(in my opinion)

---

<div class="post-metadata">

**Author:** ![ypolyakov](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/ypolyakov/32/47_2.png) [@ypolyakov](https://openfhe.discourse.group/u/ypolyakov)\
**Post date:** [July 26, 2024, 1:54am UTC](https://openfhe.discourse.group/t/in-python-wrapper-methode-getelements-not-works/1436/4 "2024-07-26T01:54:45Z")

</div>

I’ve added an issue for this to the Python wrapper repo: [Expose GetElements() method for Ciphertext · Issue #161 · openfheorg/openfhe-python · GitHub](https://github.com/openfheorg/openfhe-python/issues/161)

---

<div class="post-metadata">

**Author:** ![dsuponitskiy-duality](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@dsuponitskiy-duality](https://openfhe.discourse.group/u/dsuponitskiy-duality)\
**Post date:** [August 6, 2024, 8:43pm UTC](https://openfhe.discourse.group/t/in-python-wrapper-methode-getelements-not-works/1436/5 "2024-08-06T20:43:13Z")

</div>

@evgen [The issue has been closed](https://github.com/openfheorg/openfhe-python/issues/161). The current design of openfhe-python does not require this method as the DCRTPoly elements are used internally only and don’t need to be exposed anymore. It is a better software engineering solution.
