<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Embedding and executing a python script or toolbox in Pro add-in without revealing python file contents in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/embedding-and-executing-a-python-script-or-toolbox/m-p/1573390#M12478</link>
    <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/geoprocessing_and_python/encrypting-python-toolboxes.htm" target="_blank"&gt;Encrypting a Python toolbox—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/geoprocessing_and_python/comparing-custom-and-python-toolboxes.htm" target="_blank"&gt;Comparing custom and Python toolboxes—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;custom toolboxes can have their code password protected and you could even dabble with encrypting the *.py file&lt;/P&gt;&lt;P&gt;In any event, licensing is your best option against undesired use since just about anything can be revealed if someone is persistent&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jan 2025 23:32:12 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2025-01-07T23:32:12Z</dc:date>
    <item>
      <title>Embedding and executing a python script or toolbox in Pro add-in without revealing python file contents</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/embedding-and-executing-a-python-script-or-toolbox/m-p/1573317#M12476</link>
      <description>&lt;P&gt;I'm using the Pro SDK to package up a python toolbox for distribution with my userbase. I use the directions given in the docs&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProGuide-content-and-image-resources#embedding-toolboxes" target="_self"&gt;here&lt;/A&gt; to embed the .py files in the required project structure and use a button from the SDK to execute the toolbox (&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic9384.html" target="_self"&gt;ExecuteToolAsync&lt;/A&gt; method).&lt;/P&gt;&lt;P&gt;Here's the problem. When the add-in loads, the contents of my Toolboxes folder is directly copied to&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;\Users\&amp;lt;username&amp;gt;\AppData\Local\ESRI\ArcGISPro\Toolboxes&lt;/FONT&gt;. Anyone who reads the docs knows to navigate to this location and access the python code. But I don't want to expose my python code to users.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What are my options if I want to ship a single .addInX file to users that also contains a .pyt, without revealing my business logic? The python code is written with several machine learning libraries, so it's not feasible to rewrite the python code in C#.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 20:57:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/embedding-and-executing-a-python-script-or-toolbox/m-p/1573317#M12476</guid>
      <dc:creator>KevinCheriyan</dc:creator>
      <dc:date>2025-01-07T20:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Embedding and executing a python script or toolbox in Pro add-in without revealing python file contents</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/embedding-and-executing-a-python-script-or-toolbox/m-p/1573390#M12478</link>
      <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/geoprocessing_and_python/encrypting-python-toolboxes.htm" target="_blank"&gt;Encrypting a Python toolbox—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/geoprocessing_and_python/comparing-custom-and-python-toolboxes.htm" target="_blank"&gt;Comparing custom and Python toolboxes—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;custom toolboxes can have their code password protected and you could even dabble with encrypting the *.py file&lt;/P&gt;&lt;P&gt;In any event, licensing is your best option against undesired use since just about anything can be revealed if someone is persistent&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 23:32:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/embedding-and-executing-a-python-script-or-toolbox/m-p/1573390#M12478</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2025-01-07T23:32:12Z</dc:date>
    </item>
  </channel>
</rss>

