<?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: Can arcpy and ArcGIS API for Python code be used together? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-arcpy-and-arcgis-api-for-python-code-be-used/m-p/778242#M1074</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would suggest not, unless you need both &lt;SPAN style="font-family: courier new, courier, monospace;"&gt;arcpy&lt;/SPAN&gt; and &lt;SPAN style="font-family: courier new, courier, monospace;"&gt;arcgis&lt;/SPAN&gt;.&amp;nbsp; Loading unnecessary modules into an IDE or script should be avoided for both performance and maintainability reasons.&amp;nbsp; That said, &lt;SPAN style="font-family: courier new, courier, monospace;"&gt;arcgis&lt;/SPAN&gt; loads &lt;SPAN style="font-family: courier new, courier, monospace;"&gt;arcpy&lt;/SPAN&gt; for its own internal uses if &lt;SPAN style="font-family: courier new, courier, monospace;"&gt;arcpy&lt;/SPAN&gt; is available, which is partially why loading &lt;SPAN style="font-family: courier new, courier, monospace;"&gt;arcgis&lt;/SPAN&gt; takes so long relative to other packages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; sys
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; sys&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;modules&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;keys&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'arcpy'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'arcgis'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
set&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcgis
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; sys&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;modules&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;keys&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'arcpy'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'arcgis'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'arcgis'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'arcpy'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 08:46:10 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2021-12-12T08:46:10Z</dc:date>
    <item>
      <title>Can arcpy and ArcGIS API for Python code be used together?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-arcpy-and-arcgis-api-for-python-code-be-used/m-p/778234#M1066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to list out data sources for some portal items using ArcGIS api for python, then get information for those data sources that only arcpy can provide.&lt;/P&gt;&lt;P&gt;Can arcpy be used in an ArcGIS api for python script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;&lt;EM&gt;could&lt;/EM&gt; make an arcpy script and use ArcGIS Rest API within it, but I'd like to leverage the new ArcGIS API for python if possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Randy McGregor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2020 13:45:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/can-arcpy-and-arcgis-api-for-python-code-be-used/m-p/778234#M1066</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-01-07T13:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can arcpy and ArcGIS API for Python code be used together?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-arcpy-and-arcgis-api-for-python-code-be-used/m-p/778235#M1067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start&amp;nbsp;a Jupyter Notebook or JupyterLab notebook run the import arcpy.&amp;nbsp; You have access to arcpy and the tools in arctoolbox as well&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2020 14:22:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/can-arcpy-and-arcgis-api-for-python-code-be-used/m-p/778235#M1067</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-01-07T14:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Can arcpy and ArcGIS API for Python code be used together?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-arcpy-and-arcgis-api-for-python-code-be-used/m-p/778236#M1068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes they can be used together. However, you need to use python 3 so you need to install pro.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2020 14:26:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/can-arcpy-and-arcgis-api-for-python-code-be-used/m-p/778236#M1068</guid>
      <dc:creator>PatrickFilyer</dc:creator>
      <dc:date>2020-01-07T14:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Can arcpy and ArcGIS API for Python code be used together?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-arcpy-and-arcgis-api-for-python-code-be-used/m-p/778237#M1069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! I'm a bit embarrassed that it is that straightforward. I did have the impression that you couldn't directly access arcpy in this manner, but I was mistaken about that, apparently.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2020 14:28:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/can-arcpy-and-arcgis-api-for-python-code-be-used/m-p/778237#M1069</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-01-07T14:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can arcpy and ArcGIS API for Python code be used together?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-arcpy-and-arcgis-api-for-python-code-be-used/m-p/778238#M1070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I do have pro installed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2020 14:29:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/can-arcpy-and-arcgis-api-for-python-code-be-used/m-p/778238#M1070</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-01-07T14:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can arcpy and ArcGIS API for Python code be used together?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-arcpy-and-arcgis-api-for-python-code-be-used/m-p/778239#M1071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its as simple as import arcpy, arcgis (if you arent using notebooks)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2020 14:33:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/can-arcpy-and-arcgis-api-for-python-code-be-used/m-p/778239#M1071</guid>
      <dc:creator>PatrickFilyer</dc:creator>
      <dc:date>2020-01-07T14:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can arcpy and ArcGIS API for Python code be used together?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-arcpy-and-arcgis-api-for-python-code-be-used/m-p/778240#M1072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, if you're just making a "regular" python script with IDLE, import both arcpy and arcgis, then you have the both arcpy and arcgis api for python libraries?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2020 14:42:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/can-arcpy-and-arcgis-api-for-python-code-be-used/m-p/778240#M1072</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-01-07T14:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Can arcpy and ArcGIS API for Python code be used together?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-arcpy-and-arcgis-api-for-python-code-be-used/m-p/778241#M1073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. That is exactly what I do!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2020 14:51:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/can-arcpy-and-arcgis-api-for-python-code-be-used/m-p/778241#M1073</guid>
      <dc:creator>PatrickFilyer</dc:creator>
      <dc:date>2020-01-07T14:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can arcpy and ArcGIS API for Python code be used together?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-arcpy-and-arcgis-api-for-python-code-be-used/m-p/778242#M1074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would suggest not, unless you need both &lt;SPAN style="font-family: courier new, courier, monospace;"&gt;arcpy&lt;/SPAN&gt; and &lt;SPAN style="font-family: courier new, courier, monospace;"&gt;arcgis&lt;/SPAN&gt;.&amp;nbsp; Loading unnecessary modules into an IDE or script should be avoided for both performance and maintainability reasons.&amp;nbsp; That said, &lt;SPAN style="font-family: courier new, courier, monospace;"&gt;arcgis&lt;/SPAN&gt; loads &lt;SPAN style="font-family: courier new, courier, monospace;"&gt;arcpy&lt;/SPAN&gt; for its own internal uses if &lt;SPAN style="font-family: courier new, courier, monospace;"&gt;arcpy&lt;/SPAN&gt; is available, which is partially why loading &lt;SPAN style="font-family: courier new, courier, monospace;"&gt;arcgis&lt;/SPAN&gt; takes so long relative to other packages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; sys
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; sys&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;modules&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;keys&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'arcpy'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'arcgis'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
set&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcgis
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; sys&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;modules&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;keys&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'arcpy'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'arcgis'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'arcgis'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'arcpy'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:46:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/can-arcpy-and-arcgis-api-for-python-code-be-used/m-p/778242#M1074</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-12-12T08:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can arcpy and ArcGIS API for Python code be used together?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-arcpy-and-arcgis-api-for-python-code-be-used/m-p/778243#M1075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't had any real problems with it.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2020 16:13:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/can-arcpy-and-arcgis-api-for-python-code-be-used/m-p/778243#M1075</guid>
      <dc:creator>PatrickFilyer</dc:creator>
      <dc:date>2020-01-07T16:13:54Z</dc:date>
    </item>
  </channel>
</rss>

