Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 879 Bytes

storage.md

File metadata and controls

36 lines (23 loc) · 879 Bytes

🗄️ Storage

Access all previous orders or assets in your account.

Authenticate

First connect with UP42 as explained in the authentication chapter.

import up42
up42.authenticate(project_id="your project ID", project_api_key="your-project-API-key")

Access & Download Assets

Get a list of all order or asset objects in your user storage.

storage = up42.initialize_storage()
orders = storage.get_orders(limit=100, sortby="createdAt")
assets = storage.get_assets(limit=100, sortby="size", descending=False)

Or access a specific order or asset via up42.initialize_order(order_id="123") orup42.initialize_asset(asset_id="123")

You can download an asset via:

assets[0].download()

⏭️ Continue with the Run an analytics workflow chapter.