---
updatedAt: 2025-06-17T21:08:37.000Z
agentTools:
  projectIndex: https://documentation.picsellia.com/llms.txt
---

# Download data and assets

```python Python
import os

from picsellia import Client


client = Client(api_token="YOUR API TOKEN")


datalake = client.get_datalake()


# The parameter limit exracts a precise number of images from the Datalake. 
some_data = datalake.list_data(limit=5)
some_data.download()


dataset = client.get_dataset("my-awesome-dataset").get_version("first")
assets = dataset.list_assets() 


assets.download("./downloads/assets")

```

# Initialize Picsellia Client

<!-- python@1-6 -->

Initialize the Client with your API Token, available in your profile page.

# Retrieve your datalake

<!-- python@9 -->

Get your datalake

# Download your data

<!-- python@12-14 -->

List your data and download it.
By default, it will be downloaded to the current directory.

# Retrieve your Dataset

<!-- python@17-18 -->

You can retrieve your dataset by its `name` and `version`

# Download all your assets

<!-- python@21 -->

Fetch your assets and download them
You can specify the target directory for download, as in this example: `./downloads/assets`