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

Last updated

Was this helpful?