KEMBAR78
Storage: Add method(s) to parse `gs://bucket_name` and `gs://bucket_name/path/to/blob` URIs · Issue #7693 · googleapis/google-cloud-python · GitHub
Skip to content

Storage: Add method(s) to parse gs://bucket_name and gs://bucket_name/path/to/blob URIs #7693

@tswast

Description

@tswast

It would be very convenient if we could take a string such as gs://bucket_name/path/to/blob and download the content for it.

I propose we add a Blob.from_string classmethod, similar to BigQuery's TableReference.from_string method.

Since the Blob class requires a client object (via Bucket) to support downloads, I suggest both path and client are required arguments for Blob.from_string(path, client).

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the Cloud Storage API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions