GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Make gcloud.storage use a streaming HTTP library for downloads · Issue #11 · googleapis/google-cloud-python

Make gcloud.storage use a streaming HTTP library for downloads #11

New issue
Copy link
New issue
Copy link
Closed
Closed
Make gcloud.storage use a streaming HTTP library for downloads#11
Copy link
Assignees
tseaver
Labels
api: storageIssues related to the Cloud Storage API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
Milestone
Storage Stable

Description

@jgeewax
jgeewax
opened on Feb 5, 2014
Issue body actions

Right now we're using httplib2 because of oauth2client working really nicely with that, however httplib2 doesn't support a streaming download.

This means, a .request() will load the entire response content into memory, which won't work at all for a big file.

To get around this, we chunk the file up using the Range HTTP header and request pieces of it until the end, however the better way to handle this is with a streaming HTTP library:

stream = <send http request>
with open('output.txt', 'wb') as output:
  data = stream.read(CHUNK_SIZE)
  while data:
    output.write(data)
    data = stream.read(CHUNK_SIZE)

To make this work we need to:

  • use a library that does support streaming
  • update oauth2client to work with that library

Activity

Next
  1. proppy commented on Feb 5, 2014

    @proppy
    proppy
    on Feb 5, 2014
    Contributor
    More actions

    update oauth2client to work with that library

    Or use another oauth2 client altogether.

    oauthlib is a generic oauth library for python that is http client agnostic.

    There is an adapter for requests: https://github.com/requests/requests-oauthlib

    /cc @aliafshar

  2. tseaver commented on Nov 7, 2014

    @tseaver
    tseaver
    on Nov 7, 2014
    Contributor
    More actions

    Superseded by #334.

  3. tseaver
    closed this as completedon Nov 7, 2014
  4. jgeewax
    modified the milestone: Storage Stable on Jan 30, 2015
  5. jonathan1920
    added a commit that references this issue on Jul 3, 2019

    Fix docstrings & indentation (googleapis#11)

    5119af3
  6. urshala
    added a commit that references this issue on Jan 17, 2020

    Updated the group script to allow for requesting contact folders.

    3c8f486
  7. JustinBeckwith
    assigned
    tseaver
    on Feb 1, 2021
  8. vchudnov-g
    added a commit that references this issue on Apr 19, 2023

    build: switch to release-please for tagging (#11)

    69d6f9c
  9. parthea
    added 3 commits that reference this issue on Apr 20, 2023

    chore: Migrate code from googleapis/python-ids into packages/google-c…

    90d8f68

    feat: add always_use_jwt_access (#11)

    4c65ecb

    chore: release 0.2.0 (#12)

    fb02918
  10. vchudnov-g
    added 3 commits that reference this issue on May 8, 2023

    chore: release 0.1.2 (#11)

    12bf672

    chore: start tracking obsolete files (#11)

    368e9ef

    chore(migration): Migrate code from googleapis/python-domains into pa…

    9d913ad
  11. 98 remaining items

  12. parthea
    added 11 commits that reference this issue on Nov 24, 2025

    chore: update noxfile (via synth) (#11)

    f6d64b5

    chore: update templates (#11)

    41f91fe

    Switch Jinja to strict undefined. (#11)

    84110f0

    Release 0.0.4 (#11)

    507e0ca

    Marks local web server test as a webtest (#11)

    692a353

    [chore] Update docs for Struct. (#11)

    d34a643

    test: drop majyk per-lang-version coverage level (#12)

    1571625

    chore: update templates (#11)

    d5cdf90

    fix: support converting empty `time` Series to pyarrow Array (#11)

    345a4e8

    chore: release 0.1.0 (#4)

    95f64fd

    Add compute engine metadata client (#11)

    a686678
  13. parthea
    added a commit that references this issue on Mar 2, 2026

    fix: modify manylinux build script to be os x host compatible (#11)

    cd759ba
  14. parthea
    added 2 commits that reference this issue on Mar 9, 2026

    test: skip INSERT/DELETE/UPDATE from cte tests (#11)

    fa42309

    build: use PyPI API token in secret manager (#11)

    8d85b1f
  15. ohmayr
    added a commit that references this issue on Mar 31, 2026

    fix: modify manylinux build script to be os x host compatible (#11)

    f271561
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @tseaver
    tseaver

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

    • Storage Stable

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.