AnsweredAssumed Answered

Extract list of tools from a Python toolbox?

Question asked by curtvprice Champion on Oct 28, 2016
Latest reply on Oct 28, 2016 by curtvprice

Trying to dynamically get a list of tools and labels from a Python toolbox to drop into value table that makes it easy to call said tools.

The closest I can come is this, but I don't see how I can "get at" the labels. ArcMap certainly can do this, why can't I?

>>> arcpy.ImportToolbox(r"D:\Users\cprice\tools\arcgis\PAPeakFlow\scripts\PolygonInfo.pyt")
<module 'pinf' (built-in)>
>>> dir(arcpy.pinf)
['AddFieldAndValue', 'CalcValuesToTable', 'IntersectArea', ...
  '__alias__', '__all__', '__builtins__', '__doc__', '__name__', ...]

Outcomes