Skip to main content

Performant iterators for loading files from S3, GCS and Azure into memory for easy processing.

Project description

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:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

memory_foam-0.4.1.tar.gz (24.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

memory_foam-0.4.1-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

Details for the file memory_foam-0.4.1.tar.gz.

File metadata

  • Download URL: memory_foam-0.4.1.tar.gz
  • Upload date:
  • Size: 24.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for memory_foam-0.4.1.tar.gz
Algorithm Hash digest
SHA256 710a0f88c6412aba6f3334dd484db09014792c388ad3acb2bc800bdeb4443901
MD5 8934690fa90c19e0897248ad67e0f8bf
BLAKE2b-256 f9a6747216fa8a8921d52a0726e01f691c071d9ff0642eebf0a0ce324cd776a4

See more details on using hashes here.

Provenance

The following attestation bundles were made for memory_foam-0.4.1.tar.gz:

Publisher: release.yml on mattseddon/memory-foam

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file memory_foam-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: memory_foam-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 17.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for memory_foam-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7c76acb382c5ca9a9d1a47a291a9734c91e8de0371150092b96f3092dec229f9
MD5 c83176272f711c548f59af4ae99034f6
BLAKE2b-256 2be3cc1b136091e3938dd1f7128d04f98f8f08ad9297b3aca1ff443a9ed94b92

See more details on using hashes here.

Provenance

The following attestation bundles were made for memory_foam-0.4.1-py3-none-any.whl:

Publisher: release.yml on mattseddon/memory-foam

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page