ARCGIS ONLINE PYTHON TOOLS FOR SCHOOLS

URL: http://esriurl.com/Tools4Schools
Date last updated: August 29, 2017

Welcome! These scripts help school teachers, IT staff, and tech leaders manage school organizations in a faster, more automated way. These scripts require that several software packages be installed. We stonrgly recommend exploring the Geo Jobe Admin Toools (at least the free version) before attempting to use the scripts below.

Python is an open-source scripting language. Python is a scripting language that allows you to automate tasks, create visualizations, or manage services (like ArcGIS Online). Python is extremely flexible and used in countless ways. Python is written in an editor (like notepad) and then run (or compiled). Python is case-sensitive. It also uses spaces and tabs to understand how to process your scripting - so no errant capitalization or spacing. The web has numerous references for Python but be careful - Python 2 and 3 have some critical differences. Always know what version of code you are looking at. Lastly, many scripters make comments inside of code to teall themselves or readers what a script can do. Look for the pound sign/hastag (#) to indicate a comment - a line of text ignored during code compilation. The workflow and scripts below with run on PC, Mac or Linux - with or without any other ArcGIS or Esri tool installed.

Setting It Up

Python 3 is the foundation of the scripts used in the guide but you'll need other tools as well. Download and install software in the order listed below.

Conda (also Anaconda) is a popular package and manager application that helps you install and update Python software packages.

The ArcGIS API for Python (learn more) is software that allows for communication between our Python scripts and ArcGIS Online. It too is a software package that must be installed - although now you can use Conda to install the software using a Terminal or Command window! If you are running a Windows OS, you can type this into your command prompt or PowerShell. If you are running a Mac or Linux OS, you can type this into your Terminal application.

The Jupyter Notebook environment (learn more) lets you run Python code in an interactive manner and visualize the output as maps and charts. Think of it as scripting in a web browser. Once conda and the ArcGIS API for Python is installed, you can start the Jupyter Notebook environment by typing the following command in your terminal. (Watch the spelling.)

Testing It

From the Jupyter Notebook dashboard: