Skip to main content

A fork-safe verion of the GCS Storage backend for PyPICloud.

Project description

pypicloud-storage-gcs-py

Continuous Integration 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.3.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for outcome-pypicloud-storage-gcs-0.3.0.tar.gz
Algorithm Hash digest
SHA256 18f6416e583f7bf39261f12ee83c39393161cd729bfd677427de0dcf5579b72c
MD5 ffd169e83744967d6acebca4724d5739
BLAKE2b-256 87a5e9c548b6a31dcd5bd69f4ec7d66d60f6fa71340e03687b04a391533eac0c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for outcome_pypicloud_storage_gcs-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 52355f3f47e4a31a8090520170dbb4e96c5ad6370001e69815bbccf82bcd6668
MD5 209fc66fe66ab143a91105f6c3a34e7a
BLAKE2b-256 c89e2b71f28cb8645e011f88a67c54515fac9d11411a5a1d3fcfdc3e957617ee

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