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.
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.)
From the Jupyter Notebook dashboard:
These scripts are offered as-is and without guarantee of functionality or support. Most of the scripts are designed to create, change, or delete multiple user accounts or items at once. Read the documentation and comments within the scripts before running. You must have an administrator-level account in the organization to run the scripts.
Jupyter Notebook files use the extension *.ipynb while traditional Python scripts use *.py . Download the ipynb files below and then open them in your Jupyter Notebook. You will need to add credentials and other parameters to these scripts before running. These required parameters are identified in cell 1 (top) of each script.
This guide is a subset of the complete installationa and set-up guide from Esri. For full documentation, visit the ArcGIS API for Python Guide.