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 — samples: add samples from pubsub/cloud-client by plamut · Pull Request #151 · googleapis/python-pubsub

This repository was archived by the owner on Oct 13, 2026. It is now read-only.

Conversation

@plamut

@plamut plamut commented Jul 10, 2020

Copy link
Copy Markdown
Contributor

Closes #136.
Towards #131.

Samples from https://github.com/GoogleCloudPlatform/python-docs-samples/tree/master/pubsub/cloud-client


IMPORTANT: When merging, use the rebase and merge option to preserve the samples commit history!


This PR is a follow-up to #134 that was merged by squashing all the commits from the samples repo. The first commit reverts the (squashed) merged changes, while the rest are the commits from the original PR rebased onto that reversal commit. The PR thus also replaces #141.

Sorry, something went wrong.

Uh oh!

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

KleKlai reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
plamut and others added 30 commits July 10, 2020 14:30
@plamut
Revert "samples: add samples from pubsub/cloud-client (googleapis#134)"
a740170
This reverts commit e204b86.

We want to merge the samples branch *unsquashed* to preserve
samples commit history.
Jon Wayne Parrott @plamut
Add pubsub publisher and subscriber samples
7bbaba0
Change-Id: I38b90c10aef72c37188c4520897302933b9d2ea7
Jon Wayne Parrott @plamut
Update readme
bcf2693
Change-Id: Ie95e2e1556a8d97b5321dc86bf8de431aa36a2d5
Jon Wayne Parrott @plamut
Add pubsub iam samples
b444e38
Change-Id: I12c407d3cdf4a3f9736dfaeca6f20b31df6d310a
Jon Wayne Parrott @plamut
Fix lint issue
709a9ac
Change-Id: Ifebdab0b974cc3d3fe8900a23ca7416fed9e026a
@dpebot @plamut
Auto-update dependencies. [(googleapis#540)](GoogleCloudPlatform/pyth…
bb28d99
…on-docs-samples#540)
@dpebot @plamut
Auto-update dependencies. [(googleapis#542)](GoogleCloudPlatform/pyth…
6f37fba
…on-docs-samples#542)
Jon Wayne Parrott @plamut
Move to google-cloud [(googleapis#544)](GoogleCloudPlatform/python-do…
81f6ae9
…cs-samples#544)
@jmdobry @plamut
Add new "quickstart" samples [(googleapis#547)](GoogleCloudPlatform/p…
448a066
…ython-docs-samples#547)
Jon Wayne Parrott @plamut
Quickstart tests [(googleapis#569)](GoogleCloudPlatform/python-docs-s…
7041fbe
…amples#569)

* Add tests for quickstarts
* Update secrets
Jon Wayne Parrott @plamut
Generate readmes for most service samples [(googleapis#599)](GoogleCl…
9555356
…oudPlatform/python-docs-samples#599)
Jon Wayne Parrott @plamut
Update samples to support latest Google Cloud Python [(googleapis#656)](
2dd4785
GoogleCloudPlatform/python-docs-samples#656)
@dpebot @plamut
Auto-update dependencies. [(googleapis#715)](GoogleCloudPlatform/pyth…
fdee3c4
…on-docs-samples#715)
Jon Wayne Parrott @plamut
Fix pubusb tests
d47fb0f
Change-Id: I7dfe60b0f1240dc58a664968fd97ca5a8fa1109d
@dpebot @plamut
Auto-update dependencies. [(googleapis#825)](GoogleCloudPlatform/pyth…
f135a5b
…on-docs-samples#825)
@dpebot @plamut
Auto-update dependencies. [(googleapis#876)](GoogleCloudPlatform/pyth…
101d32c
…on-docs-samples#876)
Jon Wayne Parrott @plamut
Fix reference to our testing tools
2f5d2a9
Jon Wayne Parrott @plamut
Re-generate all readmes
3ba6fa1
@dpebot @plamut
Auto-update dependencies. [(googleapis#922)](GoogleCloudPlatform/pyth…
9b113cf
…on-docs-samples#922)

* Auto-update dependencies.

* Fix pubsub iam samples
@waprin @plamut
Fix README rst links [(googleapis#962)](GoogleCloudPlatform/python-do…
1ed3e69
…cs-samples#962)

* Fix README rst links

* Update all READMEs
@dpebot @plamut
Auto-update dependencies. [(googleapis#1004)](GoogleCloudPlatform/pyt…
a0daf6d
…hon-docs-samples#1004)

* Auto-update dependencies.

* Fix natural language samples

* Fix pubsub iam samples

* Fix language samples

* Fix bigquery samples
@dpebot @plamut
Auto-update dependencies. [(googleapis#1055)](GoogleCloudPlatform/pyt…
0f4a96b
…hon-docs-samples#1055)

* Auto-update dependencies.

* Explicitly use latest bigtable client

Change-Id: Id71e9e768f020730e4ca9514a0d7ebaa794e7d9e

* Revert language update for now

Change-Id: I8867f154e9a5aae00d0047c9caf880e5e8f50c53

* Remove pdb. smh

Change-Id: I5ff905fadc026eebbcd45512d4e76e003e3b2b43
Jon Wayne Parrott @plamut
Update pubsub samples [(googleapis#1092)](GoogleCloudPlatform/python-…
8c5312c
…docs-samples#1092)
Jon Wayne Parrott @plamut
Fix argpraser for pubsub subscriber
1343f98
Change-Id: I776863091846ee8ff8a70078c8b8d5498cf81ed6
Jon Wayne Parrott @plamut
Add comment about result blocking in pubsub samples
bd92f8b
Change-Id: I149fc1242ceb6b2cff8eae7ef18b364dd5c26566
@dpebot @plamut
Auto-update dependencies. [(googleapis#1097)](GoogleCloudPlatform/pyt…
4e3eb07
…hon-docs-samples#1097)
Jon Wayne Parrott @plamut
Update all generated readme auth instructions [(googleapis#1121)](Goo…
4485e7c
…gleCloudPlatform/python-docs-samples#1121)

Change-Id: I03b5eaef8b17ac3dc3c0339fd2c7447bd3e11bd2
michaelawyu @plamut
Added Link to Python Setup Guide [(googleapis#1158)](GoogleCloudPlatf…
e138d7d
…orm/python-docs-samples#1158)

* Update Readme.rst to add Python setup guide

As requested in b/64770713.

This sample is linked in documentation https://cloud.google.com/bigtable/docs/scaling, and it would make more sense to update the guide here than in the documentation.

* Update README.rst

* Update README.rst

* Update README.rst

* Update README.rst

* Update README.rst

* Update install_deps.tmpl.rst

* Updated readmegen scripts and re-generated related README files

* Fixed the lint error
@dpebot @plamut
Auto-update dependencies. [(googleapis#1138)](GoogleCloudPlatform/pyt…
9adce68
…hon-docs-samples#1138)
Jon Wayne Parrott @plamut
Fix a few more lint issues
671d787
Change-Id: I0d420f3053f391fa225e4b8179e45fd1138f5c65
anguillanneuf and others added 7 commits July 10, 2020 14:36
@anguillanneuf @busunkim96 @plamut
fix: make timeout an optional positional arg [(#3938)](GoogleCloudPla…
47e051d
…tform/python-docs-samples#3938)

* fix: make timeout an optional positional arg

* place `none` back in function signature

Co-authored-by: Bu Sun Kim <[email protected]>
@anguillanneuf @plamut
fix: replace name with id in samples [(#3953)](GoogleCloudPlatform/py…
fa1c813
…thon-docs-samples#3953)
@kurtisvg @plamut
Replace GCLOUD_PROJECT with GOOGLE_CLOUD_PROJECT. [(#4022)](GoogleClo…
c84240d
…udPlatform/python-docs-samples#4022)
@anguillanneuf @plamut
nit: remove redundant/wrong Pub/Sub region tag [(#4027)](GoogleCloudP…
a40dcf0
…latform/python-docs-samples#4027)
@anguillanneuf @plamut
Pub/Sub: wrap subscriber in a with block and add comments [(#4070)](G…
0686bfb
…oogleCloudPlatform/python-docs-samples#4070)

Use a `with` block to wrap subscriber and describe its purpose. 

Internal bug: b/157401623
@renovate-bot @plamut
Update dependency google-cloud-pubsub to v1.6.0 [(#4039)](GoogleCloud…
7a68bf6
…Platform/python-docs-samples#4039)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [google-cloud-pubsub](https://togithub.com/googleapis/python-pubsub) | minor | `==1.5.0` -> `==1.6.0` |

---

### Release Notes

<details>
<summary>googleapis/python-pubsub</summary>

### [`v1.6.0`](https://togithub.com/googleapis/python-pubsub/blob/master/CHANGELOG.md#&#8203;160-httpswwwgithubcomgoogleapispython-pubsubcomparev150v160-2020-06-09)

[Compare Source](https://togithub.com/googleapis/python-pubsub/compare/v1.5.0...v1.6.0)

##### Features

-   Add flow control for message publishing ([#&#8203;96](https://www.github.com/googleapis/python-pubsub/issues/96)) ([06085c4](https://www.github.com/googleapis/python-pubsub/commit/06085c4083b9dccdd50383257799904510bbf3a0))

##### Bug Fixes

-   Fix PubSub incompatibility with api-core 1.17.0+ ([#&#8203;103](https://www.github.com/googleapis/python-pubsub/issues/103)) ([c02060f](https://www.github.com/googleapis/python-pubsub/commit/c02060fbbe6e2ca4664bee08d2de10665d41dc0b))

##### Documentation

-   Clarify that Schedulers shouldn't be used with multiple SubscriberClients ([#&#8203;100](https://togithub.com/googleapis/python-pubsub/pull/100)) ([cf9e87c](https://togithub.com/googleapis/python-pubsub/commit/cf9e87c80c0771f3fa6ef784a8d76cb760ad37ef))
-   Fix update subscription/snapshot/topic samples ([#&#8203;113](https://togithub.com/googleapis/python-pubsub/pull/113)) ([e62c38b](https://togithub.com/googleapis/python-pubsub/commit/e62c38bb33de2434e32f866979de769382dea34a))

##### Internal / Testing Changes

-   Re-generated service implementaton using synth: removed experimental notes from the RetryPolicy and filtering features in anticipation of GA, added DetachSubscription (experimental) ([#&#8203;114](https://togithub.com/googleapis/python-pubsub/pull/114)) ([0132a46](https://togithub.com/googleapis/python-pubsub/commit/0132a4680e0727ce45d5e27d98ffc9f3541a0962))
-   Incorporate will_accept() checks into publish() ([#&#8203;108](https://togithub.com/googleapis/python-pubsub/pull/108)) ([6c7677e](https://togithub.com/googleapis/python-pubsub/commit/6c7677ecb259672bbb9b6f7646919e602c698570))

</details>

---

### Renovate configuration

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

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

:recycle: **Rebasing**: Never, or you tick the rebase/retry checkbox.

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

---

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

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#GoogleCloudPlatform/python-docs-samples).
@plamut
chore: update templates
39050eb
@plamut plamut added the type: docs Improvement to the documentation for an API. label Jul 10, 2020
@googlebot

googlebot commented Jul 10, 2020

Copy link
Copy Markdown

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

All reactions

Sorry, something went wrong.

Uh oh!

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

@googlebot googlebot added the cla: no This human has *not* signed the Contributor License Agreement. label Jul 10, 2020
@plamut plamut mentioned this pull request Jul 10, 2020
Revert "samples: add samples from pubsub/cloud-client (#134)" #141
Closed
plamut added 2 commits July 10, 2020 14:52
@plamut
chore(deps): update google-cloud-pubsub to v1.6.1
e48ed53
This restores the chnge from 1cb6746 that got lost during
the branch restoration.
@plamut
Fix URLs, commands, etc. in samples README
f11d069
@plamut
plamut requested review from anguillanneuf and busunkim96 July 10, 2020 14:01
@plamut

plamut commented Jul 10, 2020

Copy link
Copy Markdown
Contributor Author

Also addressed the feedback by @sgerrand, cleaned up a few things in the samples.

Not entirely sure what the missing quickstart.py should contain, thus replaced it with two quickstart sections for Publisher and Subscriber (better than a missing file).

sgerrand reacted with heart emoji
All reactions
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

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

@plamut
plamut marked this pull request as ready for review July 10, 2020 14:06
@plamut
plamut requested a review from hongalex as a code owner July 10, 2020 14:06
@sgerrand

sgerrand commented Jul 10, 2020

Copy link
Copy Markdown

Thanks @plamut!

All reactions

Sorry, something went wrong.

Uh oh!

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

@plamut plamut mentioned this pull request Jul 10, 2020
feat: Add OpenTelemetry integration #149
Closed
5 tasks done
@plamut
Merge branch 'master' into add-snippets-samples-take-2
777cdf3
@plamut plamut added the release blocking Required feature/issue must be fixed prior to next release. label Jul 10, 2020
anguillanneuf
anguillanneuf approved these changes Jul 10, 2020
View reviewed changes

@anguillanneuf anguillanneuf left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the changes!

Sorry, something went wrong.

Uh oh!

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

All reactions
busunkim96
busunkim96 approved these changes Jul 10, 2020
View reviewed changes
@plamut

plamut commented Jul 10, 2020

Copy link
Copy Markdown
Contributor Author

Somebody please also confirm that CLAs are in order :)

All reactions

Sorry, something went wrong.

Uh oh!

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

@busunkim96 busunkim96 added cla: yes This human has signed the Contributor License Agreement. and removed cla: no This human has *not* signed the Contributor License Agreement. labels Jul 10, 2020
@busunkim96

busunkim96 commented Jul 10, 2020

Copy link
Copy Markdown
Contributor

Samples are being moved from GoogleCloudPlatform/python-docs-samples (CLAs were already obtained there).

All reactions

Sorry, something went wrong.

Uh oh!

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

@googlebot

googlebot commented Jul 10, 2020

Copy link
Copy Markdown

A Googler has manually verified that the CLAs look good.

(Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.)

ℹ️ Googlers: Go here for more info.

All reactions

Sorry, something went wrong.

Uh oh!

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

@plamut
plamut merged commit 2588fa7 into googleapis:master Jul 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@hongalex hongalex Awaiting requested review from hongalex
2 more reviewers
@busunkim96 busunkim96 busunkim96 approved these changes
@anguillanneuf anguillanneuf anguillanneuf approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

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

Assignees

No one assigned

Labels

cla: yes This human has signed the Contributor License Agreement. release blocking Required feature/issue must be fixed prior to next release. type: docs Improvement to the documentation for an API.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Add pubsub/cloud-client samples from the samples repo

Uh oh!

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

17 participants

@plamut @googlebot @sgerrand @busunkim96 @anguillanneuf @dpebot @jmdobry @waprin @noerog @luxiangu @frankyn @alixhami @engelke @olivercoad @gguuss @kurtisvg @renovate-bot
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.