<?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>idea Allow multiple files for Python toolboxes in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/allow-multiple-files-for-python-toolboxes/idi-p/970838</link>
    <description>&lt;P&gt;I would like to be able to put each tool in a Python toolbox in its own file. This way I don't end up with a huge and hard to manage .pyt file if the toolbox contains a lot of tools. Right now I can write other modules and use them in the tool's execute method, which definitely helps, but putting the entire tool in its own file would be a lot better.&lt;BR /&gt;&lt;BR /&gt;I was thinking that maybe a Python toolbox could be a folder that contained all of the required files, kind of like a file geodatabase.&lt;/P&gt;&lt;!--  content transformation source ID: 087E00000004Vdg  --&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jul 2024 19:16:48 GMT</pubDate>
    <dc:creator>ChrisGarrard</dc:creator>
    <dc:date>2024-07-11T19:16:48Z</dc:date>
    <item>
      <title>Allow multiple files for Python toolboxes</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/allow-multiple-files-for-python-toolboxes/idi-p/970838</link>
      <description>&lt;P&gt;I would like to be able to put each tool in a Python toolbox in its own file. This way I don't end up with a huge and hard to manage .pyt file if the toolbox contains a lot of tools. Right now I can write other modules and use them in the tool's execute method, which definitely helps, but putting the entire tool in its own file would be a lot better.&lt;BR /&gt;&lt;BR /&gt;I was thinking that maybe a Python toolbox could be a folder that contained all of the required files, kind of like a file geodatabase.&lt;/P&gt;&lt;!--  content transformation source ID: 087E00000004Vdg  --&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 19:16:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/allow-multiple-files-for-python-toolboxes/idi-p/970838</guid>
      <dc:creator>ChrisGarrard</dc:creator>
      <dc:date>2024-07-11T19:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Allow multiple files for Python toolboxes</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/allow-multiple-files-for-python-toolboxes/idc-p/970839#M9197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Have a look at this &lt;A href="http://www.arcgis.com/home/item.html?id=3528bd72847c439f88190a137a1d0e67" target="_blank"&gt;python toolbox&lt;/A&gt; the Spatial Analyst team recently put out. &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;What they did, and what you could do is, is write out tool classes into individual .py's. &amp;nbsp;Then use a from-&amp;lt;py&amp;gt;-import-&amp;lt;tool&amp;gt; style to import in the tool classes. &amp;nbsp;Then you just have to add &amp;nbsp;the imported tool class(es) to the toolbox's tools property.&lt;BR /&gt;&lt;BR /&gt;-Dave&lt;BR /&gt;&lt;DIV&gt;
	&amp;nbsp;&lt;/DIV&gt;

&lt;!-- content transformation source ID: 00aE00000028bUD --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 21:12:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/allow-multiple-files-for-python-toolboxes/idc-p/970839#M9197</guid>
      <dc:creator>DavidWynne</dc:creator>
      <dc:date>2013-02-20T21:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Allow multiple files for Python toolboxes</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/allow-multiple-files-for-python-toolboxes/idc-p/970840#M9198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Yes, this is how I do it. See &lt;A href="http://forums.arcgis.com/threads/66230-Anyone-using-the-new-Python-Toolboxes-at-10.1?p=230255&amp;amp;viewfull=1#post230255"&gt;http://forums.arcgis.com/threads/66230-Anyone-using-the-new-Python-Toolboxes-at-10.1?p=230255&amp;amp;viewfull=1#post230255&lt;/A&gt;

&lt;!-- content transformation source ID: 00aE00000029MD5 --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Mar 2013 23:04:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/allow-multiple-files-for-python-toolboxes/idc-p/970840#M9198</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2013-03-24T23:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Allow multiple files for Python toolboxes - Status changed to: Closed</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/allow-multiple-files-for-python-toolboxes/idc-p/1507456#M31066</link>
      <description>&lt;P&gt;Thank you for submitting your idea to break out individual tools in a .pyt into separate files. We appreciate your suggestion and the time you took to provide detailed feedback.&amp;nbsp;The recommended way to separate individual tool logic from your Python Toolbox code is to place the tool logic in separate modules and import these in your .pyt (as described by in Dave and Luke's previous responses).&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 21:26:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/allow-multiple-files-for-python-toolboxes/idc-p/1507456#M31066</guid>
      <dc:creator>HannesZiegler</dc:creator>
      <dc:date>2024-07-19T21:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Allow multiple files for Python toolboxes</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/allow-multiple-files-for-python-toolboxes/idc-p/1541722#M32207</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/50334"&gt;@HannesZiegler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do think that the implementation I've shown in &lt;A href="https://github.com/hwelch-fle/pytframe2" target="_blank" rel="noopener"&gt;pytframe2&lt;/A&gt; is a good iteration on the code shown here. Utilizing module reloading and a more agnostic import system that relies not on import statements, but on a configuration dictionary.&lt;/P&gt;&lt;P&gt;Only adding a comment here to raise some awareness on similar solutions and hopefully gather similar ideas into one solution.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 01:30:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/allow-multiple-files-for-python-toolboxes/idc-p/1541722#M32207</guid>
      <dc:creator>HaydenWelch</dc:creator>
      <dc:date>2024-09-24T01:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Allow multiple files for Python toolboxes</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/allow-multiple-files-for-python-toolboxes/idc-p/1552519#M32550</link>
      <description>&lt;P&gt;Yes, thanks, some users viewing this idea may find it helpful&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2024 19:34:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/allow-multiple-files-for-python-toolboxes/idc-p/1552519#M32550</guid>
      <dc:creator>HannesZiegler</dc:creator>
      <dc:date>2024-10-25T19:34:21Z</dc:date>
    </item>
  </channel>
</rss>

