memory-foam
is a Python package that provides performant iterators for loading files from S3, GCS and Azure into memory for easy processing.
- Unified Interface: Seamlessly interact with files stored in S3, GCS and Azure.
- Asynchronous Support: Efficiently load files using asynchronous iterators.
You can install memory-foam
using pip:
pip install memory-foam
from memory_foam import iter_files
...
for pointer, contents in iter_files(uri, glob, modified_after, client_config):
results = process(contents)
data = pointer.to_dict_with(results)
save(data)
This package uses the fsspec
implementations for S3, GCS and Azure. Entries from the client_config
dictionary are passed to the respective fsspec
clients.
However, you can use the same authentication setup as the individual fsspec
packages.
The documentation for each of the clients is linked below: