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 — Streaming: strip unused features by tseaver · Pull Request #1209 · googleapis/google-cloud-python

Conversation

@tseaver

@tseaver tseaver commented Oct 29, 2015

Copy link
Copy Markdown
Contributor

Uses #1208 as a base.

  • Trim / normailze / document imports.
  • Rename functions / methods to match PEP 8.
  • Make constants / methods used outside their modules public.
  • Make functions / methods not imported outside their modules explicitly private.
  • Drop unused exceptions.

Sorry, something went wrong.

Uh oh!

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

All reactions
@tseaver tseaver added hygiene api: core labels Oct 29, 2015
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 29, 2015
@dhermes

dhermes commented Oct 29, 2015

Copy link
Copy Markdown
Contributor

Ping me when this is rebased after the other commits get merged.

All reactions

Sorry, something went wrong.

Uh oh!

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

This was referenced Oct 29, 2015
Streaming: add pep8 / pylint goodness #1210
Merged
Add coverage for 'gcloud._apitools.transfer' #1207
Merged
@tseaver tseaver mentioned this pull request Nov 6, 2015
Re-vendor / cleanup apitools as used in storage #1186
Closed
5 tasks done
@tseaver

tseaver commented Nov 16, 2015

Copy link
Copy Markdown
Contributor Author

@dhermes rebased after #1208 merged.

All reactions

Sorry, something went wrong.

Uh oh!

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

@dhermes

dhermes commented Nov 16, 2015

Copy link
Copy Markdown
Contributor

Just want to double check that 11 commits is intended after the rebase and we didn't confuse git?

All reactions

Sorry, something went wrong.

Uh oh!

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

@tseaver

tseaver commented Nov 16, 2015

Copy link
Copy Markdown
Contributor Author

This is the correct set of commits: I can squash some down, if you think it will help review better.

All reactions

Sorry, something went wrong.

Uh oh!

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

@dhermes

dhermes commented Nov 16, 2015

Copy link
Copy Markdown
Contributor

No more commits is almost certainly a good thing (easier to review).

All reactions

Sorry, something went wrong.

Uh oh!

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

dhermes
dhermes reviewed Nov 16, 2015
View reviewed changes
Comment thread gcloud/streaming/buffered_stream.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.

@dhermes

dhermes commented Nov 16, 2015

Copy link
Copy Markdown
Contributor

Unfortunately GitHub thinks there are too many changes to gcloud/streaming/test_transfer.py to display.

There are a couple places where you dropped with _Monkey(MUT, http_wrapper=_Dummy()):. Why?

All reactions

Sorry, something went wrong.

Uh oh!

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

@dhermes

dhermes commented Nov 16, 2015

Copy link
Copy Markdown
Contributor

Also

_Monkey(
    Request=lambda url, http_method, body: _Request(url, http_method, body)
)

seems like it could be done with

_Monkey(Request=_Request)

What am I missing?

All reactions

Sorry, something went wrong.

Uh oh!

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

dhermes
dhermes reviewed Nov 16, 2015
View reviewed changes
Comment thread gcloud/streaming/transfer.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.

@dhermes

dhermes commented Nov 16, 2015

Copy link
Copy Markdown
Contributor

Yay for "Give 'streaming.util' functions PEP8 names."!

All reactions

Sorry, something went wrong.

Uh oh!

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

dhermes
dhermes reviewed Nov 16, 2015
View reviewed changes
Comment thread gcloud/streaming/util.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.

@dhermes

dhermes commented Nov 16, 2015

Copy link
Copy Markdown
Contributor

Rut-roh, test_transfer.py is also not visible in https://github.com/tseaver/gcloud-python/commit/2414bfbbe449db06a7a1aaae314dc1d144a24a4b

All reactions

Sorry, something went wrong.

Uh oh!

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

dhermes
dhermes reviewed Nov 16, 2015
View reviewed changes
Comment thread gcloud/streaming/transfer.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.

@dhermes

dhermes commented Nov 16, 2015

Copy link
Copy Markdown
Contributor

Other than getting at the code GitHub won't show me, I've reviewed them all and made my comments.

All reactions

Sorry, something went wrong.

Uh oh!

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

@tseaver

tseaver commented Nov 17, 2015

Copy link
Copy Markdown
Contributor Author

There are a couple places where you dropped with _Monkey(MUT, http_wrapper=_Dummy()):. Why?

In that same commit, transfer begins importing names directly, rather than via http_wrapper.<name>.

All reactions

Sorry, something went wrong.

Uh oh!

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

@tseaver

tseaver commented Nov 18, 2015

Copy link
Copy Markdown
Contributor Author

(I think) to review the bigger diff:

$ git remote add tseaver https://github.com/tseaver/gcloud-python
$ git fetch --all tseaver
$ git diff master..tseaver/streaming-strip_unused_features gcloud/streaming/test_transfer.py
All reactions

Sorry, something went wrong.

Uh oh!

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

tseaver added 17 commits November 18, 2015 16:11
@tseaver
Unused imports.
a1a43c1
@tseaver
Make imports explicit, and document them.
e74b5ae
@tseaver
Give 'streaming.util' functions PEP8 names.
37f9ed3
@tseaver
Give 'streaming.http_wrapper' functions PEP8 names.
beb8b84
@tseaver
Further import cleanup / documentation.
b6b764d
@tseaver
Remove deleted APIs from 'streaming.transfer.__all__'.
2cf253b
@tseaver
Make 'streaming.transfer.RESUMABLE_UPLOAD_THRESHOLD' public.
bf3f706
@tseaver
Adjust visibility / names of 'streaming.http_wrapper' helpers / const…
3033ca6
…ants.
@tseaver
Strip out unused/redundant exception types.
54cb870
@tseaver
Give 'streaming.transfer' methos PEP8 names.
e22993e
@tseaver
Fix coverage gap from branch split.
73c3282
@tseaver
Remove pointless lambda wrapping '_Request'.
7ad47bb
Addresses:
#1209 (comment)
@tseaver
Drop notes-to-self from module docstrings.
8caed56
Addresses:
#1209 (comment)
@tseaver
Drop legacy '__all__'.
94fc9bf
Addresses:
#1209 (diff)
@tseaver
Typo.
42ded7d
Addresses:
#1209 (comment)
@tseaver
Move quasi-docstring comments into docstring for '_ExceptionRetryArgs'.
f66f1b8
Addresses:
#1209 (comment)
@tseaver
Move nested '_process_content_range' helper out to module scope.
7e94700
Addresses:
#1209 (comment)
@tseaver

tseaver commented Nov 18, 2015

Copy link
Copy Markdown
Contributor Author

Rebased to fix conflict on gcloud/storage/test_blob.py (from #1222).

All reactions

Sorry, something went wrong.

Uh oh!

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

@dhermes

dhermes commented Nov 18, 2015

Copy link
Copy Markdown
Contributor

OK the test_transfer.py diff looks fine (I don't know why GitHub wouldn't show it, it was mostly renames)

All reactions

Sorry, something went wrong.

Uh oh!

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

@dhermes

dhermes commented Nov 18, 2015

Copy link
Copy Markdown
Contributor

Do we have everything else squared away?

All reactions

Sorry, something went wrong.

Uh oh!

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

@tseaver

tseaver commented Nov 19, 2015

Copy link
Copy Markdown
Contributor Author

Do we have everything else squared away?

I think so.

All reactions

Sorry, something went wrong.

Uh oh!

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

@dhermes

dhermes commented Nov 19, 2015

Copy link
Copy Markdown
Contributor

OK. LGTM

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 Nov 19, 2015
@tseaver
Merge pull request #1209 from tseaver/streaming-strip_unused_features
509564d
Streaming: strip unused features
@tseaver
tseaver merged commit 509564d into googleapis:master Nov 19, 2015
@tseaver
tseaver deleted the streaming-strip_unused_features branch November 19, 2015 01:00
@dhermes dhermes mentioned this pull request Jan 25, 2016
Upgrading version to 0.9.0. #1418
Merged
parthea pushed a commit that referenced this pull request Nov 24, 2025
@renovate-bot
chore(deps): update dependency setuptools to v60.9.2 (#1209)
5103fba
[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [setuptools](https://togithub.com/pypa/setuptools) | `==60.9.1` -> `==60.9.2` | [![age](https://badges.renovateapi.com/packages/pypi/setuptools/60.9.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/setuptools/60.9.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/setuptools/60.9.2/compatibility-slim/60.9.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/setuptools/60.9.2/confidence-slim/60.9.1)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>pypa/setuptools</summary>

### [`v60.9.2`](https://togithub.com/pypa/setuptools/blob/HEAD/CHANGES.rst#v6092)

[Compare Source](https://togithub.com/pypa/setuptools/compare/v60.9.1...v60.9.2)

Misc
^^^^

-   [#&#8203;3035](https://togithub.com/pypa/setuptools/issues/3035): When loading distutils from the vendored copy, rewrite `__name__` to ensure consistent importing from inside and out.

</details>

---

### Configuration

📅 **Schedule**: At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/gapic-generator-python).
parthea pushed a commit that referenced this pull request Nov 26, 2025
@BigTailWolf
chore: update token (#1209)
8d63bd9
* chore: update token

* pin the cryptography library version

* pin the cryptography library version

* using less operator to try
parthea pushed a commit that referenced this pull request Mar 9, 2026
@gcf-owl-bot @harshachinta
chore: Configure Ruby clients for google-ads-ad_manager (#1209)
5035f70
* feat: add INTERVAL API

PiperOrigin-RevId: 680405503

Source-Link: googleapis/googleapis@2c9fb37

Source-Link: googleapis/googleapis-gen@317c7d1
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzE3YzdkMWIxYjgwMWZlNjYzZjg3YmZkMGJhZTU0ZmQ2NTI2ZGU4NyJ9

* 🦉 Updates from OwlBot post-processor

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

* docs: update comment for PROFILE QueryMode
feat: add new QueryMode enum values (WITH_STATS, WITH_PLAN_AND_STATS)

PiperOrigin-RevId: 680628448

Source-Link: googleapis/googleapis@72a5151

Source-Link: googleapis/googleapis-gen@146c3e8
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTQ2YzNlOGRhODc3Mzg4MDQ3MDliN2YzZDI2NGE4ZTMzYWUzOGQ3MSJ9

* 🦉 Updates from OwlBot post-processor

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

* feat: Define ReplicaComputeCapacity and AsymmetricAutoscalingOption

docs: A comment for field `node_count` in message `spanner.admin.instance.v1.Instance` is changed

docs: A comment for field `processing_units` in message `spanner.admin.instance.v1.Instance` is changed
PiperOrigin-RevId: 681615472

Source-Link: googleapis/googleapis@dd47718

Source-Link: googleapis/googleapis-gen@7f0f9b7
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiN2YwZjliNzQ2NmNiNTE3NzY5YjU0OWM1ZTJjMmI5MTI0OTI4NjJmMiJ9

* 🦉 Updates from OwlBot post-processor

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

* chore: protos for R/W transaction support on multiplexed sessions

PiperOrigin-RevId: 683879049

Source-Link: googleapis/googleapis@2b6b93b

Source-Link: googleapis/googleapis-gen@2f0c933
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMmYwYzkzM2IwMDMxNjRkNWNkMTIwNTA1YTk4Yzg3Yzk1ODg4ZDk4ZiJ9

* 🦉 Updates from OwlBot post-processor

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

* chore: Update gapic-generator-python to v1.19.1

PiperOrigin-RevId: 684571179

Source-Link: googleapis/googleapis@fbdc238

Source-Link: googleapis/googleapis-gen@3a2cdcf
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiM2EyY2RjZmI4MGMyZDBmNWVjMGNjNjYzYzJiYWIwYTk0ODYyMjlkMCJ9

* 🦉 Updates from OwlBot post-processor

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

* feat(spanner): Add support for Cloud Spanner Default Backup Schedules

PiperOrigin-RevId: 688946300

Source-Link: googleapis/googleapis@b11e6b0

Source-Link: googleapis/googleapis-gen@f93f56b
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZjkzZjU2YjIxZmYwMWU0OTk5NzdjNGRkNTQ2ODljY2UxYjdjZjUzMCJ9

* 🦉 Updates from OwlBot post-processor

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

* chore: Configure Ruby clients for google-ads-ad_manager

PiperOrigin-RevId: 689139590

Source-Link: googleapis/googleapis@296f2ac

Source-Link: googleapis/googleapis-gen@2692736
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjY5MjczNjJlMGFhMTI5MzI1OGZjMjNmZTNjZTgzYzVjMjFkNWZiYiJ9

* 🦉 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: Sri Harsha CH <[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: core 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.

3 participants

@tseaver @dhermes @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.