Bit of a beginners question, I was wondering how to go about finding the available methods and properties within ArcGIS API for Python, or is it there just no comprehensive list available? The official documentation seems incomplete.
For example, if I get a feature layer item using item = gis.content.get("xxxx") then examine its properties in python by typing dir(item) I can see my feature layer has a property called avgRating. If I go to the official reference at https://developers.arcgis.com/python/api-reference/ and search for avgRating, its referred to as an option for sorting query results, but there's nothing explicitly saying feature layer items have an avgRating property.
I'm actually trying to find out if 'favourites' is a property in the api, but the more generic question is how do you find out what's in the api?
Solved! Go to Solution.
As you've found, the official documentation is not 100% complete. You can, of course, make issue requests and even contribute to the documentation yourself at the Python API's github repo.
Short of that, you can also look through the modules themselves. Go to path-to-python-env/Lib/site-packages/arcgis and you can view all the files that make up the ArcGIS Python module. You may find comments and docstrings in the code that aren't in the official documentation that will help you.
As you've found, the official documentation is not 100% complete. You can, of course, make issue requests and even contribute to the documentation yourself at the Python API's github repo.
Short of that, you can also look through the modules themselves. Go to path-to-python-env/Lib/site-packages/arcgis and you can view all the files that make up the ArcGIS Python module. You may find comments and docstrings in the code that aren't in the official documentation that will help you.
Thanks Josh good to know