A fork-safe verion of the GCS Storage backend for PyPICloud.
Project description
pypicloud-storage-gcs-py
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
Built Distribution
File details
Details for the file outcome-pypicloud-storage-gcs-0.2.3.tar.gz
.
File metadata
- Download URL: outcome-pypicloud-storage-gcs-0.2.3.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.8.3 Linux/5.3.0-1032-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c87748856a8a6b07989a75c07d34bf6cf651bfed61e7809dd63827f24578519a |
|
MD5 | 9b29caf3614a8a1067aaba4f561b1652 |
|
BLAKE2b-256 | 94a512ef05f89c759b962e5789451ac2f79d98a8768fd578a37dab61d7676578 |
File details
Details for the file outcome_pypicloud_storage_gcs-0.2.3-py3-none-any.whl
.
File metadata
- Download URL: outcome_pypicloud_storage_gcs-0.2.3-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.8.3 Linux/5.3.0-1032-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80bb78fe8009e5d5c0cd5e990e10ed97d362c4e32fe8412dda2fdf6585a90d96 |
|
MD5 | eeff189b3d8bd0fa04fe45b6bf64a6f3 |
|
BLAKE2b-256 | 2eec3a66e8f500520b1e76f20f62d704a83fba8c143fe3c85fa7470684be2c89 |