<?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 publishing python script as geoprocessing in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-python-script-as-geoprocessing/m-p/529954#M20553</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have following python script and i want to publish it as geoprocessing service so that it can be used by the web client. I know how to publish&amp;nbsp; a model created with the model builder but need help for this . any help is appreciated. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import xlrd&amp;nbsp;&amp;nbsp;&amp;nbsp; # xlrd is the package used to read the excel sheet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;wb = xlrd.open_workbook('C://WEXFORD//Donatas_cost_May13.xlsx')&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Load XLRD Excel Reader&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sheetname = wb.sheet_names() #Read for XCL Sheet names&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sh1 = wb.sheet_by_index(1) #Login 2. Decentralised Plant&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Celllist=[]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;colindex=5&amp;nbsp; #index start 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arrayindex=[12,16,17,20,21,23,24] # index start 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for row in arrayindex:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Celllist.append(sh1.cell(row,colindex))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;return Celllist&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Jun 2013 09:13:16 GMT</pubDate>
    <dc:creator>NadeemQazi</dc:creator>
    <dc:date>2013-06-04T09:13:16Z</dc:date>
    <item>
      <title>publishing python script as geoprocessing</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-python-script-as-geoprocessing/m-p/529954#M20553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have following python script and i want to publish it as geoprocessing service so that it can be used by the web client. I know how to publish&amp;nbsp; a model created with the model builder but need help for this . any help is appreciated. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import xlrd&amp;nbsp;&amp;nbsp;&amp;nbsp; # xlrd is the package used to read the excel sheet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;wb = xlrd.open_workbook('C://WEXFORD//Donatas_cost_May13.xlsx')&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Load XLRD Excel Reader&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sheetname = wb.sheet_names() #Read for XCL Sheet names&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sh1 = wb.sheet_by_index(1) #Login 2. Decentralised Plant&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Celllist=[]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;colindex=5&amp;nbsp; #index start 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arrayindex=[12,16,17,20,21,23,24] # index start 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for row in arrayindex:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Celllist.append(sh1.cell(row,colindex))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;return Celllist&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2013 09:13:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-python-script-as-geoprocessing/m-p/529954#M20553</guid>
      <dc:creator>NadeemQazi</dc:creator>
      <dc:date>2013-06-04T09:13:16Z</dc:date>
    </item>
  </channel>
</rss>

