get.collections()
Get all Rasgo Collections available
Parameters
include_shared
:boolean: (Default = False)
If set to True, returns all Collections to which a user has access.
Return Object
Rasgo Collection
Sample Usage
Return collections created by me:
# Connect to rasgo
api_key = '<your api key>'
rasgo = pyrasgo.connect(api_key)
# Return object
collections = rasgo.get.collections()
# Explore returned object
for collection in collection:
collection.id
collection.name
collection.sourceTable
Return collections available to me (created by me & shared with me)
# Connect to rasgo
api_key = '<your api key>'
rasgo = pyrasgo.connect(api_key)
# Return object
collections = rasgo.get.collections(include_shared=True)
# Explore returned object
for collection in collection:
collection.id
collection.name
collection.sourceTable
collection.isShared
Best Practices / Tips
TIP: data from Rasgo get methods return as python classes with interactive properties and methods. Use your python IDE's inspection tools to explore all operations available on the class, or explore Rasgo Primitives in these docs for options.
Last updated
Was this helpful?