Skip to main content

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.

Release files for outcome-pypicloud-storage-gcs 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for outcome-pypicloud-storage-gcs 0.3.0
File Size Uploaded
outcome-pypicloud-storage-gcs-0.3.0.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for outcome-pypicloud-storage-gcs 0.3.0
File Interpreter ABI Platform
outcome_pypicloud_storage_gcs-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.4 kB

Release files / outcome-pypicloud-storage-gcs-0.3.0.tar.gz

Download URL outcome-pypicloud-storage-gcs-0.3.0.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
18f6416e583f7bf39261f12ee83c39393161cd729bfd677427de0dcf5579b72c
BLAKE2b-256 checksum
How to use checksums
87a5e9c548b6a31dcd5bd69f4ec7d66d60f6fa71340e03687b04a391533eac0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.8.6 Linux/5.4.0-1043-azure

Release files / outcome_pypicloud_storage_gcs-0.3.0-py3-none-any.whl

Download URL outcome_pypicloud_storage_gcs-0.3.0-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
52355f3f47e4a31a8090520170dbb4e96c5ad6370001e69815bbccf82bcd6668
BLAKE2b-256 checksum
How to use checksums
c89e2b71f28cb8645e011f88a67c54515fac9d11411a5a1d3fcfdc3e957617ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.8.6 Linux/5.4.0-1043-azure

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page