Select to view content in your preferred language

ArcPy: Compiling Python Toobox scripts (.pyt) that use ArcGIS Geoprocessing Tools to executable (.exe)?

556
2
11-07-2023 09:21 AM
CiciXiao
Esri Contributor

I've been developing a complex python toolbox to optimize user workflow. The python script (.pyt) is written based off the toolbox template and used arcpy for multiple geoprocessing tasks. I want the end product to be a EXE file - so that users can run it out of process without opening ArcGIS Pro.

 

is it possible to compile Python scripts that import the arcpy module and that call ArcToolBox tools?

It is possible to publish slpk or hosted feature layers using python without opening ArcGIS Pro? 

 

0 Kudos
2 Replies
BlakeTerhune
MVP Regular Contributor

You can import your Python toolbox and use it in a different, standalone script.

Add toolboxes in Python—ArcGIS Pro | Documentation

VinceAngelo
Esri Esteemed Contributor

You can certainly fashion a .bat file that calls python tool.pyt arg1 ... argN, but it can't be a .exe executable.

- V