Skip to main content

Abstraction layer for cloud blobstores.

Project description

# cloud-blobstore

This library provides an abstraction layer for the most basic functionality provided by the cloud providers. These are the basic functions required by the [Human Cell Atlas](https://www.humancellatlas.org/) [Data Storage Service](https://github.com/HumanCellAtlas/data-store).

## Development

### Set up your python environment Before you start, you may wish to set up a [virtualenv](https://virtualenv.pypa.io/en/stable/). Run pip install -r requirements-dev.txt. Then set up the following environment variables:

Environment variable | Explanation |
———————– | ———– |
S3_BUCKET | Points to the AWS S3 bucket where new files will be written. It may be advisable to set up a cleanup policy for this bucket. |
S3_BUCKET_FIXTURES | Points to the AWS S3 bucket where static fixtures are stored. |
S3_BUCKET_US_EAST_1 | Points to an AWS S3 bucket in the US_EAST_1 region. This can overlap with one of the other buckets. |
S3_BUCKET_NON_US_EAST_1 | Points to an AWS S3 bucket _not_ in the US_EAST_1 region. This can overlap with one of the other buckets. |
GS_BUCKET | Points to the GCP GS bucket where new files will be written. It may be advisable to set up a cleanup policy for this bucket. |
GS_BUCKET_FIXTURES | Points to the GCP GS bucket where static fixtures are stored. |

### Set up test fixtures. Run python tests/fixtures/populate.py –s3-bucket $S3_BUCKET_FIXTURES –gs-bucket $GS_BUCKET_FIXTURES

#### Running tests Run make test in the top-level directory.

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

cloud-blobstore-3.1.0.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

cloud_blobstore-3.1.0-py2.py3-none-any.whl (10.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file cloud-blobstore-3.1.0.tar.gz.

File metadata

  • Download URL: cloud-blobstore-3.1.0.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6

File hashes

Hashes for cloud-blobstore-3.1.0.tar.gz
Algorithm Hash digest
SHA256 4b88c5a0758f2a15d18992caa3386ed0fdb0961bbc08dea6c655de016410194c
MD5 4ead831bb8997d26d9a0f6a0eabd235d
BLAKE2b-256 6ed7ed037499422db56e39d74ce5a2e27969f6efcfb8122a1134e323b9563ca8

See more details on using hashes here.

File details

Details for the file cloud_blobstore-3.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: cloud_blobstore-3.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6

File hashes

Hashes for cloud_blobstore-3.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 29f273f8de6a7545124f8b3b6bc1aae20d106e0227db19e11ed3a3f8a9e06dd4
MD5 5a0e288c400b9841fd638d1d4f295697
BLAKE2b-256 bb973cc1e2547a03ce06cfb33605910f2245bca64b81093c5df81be0c521a378

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