# Script to list all library script functions

**URL:** <https://forum.inductiveautomation.com/t/script-to-list-all-library-script-functions/64639>\
**Category:** Ignition\
**Created:** [September 29, 2022, 8:29am UTC](https://forum.inductiveautomation.com/t/script-to-list-all-library-script-functions/64639 "2022-09-29T08:29:55Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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:** [September 29, 2022, 3:54pm UTC](https://forum.inductiveautomation.com/t/script-to-list-all-library-script-functions/64639/6 "2022-09-29T15:54:41Z")

</div>

A function object from a script module has substantial information attached. Try this (and variations) in your script console:

```auto
def myFunc(arg1, *args):
	pass

for x in dir(myFunc):
	a = getattr(myFunc, x)
	print x, type(a), repr(a)

```

Note the stuff at the end:

```auto
__call__ <type 'builtin_function_or_method'> <built-in method __call__ of function object at 0x2>
__class__ <type 'type'> <type 'function'>
__closure__ <type 'NoneType'> None
__code__ <type 'tablecode'> <code object myFunc at 0x3, file "<input>", line 1>
__defaults__ <type 'NoneType'> None
__delattr__ <type 'builtin_function_or_method'> <built-in method __delattr__ of function object at 0x2>
__dict__ <type 'dict'> {}
__doc__ <type 'NoneType'> None
__ensure_finalizer__ <type 'builtin_function_or_method'> <built-in method __ensure_finalizer__ of function object at 0x2>
__format__ <type 'builtin_function_or_method'> <built-in method __format__ of function object at 0x2>
__get__ <type 'builtin_function_or_method'> <built-in method __get__ of function object at 0x2>
__getattribute__ <type 'builtin_function_or_method'> <built-in method __getattribute__ of function object at 0x2>
__globals__ <type 'dict'> {'a': {...}, ' __builtins__': <module ' __builtin__' (built-in)>, 'objScrHelpers': <module objScrHelpers at 4>, ' __package__': None, 'system': <app package system at 5>, ' __name__': ' __main__', 'fpmi': <app package system at 6>, 'inspect': <module inspect at 7>, 'x': ' __globals__', ' __doc__': None, 'myFunc': <function myFunc at 0x2>}
__hash__ <type 'builtin_function_or_method'> <built-in method __hash__ of function object at 0x2>
__init__ <type 'builtin_function_or_method'> <built-in method __init__ of function object at 0x2>
__module__ <type 'str'> ' __main__'
__name__ <type 'str'> 'myFunc'
__new__ <type 'builtin_function_or_method'> <built-in method __new__ of type object at 0x8>
__reduce__ <type 'builtin_function_or_method'> <built-in method __reduce__ of function object at 0x2>
__reduce_ex__ <type 'builtin_function_or_method'> <built-in method __reduce_ex__ of function object at 0x2>
__repr__ <type 'builtin_function_or_method'> <built-in method __repr__ of function object at 0x2>
__setattr__ <type 'builtin_function_or_method'> <built-in method __setattr__ of function object at 0x2>
__str__ <type 'builtin_function_or_method'> <built-in method __str__ of function object at 0x2>
__subclasshook__ <type 'builtin_function_or_method'> <built-in method __subclasshook__ of type object at 0x8>
func_closure <type 'NoneType'> None
func_code <type 'tablecode'> <code object myFunc at 0x3, file "<input>", line 1>
func_defaults <type 'NoneType'> None
func_dict <type 'dict'> {}
func_doc <type 'NoneType'> None
func_globals <type 'dict'> {'a': {...}, ' __builtins__': <module ' __builtin__' (built-in)>, 'objScrHelpers': <module objScrHelpers at 4>, ' __package__': None, 'system': <app package system at 5>, ' __name__': ' __main__', 'fpmi': <app package system at 6>, 'inspect': <module inspect at 7>, 'x': 'func_globals', ' __doc__': None, 'myFunc': <function myFunc at 0x2>}
func_name <type 'str'> 'myFunc'

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/script-to-list-all-library-script-functions/64639)._
