Portal PY Scripting

Hi. I would like to fetch the list of the Webmap published in Arcgis Portal. I came through documentation that it is possible using Portal PY module. The question is that whether it is possible to run a portal py script on a client machine(end user) ,since Portal for ARCGIS is installed on Server and not on my machine. If it has to be ran on client machine, what are the prerequisites needed. Also, whether is it possible to fetch the list of Webmaps published, using Arcpy scripts !!!

ArcGIS API for Python | ArcGIS for Developers has basically superseded all previous Python-based web GIS libraries from Esri. You should readily be able to accomplish what you want using the new-ish API. Check out the Guide and Sample Notebooks.