The ArcGIS API for Python is a powerful, open-source library for working with GIS data and services. It provides a rich set of tools for spatial analysis, data management, and mapping, enabling automation and scripting workflows with ArcGIS Online and ArcGIS Enterprise portals. The current version is 2.4.2, and it follows a regular release cadence with several updates per year, often aligning with major ArcGIS platform releases.
pip install arcgisVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to connect to ArcGIS Online or an ArcGIS Enterprise portal using the GIS object. It shows how to authenticate and perform a basic content search. It is highly recommended to use environment variables for sensitive credentials.
Update your code to use the direct properties and methods on `gis.users`, `gis.groups`, and `gis.content`. For example, replace `gis.content.manager.search()` with `gis.content.search()`.
Replace calls to `gis.map()` with `gis.map_view()`.
Review the API reference for the 2.x series and update import paths for affected modules (e.g., `from arcgis.features import geoenrichment` instead of `from arcgis import geoenrichment`).
Configure trusted root certificates on your system, or for development/testing, you can temporarily set `verify_cert=False` in the `GIS` constructor (e.g., `gis = GIS(url, verify_cert=False)`). *Caution: Disabling certificate verification is not recommended for production environments.*
Remove the `.manager` attribute. For example, change `gis.content.manager.search()` to `gis.content.search()` and `gis.users.manager.get()` to `gis.users.get()`.
Update your import statement from `from arcgis import geoenrichment` to `from arcgis.features import geoenrichment`.
Double-check your `username`, `password`, and `portal_url`. Ensure the user has the necessary permissions to access the portal. Verify network connectivity to the portal URL.
Ensure the necessary root certificates are trusted by your system. For testing, you can pass `verify_cert=False` to the `GIS` constructor (e.g., `gis = GIS(url, username, password, verify_cert=False)`). *Use with caution and only in controlled environments.*
No dependency data recorded yet.