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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file gcs-aio-mapper-0.1.0.tar.gz.

File metadata

  • Download URL: gcs-aio-mapper-0.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.7.4 Darwin/19.3.0

File hashes

Hashes for gcs-aio-mapper-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3ad436c0174ffdd2ff8d7d75d04c3a4f76eb93d7a770c4c0eb8d1db5887d3fb2
MD5 b1e4a5dab7616d730ac8c0b91d9d3814
BLAKE2b-256 17b7255f66ad9b998d339d11e8591fd7c82c89a02209325c717d4194880e0186

See more details on using hashes here.

File details

Details for the file gcs_aio_mapper-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: gcs_aio_mapper-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.7.4 Darwin/19.3.0

File hashes

Hashes for gcs_aio_mapper-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e580415d9b12ee05736fce6a278c9dd03c8c3b3de34be5112e9cdb5a4eb767ce
MD5 6e09c100f32ac500605d0fb36ab27279
BLAKE2b-256 39c9e873ffb38d0419919764daa4e7a51a4aef671fa76a607c019df86ba58ced

See more details on using hashes here.

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