# Feature request: a recipe to print the names of all your datasets

**URL:** <https://support.prodi.gy/t/feature-request-a-recipe-to-print-the-names-of-all-your-datasets/185>\
**Category:** Uncategorized\
**Tags:** database, solved\
**Created:** [January 4, 2018, 5:29pm UTC](https://support.prodi.gy/t/feature-request-a-recipe-to-print-the-names-of-all-your-datasets/185 "2018-01-04T17:29:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wpm](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/wpm/32/103_2.png) [@wpm](https://support.prodi.gy/u/wpm)\
**Post date:** [January 4, 2018, 5:29pm UTC](https://support.prodi.gy/t/feature-request-a-recipe-to-print-the-names-of-all-your-datasets/185/1 "2018-01-04T17:29:37Z")

</div>

I end up creating a lot of datasets and forgetting their names. It would be good to have a command line tool that lists them. Probably just `prodigy dataset --list`.

---

<div class="post-metadata">

**Author:** ![ines](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ines/32/3_2.png) [@ines](https://support.prodi.gy/u/ines)\
**Post date:** [January 4, 2018, 5:43pm UTC](https://support.prodi.gy/t/feature-request-a-recipe-to-print-the-names-of-all-your-datasets/185/2 "2018-01-04T17:43:27Z")

</div>

This already exists – maybe this hasn’t been documented well enough. If so, sorry about that. The functionality is included in the `stats` command:

```bash
prodigy stats -l # stats + list all datasets
prodigy stats -ls # stats + list all datasets and session IDs

```

---

<div class="post-metadata">

**Author:** ![ks1996](https://avatars.discourse-cdn.com/v4/letter/k/c89c15/32.png) [@ks1996](https://support.prodi.gy/u/ks1996)\
**Post date:** [April 13, 2020, 2:59pm UTC](https://support.prodi.gy/t/feature-request-a-recipe-to-print-the-names-of-all-your-datasets/185/3 "2020-04-13T14:59:43Z")

</div>

Hey,

How do I return the list of only the datasets back to a python function as a list? How do you parse through the output of 'prodigy stats -l' command to only get the list of datasets names?

---

<div class="post-metadata">

**Author:** ![ines](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ines/32/3_2.png) [@ines](https://support.prodi.gy/u/ines)\
**Post date:** [April 14, 2020, 8:14am UTC](https://support.prodi.gy/t/feature-request-a-recipe-to-print-the-names-of-all-your-datasets/185/4 "2020-04-14T08:14:53Z")

</div>

> [@ks1996](#):
>
> How do I return the list of only the datasets back to a python function as a list? How do you parse through the output of 'prodigy stats -l' command to only get the list of datasets names?

Check out the docs on Prodigy's database API: [Database · Prodigy · An annotation tool for AI, Machine Learning & NLP](https://prodi.gy/docs/api-database#database) To get all dataset names, you can use the property `db.datasets`. The source of the `stats` command is also included with Prodigy btw, so you can also have a look at specific things tthere and see how it's done 🙂
