---
title: "get_data_source_lists"
description: "get_data_source_lists — the lists the open project loads data sources from."
url: "https://docs.justcat.it/reference/python-module/get-data-source-lists/"
---
# get_data_source_lists

## Signature

```python
cat.get_data_source_lists()
```

## Parameters

None.

## What it does

Returns the project's data-source lists: the project file's own implicit list and every `Data source list` the project declares (a YAML file, a database table, an Excel sheet, …), each with its provider and connection. Use it to see *where* data sources come from; `get_data_sources` returns the data sources themselves, with `DataSourceListID` pointing back here.

## Returns

A .NET collection of `DataSourceList` objects: `DataSourceListID`, `Name`, `Order`, `ProviderNameAndVersion`, `ConnectionString`, `Query`, `IsImplicit` (the project file's own list), `FullName` (for example `# 1: Project file (Yaml@1)`), `Settings`.

## Raises

The sign-in and plan check (first call of the process) raises the `CatPortalError` family listed on the [Introduction](https://docs.justcat.it/reference/python-module/introduction/ "Introduction") page. With no open project: in the current version a bare `TypeError: exceptions must derive from BaseException` (not a readable message) — call `open_project` first.

## Examples

```python
cat.open_project("D:/Testing/DwhTests.cat.yaml")
for l in cat.get_data_source_lists():
    print(l.Order, l.Name, l.ProviderNameAndVersion)
```

## Related

- [Introduction](https://docs.justcat.it/reference/python-module/introduction/ "Introduction") — session model, logging, .NET objects, exceptions, sign-in.
- [Lists](https://docs.justcat.it/reference/project-file/lists/ "Lists").
- [`get_data_sources`](https://docs.justcat.it/reference/python-module/get-data-sources/ "get_data_sources").

