<?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 Document Python Toolboxes (.pyt) in Source Code in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/document-python-toolboxes-pyt-in-source-code/idi-p/922246</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm working on re-developing some custom ArcMap toolboxes with the new &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/creating-tools/a-quick-tour-of-python-toolboxes.htm"&gt;Python Toolbox (.pyt)&lt;/A&gt;&amp;nbsp;format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Overall, the functionality is much better than the standard ArcMap Toolboxes (.tbx) because &lt;EM&gt;most&amp;nbsp;&lt;/EM&gt;of the functionality is embedded in the source code, and not in any binary data as with .tbx files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That said, is there any way to add the documentation/help for the tool and each parameter within the source code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently, the only way I know how to edit the help files is by &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/creating-tools/documenting-a-tool-in-a-python-toolbox.htm"&gt;editing the Item Description&lt;/A&gt;, but feel it would be a greater benefit to include within the .pyt code itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible? Or are there currently any work-arounds to achieve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jul 2018 19:35:36 GMT</pubDate>
    <dc:creator>StevenGonzalez1</dc:creator>
    <dc:date>2018-07-11T19:35:36Z</dc:date>
    <item>
      <title>Add ability to document Python Toolboxes from within pyt file.</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/document-python-toolboxes-pyt-in-source-code/idc-p/972253#M22837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I would like to be able to add documentation to my Python Toolboxes inside of the pyt file instead of creating the documentation through ArcGIS Desktop "Item Description" process (which generates XML files).&lt;BR /&gt;&lt;BR /&gt;Using the existing method, sometimes if I add a parameter to a Python Toolbox tool, the XML files will be regenerated and I have to redo all of the documentation from scratch.&amp;nbsp; Not cool.

&lt;!-- content transformation source ID: 087E00000004QC2 --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 23:13:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/document-python-toolboxes-pyt-in-source-code/idc-p/972253#M22837</guid>
      <dc:creator>JeffJacobson</dc:creator>
      <dc:date>2012-11-08T23:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Add ability to document Python Toolboxes from within pyt file.</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/document-python-toolboxes-pyt-in-source-code/idc-p/972254#M22838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Not a direct solution to this issue, but one thing that does help is adding your XML files to a version control system -- I do this with all of the documentation, and this allows you to move between versions easily. The issue of XML regeneration has been fixed, at 10.1SP1 if you add parameters, I can confirm the rest of the help is retained.

&lt;!-- content transformation source ID: 00aE0000002zbiY --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jun 2013 06:26:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/document-python-toolboxes-pyt-in-source-code/idc-p/972254#M22838</guid>
      <dc:creator>ShaunWalbridge</dc:creator>
      <dc:date>2013-06-19T06:26:47Z</dc:date>
    </item>
    <item>
      <title>Document Python Toolboxes (.pyt) in Source Code</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/document-python-toolboxes-pyt-in-source-code/idi-p/922246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm working on re-developing some custom ArcMap toolboxes with the new &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/creating-tools/a-quick-tour-of-python-toolboxes.htm"&gt;Python Toolbox (.pyt)&lt;/A&gt;&amp;nbsp;format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Overall, the functionality is much better than the standard ArcMap Toolboxes (.tbx) because &lt;EM&gt;most&amp;nbsp;&lt;/EM&gt;of the functionality is embedded in the source code, and not in any binary data as with .tbx files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That said, is there any way to add the documentation/help for the tool and each parameter within the source code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently, the only way I know how to edit the help files is by &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/creating-tools/documenting-a-tool-in-a-python-toolbox.htm"&gt;editing the Item Description&lt;/A&gt;, but feel it would be a greater benefit to include within the .pyt code itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible? Or are there currently any work-arounds to achieve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2018 19:35:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/document-python-toolboxes-pyt-in-source-code/idi-p/922246</guid>
      <dc:creator>StevenGonzalez1</dc:creator>
      <dc:date>2018-07-11T19:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Document Python Toolboxes (.pyt) in Source Code</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/document-python-toolboxes-pyt-in-source-code/idc-p/922247#M282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To my knowledge the only way to document parameters for the GUI is to edit the Item Description as you are doing. I would be surprised if this idea is implemented as I guess it would require them to rewrite how the geo-processing framework accesses such information, but you never know?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2018 15:13:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/document-python-toolboxes-pyt-in-source-code/idc-p/922247#M282</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2018-07-12T15:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Document Python Toolboxes (.pyt) in Source Code</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/document-python-toolboxes-pyt-in-source-code/idc-p/922248#M283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Duncan. Admittedly, my understanding of the backend processes (i.e.: the geo-processing framework) is quite limited. Nevertheless, it'd still be a nice feature!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2018 15:20:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/document-python-toolboxes-pyt-in-source-code/idc-p/922248#M283</guid>
      <dc:creator>StevenGonzalez1</dc:creator>
      <dc:date>2018-07-12T15:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: Document Python Toolboxes (.pyt) in Source Code</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/document-python-toolboxes-pyt-in-source-code/idc-p/922249#M284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would probably be best to first ask this as a question in a space like &lt;A href="https://community.esri.com/space/2087"&gt;Geoprocessing&lt;/A&gt;‌ or &lt;A href="https://community.esri.com/space/2145"&gt;Python&lt;/A&gt;‌&amp;nbsp; If there isn't a way, then submit as an Idea, or log an enhancement request with technical support.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2018 14:47:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/document-python-toolboxes-pyt-in-source-code/idc-p/922249#M284</guid>
      <dc:creator>KoryKramer</dc:creator>
      <dc:date>2018-07-13T14:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Document Python Toolboxes (.pyt) in Source Code</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/document-python-toolboxes-pyt-in-source-code/idc-p/922250#M285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would be very much in favor of this approach. &lt;A href="http://www.sphinx-doc.org/en/master/"&gt;Sphinx &lt;/A&gt;and &lt;A href="https://cran.r-project.org/web/packages/roxygen2/vignettes/roxygen2.html"&gt;roxygen2 for R&lt;/A&gt; have been doing this for year! I've posted this as a question into&amp;nbsp;&lt;A href="https://community.esri.com/space/2145"&gt;Python&lt;/A&gt;&amp;nbsp;(see &lt;A _jive_internal="true" href="https://community.esri.com/message/842679-python-toolbox-documentation-from-within-pyt-file"&gt;here&lt;/A&gt;). I came here after writing &lt;A href="https://gis.stackexchange.com/q/317308/40929"&gt;an SO question&lt;/A&gt; on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2019 15:39:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/document-python-toolboxes-pyt-in-source-code/idc-p/922250#M285</guid>
      <dc:creator>NilsRatnaweera1</dc:creator>
      <dc:date>2019-04-02T15:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Document Python Toolboxes (.pyt) in Source Code</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/document-python-toolboxes-pyt-in-source-code/idc-p/922251#M286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've actually been able to solve this some lines of python code. See my stackoverflow answer:&amp;nbsp;&lt;A class="link-titled" href="https://gis.stackexchange.com/a/321470/40929" title="https://gis.stackexchange.com/a/321470/40929"&gt;arcpy - Python toolbox documentation from within pyt file - Geographic Information Systems Stack Exchange&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2019 13:04:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/document-python-toolboxes-pyt-in-source-code/idc-p/922251#M286</guid>
      <dc:creator>NilsRatnaweera1</dc:creator>
      <dc:date>2019-05-02T13:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Document Python Toolboxes (.pyt) in Source Code</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/document-python-toolboxes-pyt-in-source-code/idc-p/922252#M287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To create documentation for Python toolboxes is a pain in the neck. Docstrings/Sphinx could be one possible solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2020 06:36:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/document-python-toolboxes-pyt-in-source-code/idc-p/922252#M287</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-05-25T06:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Document Python Toolboxes (.pyt) in Source Code</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/document-python-toolboxes-pyt-in-source-code/idc-p/1017797#M14863</link>
      <description>&lt;P&gt;Would like to see this enhancement implemented soon.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 23:36:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/document-python-toolboxes-pyt-in-source-code/idc-p/1017797#M14863</guid>
      <dc:creator>MarkJTurnbull</dc:creator>
      <dc:date>2021-01-18T23:36:34Z</dc:date>
    </item>
    <item>
      <title>Add Tooltip to Python Toolbox ParameterInfo items</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/document-python-toolboxes-pyt-in-source-code/idc-p/1596427#M34540</link>
      <description>&lt;P&gt;Currently, the python toolbox parameter tooltips are stored in the Metadata files for the Toolbox. This is wrong. Tooltips are &lt;EM&gt;not&lt;/EM&gt; metadata.&lt;BR /&gt;This means that anyone wanting to copy the toolbox must also copy hundreds of .xml files as well. Most people don't know they have to do this, and don't want to anyway.&lt;BR /&gt;If the parameter input had an additional line for tooltip, this would remove the problem.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 01:51:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/document-python-toolboxes-pyt-in-source-code/idc-p/1596427#M34540</guid>
      <dc:creator>JohnMcGlynn</dc:creator>
      <dc:date>2025-03-18T01:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Add Tooltip to Python Toolbox ParameterInfo items</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/document-python-toolboxes-pyt-in-source-code/idc-p/1596667#M34541</link>
      <description>&lt;P&gt;Yes, PLEASE.&lt;/P&gt;&lt;P&gt;(I think there may be another Idea out for this out there but I can't find it.)&lt;/P&gt;&lt;P&gt;The XMLs are such a pain to deal with. Copying them over with the toolbox, etc. It'd be one thing if we could place them in another folder or something; for each PYT I make, it gets its own folder, and within that, I sometimes have another folder or two for project-specific modules I've downloaded or for template files, etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But having like 10 XMLs floating around is a pain.&lt;/P&gt;&lt;P&gt;I appreciate being able to format the text and stuff for metadata, and I appreciate that the XMLs probably make it easier to switch between metadata styles, but PLEASE let us just set parameter and tool and toolbox metadata as part of each class's properties. I'd gladly trade formatting for that.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 17:06:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/document-python-toolboxes-pyt-in-source-code/idc-p/1596667#M34541</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2025-03-18T17:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Document Python Toolboxes (.pyt) in Source Code</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/document-python-toolboxes-pyt-in-source-code/idc-p/1696707#M38155</link>
      <description>&lt;P&gt;Reawakening this thread because this is still a persistent issue. Even just allowing us to specify a file location for the generated XML would be great:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;class Tool:
    def __init__(self) -&amp;gt; None:
        ...
        self.xmldoc = f"{Path(__file__).parent / 'xml-doc' / type(self).__name__'}.xml"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;As it stands the most irritating thing is that these file NEED to be sidecars which absolutely pollutes any version control system AND makes it difficult to locate the actual toolbox if you have a lot of tools. I have one with ~90 tools and finding the pyt file is nearly impossible thanks to the 90 xml files surrounding it (not an issue with the filebrowser, but when using an IDE I need to disable display of the xml files)&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2026 14:31:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/document-python-toolboxes-pyt-in-source-code/idc-p/1696707#M38155</guid>
      <dc:creator>HaydenWelch</dc:creator>
      <dc:date>2026-04-16T14:31:39Z</dc:date>
    </item>
  </channel>
</rss>

