# List of libraries used in import in scripts

**URL:** <https://forum.inductiveautomation.com/t/list-of-libraries-used-in-import-in-scripts/11609>\
**Category:** Ignition\
**Created:** [May 2, 2016, 9:59pm UTC](https://forum.inductiveautomation.com/t/list-of-libraries-used-in-import-in-scripts/11609 "2016-05-02T21:59:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![compuzak](https://avatars.discourse-cdn.com/v4/letter/c/71c47a/32.png) [@compuzak](https://forum.inductiveautomation.com/u/compuzak)\
**Post date:** [May 2, 2016, 9:59pm UTC](https://forum.inductiveautomation.com/t/list-of-libraries-used-in-import-in-scripts/11609/1 "2016-05-02T21:59:30Z")

</div>

How can I find out what library/namespace I need to import in order for a function to work in a script?

For example, I am trying to use ‘trim’ on a variable in a project script and it gives me an error ‘trim’ is not defined.

I need to know how to find the proper namespace given a function.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [May 3, 2016, 1:53am UTC](https://forum.inductiveautomation.com/t/list-of-libraries-used-in-import-in-scripts/11609/2 "2016-05-03T01:53:28Z")

</div>

Python doesn’t have trim().  
It does have .strip(), .lstrip(), and .rstrip() methods for strings. The [online documentation for Jython](http://www.jython.org/docs/) is the best place to start. Then Google. 🙂

---

<div class="post-metadata">

**Author:** ![compuzak](https://avatars.discourse-cdn.com/v4/letter/c/71c47a/32.png) [@compuzak](https://forum.inductiveautomation.com/u/compuzak)\
**Post date:** [May 3, 2016, 3:26am UTC](https://forum.inductiveautomation.com/t/list-of-libraries-used-in-import-in-scripts/11609/3 "2016-05-03T03:26:28Z")

</div>

[quote=“pturmel”]Python doesn’t have trim().  
It does have .strip(), .lstrip(), and .rstrip() methods for strings. The [online documentation for Jython](http://www.jython.org/docs/) is the best place to start. Then Google. 🙂[/quote]

Thank you, I misunderstood, I thought all expression functions were also available in scripting. Thanks for pointing me in the right direction, very helpful.
