Add support for non-default unnamed storages #1175
Labels
enhancement
New feature or request.
t-tooling
Issues with this label are in the ownership of the tooling team.
Problem
The Apify platform supports non-default unnamed storages. This functionality is also available in the Apify Python client, where you can do the following (example for dataset):
Each call creates a new, unnamed dataset with a unique ID.
In contrast, Crawlee does not support this (in any storage client). For example, repeated calls to:
always return the same default unnamed storage.
Goal state
Achieve feature parity between Crawlee storages (all storage clients, including the
ApifyStorageClient
) and the Apify platform (API client) by adding support for non-default unnamed storages.Possible solution
Introduce a new argument to the storage
open
constructor:scope='run'
indicates a non-default unnamed storage.scope='global'
refers to globally named storages.name
parameter cannot be entirely removed for run scope storages, as it's needed:Behavior matrix...
Open storage by ID and name
Open storage by ID
Open storage by name
name
is used internally for reference-storage purposes but is not the actual storage's "name".Open storage without args
The text was updated successfully, but these errors were encountered: