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 — Offer progress indication · Issue #1830 · googleapis/google-cloud-python

Offer progress indication #1830

New issue
Copy link
New issue
Copy link
Closed
Closed
Offer progress indication#1830
Copy link
Assignees
lukesneeringer
Labels
api: storageIssues related to the Cloud Storage API.priority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Description

@kofalt
kofalt
opened on May 27, 2016
Issue body actions

I might just be thick, but when searching through the web and documentation, I could not find a way to get gcloud to report upload / transfer progress to the callee:

# Sit blocked & mute for N minutes
bucket.blob(path).upload_from_filename(local_path)

One pattern I saw recently from docker-py allows you to set an optional stream parameter, in which case the function returns an iterator with json strings:

progress = docker_client.pull(repository=x, tag=y, stream=True)

for line in progress:
    update = json.loads(line)
    # do something with line - fields include current bytes, total bytes

A quick search indicates this could be related to #1077.

Activity

  1. kofalt
    changed the title [-]Expose progress indication[/-] [+]Offer progress indication[/+] on May 27, 2016
  2. dhermes
    added
    api: storageIssues related to the Cloud Storage API.
    on May 27, 2016
  3. tseaver
    added
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    on May 27, 2016
  4. dhermes commented on May 27, 2016

    @dhermes
    dhermes
    on May 27, 2016
    Contributor
    More actions

    Certainly related to #1077, good find. You want progress for display purposes or for other reasons?

  5. kofalt commented on May 27, 2016

    @kofalt
    kofalt
    on May 27, 2016
    Author
    More actions

    I'd like to report back to the user or tool consuming my script, yeah.
    Updates could list bytes transferred, % complete (when known), and ideally a bandwidth rate.

    As an example: I haven't filed a bug yet, as I haven't reproduced, but I noticed one run (using upload_from_filename) was hanging for hours - I checked slurm and there seemed to be no outbound traffic. It would be nice to see that when running interactively, or have some other logic trigger.

    And, if you're waiting on long transfers, it's nice to know how long you have to get coffee 😄

  6. dhermes commented on May 27, 2016

    @dhermes
    dhermes
    on May 27, 2016
    Contributor
    More actions

    Hanging for hours is scary, but I've seen httplib2 hang for 10+ minutes when the connection gets b0rked in a multi-thread application (#1214).

  7. kofalt commented on May 27, 2016

    @kofalt
    kofalt
    on May 27, 2016
    Author
    More actions

    Hmm, noted. I'll definitely check that out. I'm not sure sure if that's it because I don't believe we're doing any concurrency, but if I see it again & get a handle on it I'll report back or file a ticket.

  8. dhermes commented on May 27, 2016

    @dhermes
    dhermes
    on May 27, 2016
    Contributor
    More actions

    Thanks! I think the Upload object has most of the info in it so covering #1077 probably covers this.

  9. lukesneeringer
    added
    priority: p2Moderately-important priority. Fix may not be included in next release.
    on Apr 19, 2017
  10. lukesneeringer commented on Aug 11, 2017

    @lukesneeringer
    lukesneeringer
    on Aug 11, 2017
    Contributor
    More actions

    Hello,
    One of the challenges of maintaining a large open source project is that sometimes, you can bite off more than you can chew. As the lead maintainer of google-cloud-python, I can definitely say that I have let the issues here pile up.

    As part of trying to get things under control (as well as to empower us to provide better customer service in the future), I am declaring a "bankruptcy" of sorts on many of the old issues, especially those likely to have been addressed or made obsolete by more recent updates.

    My goal is to close stale issues whose relevance or solution is no longer immediately evident, and which appear to be of lower importance. I believe in good faith that this is one of those issues, but I am scanning quickly and may occasionally be wrong. If this is an issue of high importance, please comment here and we will reconsider. If this is an issue whose solution is trivial, please consider providing a pull request.

    Thank you!

  11. lukesneeringer
    closed this as completedon Aug 11, 2017
  12. bachirelkhoury commented on Jun 21, 2019

    @bachirelkhoury
    bachirelkhoury
    on Jun 21, 2019
    More actions

    Has there been any development on this, or perhaps you can offer an alternative?
    we have a very large upload (Gb) and would need to monitor and track the progress of the upload.
    Is there anyway to do that?

    Reacted by Mixail Petrochuk, Nathaniel Kofalt, Michael Menzel and C Mo
  13. PetrochukM commented on Jun 21, 2019

    @PetrochukM
    PetrochukM
    on Jun 21, 2019
    More actions

    Same!

    Reacted by Bachir El Khoury and Michael Menzel
  14. tseaver commented on Jun 24, 2019

    @tseaver
    tseaver
    on Jun 24, 2019
    Contributor
    More actions

    Please open a new issue linking this one, and describing the change you'd like against the current software. Following up on an issue closed for almost two years is not going to get appropriate attention.

    Reacted by Bachir El Khoury
  15. kofalt commented on Jun 24, 2019

    @kofalt
    kofalt
    on Jun 24, 2019
    Author
    More actions

    I no longer use this tool in this way, but my colleagues would still benefit from this feature. If someone wants to do as @tseaver suggests I would appreciate it :)

  16. JustinBeckwith
    assigned
    lukesneeringer
    on Feb 1, 2021
  17. parthea
    added a commit that references this issue on Sep 22, 2023

    chore: move samples from python-docs-sample (#66)

    d3dcbbc
  18. parthea
    added a commit that references this issue on Nov 26, 2025

    doc: Custom Credential Suppliers for AWS and Okta. (#1830)

    1e5c797
  19. parthea
    added a commit that references this issue on Apr 1, 2026

    chore(main): release 2.8.0 (#1830)

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

Metadata

Metadata

Assignees

  • @lukesneeringer
    lukesneeringer

Labels

api: storageIssues related to the Cloud Storage API.priority: p2Moderately-important priority. Fix may not be included in next release.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

    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.