ArcGIS Python API for working with ArcGIS Online and Portal for ArcGIS
For more details see https://developers.arcgis.com/python/
The ArcGIS Python API lets ArcGIS users, developers, and anyone with an ArcGIS Online subscription or an ArcGIS Portal leverage the Python ecosystem to automate their workflows and perform repetitive tasks using scripts. The API integrates well with the Jupyter Notebook and the SciPy stack. It enables academics, data scientists, and GIS analysts to share programs and reproducible research with others.