Skip to content

mattseddon/memory-foam

Repository files navigation

memory-foam

pypi tests codecov

memory-foam is a Python package that provides performant iterators for loading files from S3, GCS and Azure into memory for easy processing.

Features

  • Unified Interface: Seamlessly interact with files stored in S3, GCS and Azure.
  • Asynchronous Support: Efficiently load files using asynchronous iterators.

Installation

You can install memory-foam using pip:

pip install memory-foam

Example usage

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)

Credentials

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:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages