Skip to main content

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

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

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for outcome-pypicloud-storage-gcs-0.2.3.tar.gz
Algorithm Hash digest
SHA256 c87748856a8a6b07989a75c07d34bf6cf651bfed61e7809dd63827f24578519a
MD5 9b29caf3614a8a1067aaba4f561b1652
BLAKE2b-256 94a512ef05f89c759b962e5789451ac2f79d98a8768fd578a37dab61d7676578

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for outcome_pypicloud_storage_gcs-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 80bb78fe8009e5d5c0cd5e990e10ed97d362c4e32fe8412dda2fdf6585a90d96
MD5 eeff189b3d8bd0fa04fe45b6bf64a6f3
BLAKE2b-256 2eec3a66e8f500520b1e76f20f62d704a83fba8c143fe3c85fa7470684be2c89

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