pipen-gcs
A plugin for pipen to handle files in Google Cloud Storage.
Installation
pip install -U pipen-gcs
Usage
from pipen import Proc, Pipen
import pipen_gcs # Import and enable the plugin
class MyProc(Proc):
input = "infile:file"
input_data = ["gs://bucket/path/to/file"]
output = "outfile:file:{{in.infile.name}}.out"
# We can deal with the files as if they are local
script = "cat {{in.infile}} > {{out.outfile}}"
class MyPipen(Pipen):
starts = MyProc
# input files/directories will be downloaded to /tmp
# output files/directories will be generated in /tmp and then uploaded
# to the cloud storage
plugin_opts = {"gcs_cache": "/tmp"}
if __name__ == "__main__":
# The working directory is a local path
# The output directory can be a local path, but if it is a cloud path,
# the output files will be uploaded to the cloud storage automatically
MyPipen(workdir="./.pipen", outdir="./myoutput").run()
Configuration
gcs_cache: The directory to save the cloud storage files.gcs_loglevel: The log level for the plugin. Default isINFO.gcs_logmax: The maximum number of files to log while syncing. Default is5.
Metadata
Release files for pipen-gcs 1.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pipen_gcs-1.1.3.tar.gz | 107.5 kB | Without provenance | Details for pipen_gcs-1.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pipen_gcs-1.1.3-py3-none-any.whl | Python 3 | none | any | Details for pipen_gcs-1.1.3-py3-none-any.whl |
Total release size: 115.9 kB
Release files / pipen_gcs-1.1.3.tar.gz
| Download URL | pipen_gcs-1.1.3.tar.gz |
|---|---|
| Size | 107.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
42e2f6dc85bee977151237c6402e757acea4a9afbf481f55b1f3ece65388151b
|
|
BLAKE2b-256 checksum How to use checksums |
f760e0caafd45800018e029a88554e72b312dd771a737fe73db97bd90af65a94
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.2 {"installer":{"name":"uv","version":"0.12.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / pipen_gcs-1.1.3-py3-none-any.whl
| Download URL | pipen_gcs-1.1.3-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
038ea3b9d961fb4a24ea546a95d71664a7d0426a6aa2034c04a7322cfc8d3d94
|
|
BLAKE2b-256 checksum How to use checksums |
ad0b05c0b4af6888978450f5e8703faa08646f73f9f2c50ca5df380dcf7f0d44
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.2 {"installer":{"name":"uv","version":"0.12.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for pipen-gcs 1.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.