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-2.1.1.tar.gz (8.2 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for cloud-blobstore-2.1.1.tar.gz
Algorithm Hash digest
SHA256 32968d6900ed55f53c971a8ff9fe8aa0e250cbb0b4cf360b8c3d6126f7d19ed9
MD5 58a19e5a9251690de6c2da661160f274
BLAKE2b-256 808849037f6aafd67300e57e7f408e02373a31f41621aa68c97d6e19258d457c

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