# Import to\_uuid filter in a custom module

**URL:** <https://forum.ansible.com/t/import-to-uuid-filter-in-a-custom-module/34250>\
**Category:** Ansible Developer\
**Created:** [November 27, 2020, 11:02pm UTC](https://forum.ansible.com/t/import-to-uuid-filter-in-a-custom-module/34250 "2020-11-27T23:02:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fabio\_Rocha](https://avatars.discourse-cdn.com/v4/letter/f/47e85d/32.png) [@Fabio\_Rocha](https://forum.ansible.com/u/Fabio_Rocha)\
**Post date:** [November 27, 2020, 11:02pm UTC](https://forum.ansible.com/t/import-to-uuid-filter-in-a-custom-module/34250/1 "2020-11-27T23:02:55Z")

</div>

Hi all.

I’m trying to import the to\_uuid() filter function from plugins/filter/core.py to be used in a custom module I’m developing. Looked at Ansible documentation and around other sites but couldn’t find an answer. Does anybody can help?

---

<div class="post-metadata">

**Author:** ![felixfontein](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/felixfontein/32/7530_2.png) [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Post date:** [November 28, 2020, 9:41am UTC](https://forum.ansible.com/t/import-to-uuid-filter-in-a-custom-module/34250/2 "2020-11-28T09:41:09Z")

</div>

Hi,

if you mean an Ansible Python module, the answer is you can't. Modules  
can only import from module\_utils, and not from plugins or any other  
part of Ansible

Cheers,  
Felix
