Skip to content

Instantly share code, notes, and snippets.

@sshopov
Created March 12, 2014 04:19
Show Gist options
  • Save sshopov/9500771 to your computer and use it in GitHub Desktop.
Save sshopov/9500771 to your computer and use it in GitHub Desktop.
Listing all tools for every toolbox in ArcGIS
import re
import arcpy
for toolbox in arcpy.ListToolboxes():
wildcard = re.search(r"\((\w+)\)", toolbox).group(1)
for tool in arcpy.ListTools("*_%s"%wildcard):
print toolbox, tool, arcpy.Usage(tool)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment