Show Menu
Cheatography

ArcGIS API for Python Cheat Sheet (DRAFT) by

ArcGIS API for Python is a powerful, modern Pythonic library for performing GIS visualization, analysis, data management, and GIS system administration tasks. Current version: 2.1.0.3 - March 6, 2023. Release notes: https://developers.arcgis.com/python/guide/release-notes-210/

This is a draft cheat sheet. It is a work in progress and is not finished yet.

SET UP

conda install -c esri arcgis
Install using conda
pipenv install arcgis
Install using Pipenv
from arcgis.gis import GIS
Import the GIS class in gis module

gis.admin module

 

AUTHEN­TIC­ATION

gis = GIS()
Connect to AGOL as anonymous user
gis = GIS('h­ome')
Connect to AGOL using built-in account
gis = GIS("ht­tps­://­arc­gis.co­m", "­<us­er>­", "­<pa­ssw­>")
Connect to AGOL using web-tier authen­tic­ation
gis = GIS("pr­o")
Connect through ArcGIS Pro

ADMINI­STR­ATION

gis.admin
Module of API to assist with admin tasks
gis.ad­min.li­cen­se.a­ll()
List apps licensed through org
gis.ad­min.cr­edi­ts.c­redits
View credits available