I am currently doing the below
from arcgis.gis import GIS
import arcgis
gis = GIS('https://xyz.maps.arcgis.com', agol_username, agol_password)
But I do not want to hard code the Username and Password in the script
Can I do something like point to an SDE connection?
I want a way to HIDE the credentials
from arcgis.gis import GIS
import arcgis
gis = GIS('https://xyz.maps.arcgis.com', '\\DatabaseConnections\conectionfile.sde)
Or add in a workspace for this?
arcpy.env.workspace = "C:\\Users\\GIS_projects\\Python\\Test@EDIT.sde"