<?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 Support Arcade Expressions in Python in Python Ideas</title>
    <link>https://community.esri.com/t5/python-ideas/support-arcade-expressions-in-python/idi-p/1562518</link>
    <description>&lt;P&gt;I have encountered several circumstances where I was wishing I was able to run arcade expressions directly in a python script.&lt;BR /&gt;&lt;BR /&gt;Since attribute rules only support arcade a lot of time has been spent building expressions and logic in the form of arcade expressions.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Then later on when building an automation workflow I have had to incorporate some of the same logic and had to completely rebuild the script using Python commands instead.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;My thought is this, similar to how you can run SQL scripts inside of a Python script, create a way to pass arcade expressions inside of a python script to perform logic/analysis on the data and pass the output of the arcade expression back to the python script.&lt;BR /&gt;&lt;BR /&gt;Would love to see this!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Nov 2024 05:16:53 GMT</pubDate>
    <dc:creator>ckeener217</dc:creator>
    <dc:date>2024-11-26T05:16:53Z</dc:date>
    <item>
      <title>Support Arcade Expressions in Python</title>
      <link>https://community.esri.com/t5/python-ideas/support-arcade-expressions-in-python/idi-p/1562518</link>
      <description>&lt;P&gt;I have encountered several circumstances where I was wishing I was able to run arcade expressions directly in a python script.&lt;BR /&gt;&lt;BR /&gt;Since attribute rules only support arcade a lot of time has been spent building expressions and logic in the form of arcade expressions.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Then later on when building an automation workflow I have had to incorporate some of the same logic and had to completely rebuild the script using Python commands instead.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;My thought is this, similar to how you can run SQL scripts inside of a Python script, create a way to pass arcade expressions inside of a python script to perform logic/analysis on the data and pass the output of the arcade expression back to the python script.&lt;BR /&gt;&lt;BR /&gt;Would love to see this!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 05:16:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-ideas/support-arcade-expressions-in-python/idi-p/1562518</guid>
      <dc:creator>ckeener217</dc:creator>
      <dc:date>2024-11-26T05:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Support Arcade Expressions in Python</title>
      <link>https://community.esri.com/t5/python-ideas/support-arcade-expressions-in-python/idc-p/1642875#M504</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/856213"&gt;@ckeener217&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Can you give a code example of the Arcade and converted Python scripts you mentioned?&amp;nbsp; Since you mentioned attribute rules, my mind goes to&amp;nbsp;arcpy.management.AddAttributeRule(in_table, name, type, script_expression &amp;lt;arcade&amp;gt;) where I believe the output to Python is a result object and the function side effect modifies the db Table View in place.&amp;nbsp; I'm trying to get a better understanding what you want output back to you to help solve the issue.&amp;nbsp; Thx.&lt;BR /&gt;&lt;BR /&gt;Tyler&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 14:21:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-ideas/support-arcade-expressions-in-python/idc-p/1642875#M504</guid>
      <dc:creator>TylerT</dc:creator>
      <dc:date>2025-08-18T14:21:09Z</dc:date>
    </item>
  </channel>
</rss>

