The scinexus package provides data store. A data store is a collection of data members of the same type (e.g. all .fasta files in a directory). Data stores allow you to apply an app or composed pipeline to many data records without writing loops.
Using data stores with cogent3
Use the open_data_store() function to open a data store and a loader app (see app types) to read member data.
from cogent3 import get_app, open_data_storedstore = open_data_store("data/raw.zip", suffix="fa", mode="r")print(dstore)
1035x member ReadOnlyDataStoreZipped(source='/home/runner/work/cogent3.github.io/cogent3.github.io/doc/data/raw.zip', members=[DataMember(data_store=/home/runner/work/cogent3.github.io/cogent3.github.io/doc/data/raw.zip, unique_id=ENSG00000157184.fa), DataMember(data_store=/home/runner/work/cogent3.github.io/cogent3.github.io/doc/data/raw.zip, unique_id=ENSG00000131791.fa)]...)