Select to view content in your preferred language

How to create a toolbox hiding the python script

102
3
yesterday
Labels (3)
GABRIELALEJANDROMESASALAMANCA
New Contributor

I've created a couple of scripts I use in some toolboxes to expedite some processes in my company, whoever I would like to keep the actual source code to the scripts hidden while sharing the toolboxes so that they can be used by other coworkers? Thanks in advanced for you help

0 Kudos
3 Replies
mokesl6
New Member

If you give them code in any form, they will be able to read it if they want to put the effort in. If you want to completely prevent them from being able to read it, you'd do something like host a web service, and run the code on the backend on their behalf.

0 Kudos
ChristopherCounsell
MVP Regular Contributor

It's possible to embed and password protect the script within the toolbox, exposing the parameters through the tool interface.

https://pro.arcgis.com/en/pro-app/latest/help/analysis/geoprocessing/basics/create-a-python-script-t...

https://desktop.arcgis.com/en/arcmap/latest/analyze/sharing-workflows/embedding-scripts-and-password...

Anyone capable enough of cracking this is probably capable enough of composing a python script in the first instance...

0 Kudos
DanPatterson
MVP Esteemed Contributor

scripts can also be encripted as in the case of *.pyt toolboxes

Comparing custom and Python toolboxes—ArcGIS Pro | Documentation

see additional security in the above thread


... sort of retired...
0 Kudos