# get.collections()

### Parameters

**`include_shared`** *`:boolean: (Default = False)`*`If set to True, returns all Collections to which a user has access.`

### Return Object

[Rasgo Collection](https://docs.rasgoml.com/rasgo-docs/rasgo-0.1/pyrasgo-0.3/collections/broken-reference)

### Sample Usage

Return collections created by me:

```python
# 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)

```python
# 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

{% hint style="success" %}
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.
{% endhint %}
