googleapis / python-storage

Apache License 2.0
448 stars 154 forks source link

Support `storage.googleapis.com` public url at `Blob.from_string` #1299

Open kalvin807 opened 4 months ago

kalvin807 commented 4 months ago

Hi,

I am working on a project with both Node.js and Python codebases, each reading cloud storage objects via URIs (gs://bucket/object or https://storage.googleapis.com/...).

I noticed that the JavaScript implementation supports both URI schemes, but the Python implementation only supports gs:// URIs.

Although it is simple to work around this limitation, is there any plan to support public URLs (https://storage.googleapis.com/...) in the Python implementation as well? This would make the two seemingly similar APIs more consistent. I can make PR if it sounds good, as it seems trivial to implement.