Skip to main content

description_TBD

Project description

pypicloud-storage-gcs-py

ci-badge version-badge

A fork-safe verion of the GCS Storage backend.

The GCS library uses requests to handle HTTP/S calls, but the SSL-state management inside requests doesn't handle os.fork calls very well. By default, the pypicloud GCS storage adapter creates the client before forking, so the same GCS client gets used across multiple processes which leads to issues.

This replacement defers the creation of the GCS client until the process has been forked.

Usage

Installation

poetry add outcome-pypicloud-storage-gcs

Configuration

To use the storage backend, configure it in the server.ini. The settings/options for the adapter are identical to those for the original adapter.

# Set up GCS storage
pypi.storage = outcome.pypicloud_storage_gcs.ThreadsafeGoogleCloudStorage
storage.bucket = my-bucket

Development

Remember to run ./pre-commit.sh when you clone the repository.

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

outcome-pypicloud-storage-gcs-0.2.2.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file outcome-pypicloud-storage-gcs-0.2.2.tar.gz.

File metadata

File hashes

Hashes for outcome-pypicloud-storage-gcs-0.2.2.tar.gz
Algorithm Hash digest
SHA256 10403a941d9bf9dd34775a4903e841bf3afafdbc6e2f107f2c9c7a561df0071f
MD5 74f21153ab114b06f85b3019cc525f8d
BLAKE2b-256 6a56526c6218c2d10116914553674a5aa4de7edc72e2614d9ec6eff8c360976d

See more details on using hashes here.

File details

Details for the file outcome_pypicloud_storage_gcs-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for outcome_pypicloud_storage_gcs-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 50c74ed67a9545c7002bddb0167409a5e874b0772af679325f56c1d95ac9f2b4
MD5 ce87c194c4cb4cbb82636e76fef412ee
BLAKE2b-256 d66a451864ee7f8a79ad82858d195a4e5d031a1767376eadd4222405af2e2324

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