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.0.tar.gz (24.7 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.0-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: memory_foam-0.4.0.tar.gz
  • Upload date:
  • Size: 24.7 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.0.tar.gz
Algorithm Hash digest
SHA256 003a045aed6b4f242ef9f8dbda9eec5f21e570a94b14737195a1c3c19df30262
MD5 b32841b81c87df019062b669fea14134
BLAKE2b-256 23d842cd2e8ce3fe1f92c0633f0adb7a7699f6ddb952767d43c2a089385c18ce

See more details on using hashes here.

Provenance

The following attestation bundles were made for memory_foam-0.4.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: memory_foam-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 17.6 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 95de899b98152302b122da42589a55f13a356e93c338b1c029a59e8004e46146
MD5 1a90e3ff075fae44ab05ed43e0d3824e
BLAKE2b-256 6800261fa88a49c171947617b9baca22018c5af73dc443de0e3b07b967dee828

See more details on using hashes here.

Provenance

The following attestation bundles were made for memory_foam-0.4.0-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