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

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for outcome-pypicloud-storage-gcs-0.2.1.tar.gz
Algorithm Hash digest
SHA256 fa032506b1a27d60ee646ad4315b56cd4de9314cb47dd87af981c1de199a1ab2
MD5 a51ce91b75ae0e46b52ecfefa3b34cfa
BLAKE2b-256 c1cfbad67d029d99b7b743e6966d87faaa51724eb6d4c6c408d076966a7a469d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for outcome_pypicloud_storage_gcs-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 45bd711b0d49e977bfaebc7bf9c7164937125fd89c56374c52b109afc429423e
MD5 0aa2a39ee523afe5d4105b6dc2c2b0ff
BLAKE2b-256 48f02b94e013d9df98d9304f48925def76713d8f4b0965937b3397aac0046a01

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