Skip to main content

An mutable mapping interface to GCS leveraging asyncio

Project description

Example:

import zarr
from gcs_aio_mapper import GCSMapperAio
from gcsfs import GCSMap
import logging

logging.basicConfig(level=logging.DEBUG)
n = 25

def build_gs_async():
    store = GCSMapperAio("gs://bucket/tmp/test.zarr", cache_size=n)
    g = zarr.open_array(store, shape=(n,), chunks=(3,), mode="w")
    for i in range(n):
        g[i] = i
    store.flush()


def build_gs():
    store = GCSMap("gs://bucket/tmp/test.zarr")
    g = zarr.open_array(store, shape=(n,), chunks=(3,), mode="w")
    for i in range(n):
        g[i] = i

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

gcs-aio-mapper-0.1.0.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

gcs_aio_mapper-0.1.0-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

Supported by

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