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 — #15: Add `storage.batch.Batch` by tseaver · Pull Request #654 · googleapis/google-cloud-python

Conversation

@tseaver

@tseaver tseaver commented Feb 16, 2015

Copy link
Copy Markdown
Contributor

Step #2 in #15 (comment)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 16, 2015
@tseaver tseaver mentioned this pull request Feb 16, 2015
Add support for batch requests in gcloud.storage #15
Closed
@coveralls

coveralls commented Feb 16, 2015

Copy link
Copy Markdown

Coverage Status

Changes Unknown when pulling 5fed4d2 on tseaver:15-add_storage_batch into * on GoogleCloudPlatform:master*.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tseaver

tseaver commented Feb 16, 2015

Copy link
Copy Markdown
Contributor Author

@craigcitro, @dhermes I'm willing to do the work to vendor in and use the apitools batch module, if Craig doesn't think it will have a PyPI release soon. I can also work on getting it up-to-speed in terms of test coverage and Py3k straddling in the canonical repository, if that would help.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Feb 17, 2015

Copy link
Copy Markdown
Contributor

Should I review this or rely on the vendored in code?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tseaver

tseaver commented Feb 17, 2015

Copy link
Copy Markdown
Contributor Author

@dhermes we don't have a vendored-in version of that module yet. My earlier question was whether we should go ahead and vendor that code in, given that it has no coverage and does not straddle Py3k yet.

The amount of code in the new storage/batch.py module which would be replaced if we chose to vendor the apitools module is relatively small (135 out of 544 lines):

  • The MIMEApplicationHTTP class and its tests
  • The bits of `Batch.finish()' which build, send, and process the response for the multipart request and corresponding tests.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dhermes
dhermes reviewed Feb 18, 2015
View reviewed changes
Comment thread gcloud/storage/batch.py Outdated

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coveralls

coveralls commented Feb 18, 2015

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 100.0% when pulling ae0e9cf on tseaver:15-add_storage_batch into 8e68a20 on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes dhermes added the api: storage Issues related to the Cloud Storage API. label Feb 18, 2015
@coveralls

coveralls commented Feb 18, 2015

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 100.0% when pulling 6261272 on tseaver:15-add_storage_batch into 8e68a20 on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dhermes
dhermes reviewed Feb 18, 2015
View reviewed changes
Comment thread gcloud/storage/batch.py

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coveralls

coveralls commented Feb 19, 2015

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 100.0% when pulling af2a382 on tseaver:15-add_storage_batch into 8e68a20 on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

tseaver added 3 commits February 25, 2015 13:28
@tseaver
Add 'storage.batch.Batch'
653fa14
A batch proxies a connection, deferring write requests.
@tseaver
Factor out 'storage.connection.Connection._do_request()'.
63ea7ba
In preparation for making 'storage.batch.Batch' derive from Connection,
allowing it to override only the actual transmission of the HTTP request.
@tseaver
Make 'Batch' subclass 'Connection', and override '_do_request'.
dd2046a
Drop patching the connection's 'http', as well as proxying its attributes
(we get that via subclassing).
@tseaver

tseaver commented Feb 25, 2015

Copy link
Copy Markdown
Contributor Author

@dhermes PTAL.

Rebased on top of master, squashing all previous commits; then implemented subclassing per our discussion today.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dhermes
dhermes reviewed Feb 26, 2015
View reviewed changes
Comment thread gcloud/storage/batch.py Outdated

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@craigcitro

craigcitro commented Feb 26, 2015

Copy link
Copy Markdown
Contributor

@dhermes yes! so here's the current apitools plan:

  • i'm working on merging the gsutil fork today
  • once i do that, i'm going to submit to pypi
  • after that, help getting it py3 ready would be AWESOME
  • even right now, py3 support for protorpc would be super
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

tseaver added 4 commits February 26, 2015 13:30
@tseaver
Fix URL for batch requests.
b5a8124
The batching interface is not specific to the storage API.
@tseaver
Conform to httplib2.response.
96807c8
It does not case-normalize header key lookup, but stores headers only
as lowercase.
@tseaver
Exercise 'storage.batch.Batch' during bucket cleanup.
edeb950
@tseaver
Use six.PY2, rather than sys.version_info comparison.
c083ceb
Addresses:  #654 (comment)
@dhermes

dhermes commented Feb 26, 2015

Copy link
Copy Markdown
Contributor

For posterity (RE: Craig's comment):

Note: Currently, Google Cloud Storage does not support batch operations for
media, either for upload or download.

screen_shot_074

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coveralls

coveralls commented Feb 26, 2015

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 100.0% when pulling de6fd48 on tseaver:15-add_storage_batch into 808c38b on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Feb 26, 2015

Copy link
Copy Markdown
Contributor

I think everything looks good except removing that unused sys import.

LGTM

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Feb 26, 2015

Copy link
Copy Markdown
Contributor

@craigcitro Can we start a new issue to discuss apitools / protorpc? Should the issue be here or in one (or both) of those repos?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@craigcitro

craigcitro commented Feb 26, 2015

Copy link
Copy Markdown
Contributor

@dhermes yeah, new issue wherever sgtm. maybe a "py3 support" issue in each of protorpc/apitools, and an issue here for "better apitools dependency" blocked by those two?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tseaver
Unused import.
c828bda
@coveralls

coveralls commented Feb 26, 2015

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 100.0% when pulling c828bda on tseaver:15-add_storage_batch into d43c4a0 on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

tseaver added a commit that referenced this pull request Feb 26, 2015
@tseaver
Merge pull request #654 from tseaver/15-add_storage_batch
f0a1157
#15: Add `storage.batch.Batch`
@tseaver
tseaver merged commit f0a1157 into googleapis:master Feb 26, 2015
@tseaver
tseaver deleted the 15-add_storage_batch branch February 26, 2015 19:10
This was referenced Feb 26, 2015
Bring apitools Python3 support. google/apitools#1
Closed
Bring protorpc Python3 support. google/protorpc#3
Closed
@dhermes dhermes mentioned this pull request Mar 12, 2015
Upgrading version to 0.4.3. #723
Merged
@craigcitro craigcitro mentioned this pull request Apr 7, 2015
DISCUSSION: Switch to apitools as a dependency #755
Closed
@dhermes

dhermes commented Apr 9, 2015

Copy link
Copy Markdown
Contributor

@tseaver We discussed using the apitools batch support when this went in. We should discuss if / how that's possible (in light of #811).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

parthea pushed a commit that referenced this pull request Nov 24, 2025
@software-dov
fix: modules referenced in MapField message type are properly aliased (…
6ede787
…#654)

This was noticed when attempting to generate Bigtable Admin in a
message definition: an imported module is given an alias to prevent
collision with a field name. When the module is referenced to describe
the type of a singleton field it is properly disambiguated. When used
to describe the type of a MapField it is _not_ disambiguated.

Fix for that.

Closes #618
parthea pushed a commit that referenced this pull request Nov 24, 2025
@daniel-sanche
fix: json fields dictionary has modification side effect (#654)
7d94be9
parthea pushed a commit that referenced this pull request Nov 24, 2025
Chris Rossi
feat: don't flush entire global cache on transient errors (#654)
afa4fdb
It turns out this was unnecessary and can cause problems of its own.

Fixes #649 #634
parthea pushed a commit that referenced this pull request Nov 25, 2025
@daniel-sanche
fix: json fields dictionary has modification side effect (#654)
24689d8
parthea pushed a commit that referenced this pull request Nov 26, 2025
@tseaver
feat: add Python 3.9 support, drop Python 3.5 support (#655)
65b79d4
Closes #654.
parthea pushed a commit that referenced this pull request Nov 26, 2025
@release-please
chore: release 1.24.0 (#656)
a4c7d60
🤖 I have created a release \*beep\* \*boop\* 
---
## [1.24.0](https://www.github.com/googleapis/google-auth-library-python/compare/v1.23.0...v1.24.0) (2020-12-11)


### Features

* add Python 3.9 support, drop Python 3.5 support ([#655](https://www.github.com/googleapis/google-auth-library-python/issues/655)) ([6de753d](https://www.github.com/googleapis/google-auth-library-python/commit/6de753d585254c813b3e6cbde27bf5466261ba10)), closes [#654](https://www.github.com/googleapis/google-auth-library-python/issues/654)


### Bug Fixes

* avoid losing the original '_include_email' parameter in impersonated credentials ([#626](https://www.github.com/googleapis/google-auth-library-python/issues/626)) ([fd9b5b1](https://www.github.com/googleapis/google-auth-library-python/commit/fd9b5b10c80950784bd37ee56e32c505acb5078d))


### Documentation

* fix typo in import ([#651](https://www.github.com/googleapis/google-auth-library-python/issues/651)) ([3319ea8](https://www.github.com/googleapis/google-auth-library-python/commit/3319ea8ae876c73a94f51237b3bbb3f5df2aef89)), closes [#650](https://www.github.com/googleapis/google-auth-library-python/issues/650)
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please).
parthea added a commit that referenced this pull request Mar 2, 2026
@gcf-owl-bot @parthea
chore: use gapic-generator-python 0.65.1 (#654)
1b73f06
* chore: use gapic-generator-python 0.65.1

PiperOrigin-RevId: 441524537

Source-Link: googleapis/googleapis@2a27391

Source-Link: googleapis/googleapis-gen@ab6756a
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWI2NzU2YTQ4Yzg5YjViY2I5ZmI3MzQ0M2NiOGU1NWQ1NzRmNDY0MyJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <[email protected]>
parthea pushed a commit that referenced this pull request Mar 9, 2026
@olavloite
feat: add SpannerPickleType (#655)
c84dd37
Adds a SpannerPickleType that can be used as the implementation for
the standard SQLAlchemy PickleType. The SpannerPickleType ensures that
the binary values are encoded/decoded to/from base64 strings, which is
how Spanner stores binary values.

Fixes #654
parthea pushed a commit that referenced this pull request Mar 9, 2026
@renovate-bot
chore(deps): update dependency google-cloud-storage to v1.43.0 (#654)
63aa519
parthea pushed a commit that referenced this pull request Mar 9, 2026
Ilya Gurov @vi3k6i5
fix: Django and SQLAlchemy APIs are failing to use rowcount (#654)
0251a18
* fix: Django and SQLAlchemy APIs are failing to use rowcount

* lint fix

Co-authored-by: Vikash Singh <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: storage Issues related to the Cloud Storage API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@tseaver @coveralls @dhermes @craigcitro @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.