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 — Generate readmes for most service samples by theacodes · Pull Request #599 · GoogleCloudPlatform/python-docs-samples

Conversation

@theacodes

@theacodes theacodes commented Oct 20, 2016

Copy link
Copy Markdown
Contributor

No description provided.

Sorry, something went wrong.

Uh oh!

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

All reactions
Jon Wayne Parrott
Generate readmes for most service samples
148389f
Change-Id: I7074b9c13ffe2d3ad687fa51b6d847f946c24c80
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 20, 2016
jerjou
jerjou reviewed Oct 20, 2016
View reviewed changes

ghost 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.

It seems like github is making a bunch of the urls relative urls for some reason?

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread bigquery/api/README.md
* https://cloud.google.com/bigquery/docs/managing_jobs_datasets_projects
* https://cloud.google.com/bigquery/streaming-data-into-bigquery
* https://cloud.google.com/bigquery/docs/data
* https://cloud.google.com/bigquery/querying-data

ghost Oct 20, 2016

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.

Do we not want the links back to the docs anymore?

Sorry, something went wrong.

Uh oh!

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

All reactions

ghost Oct 20, 2016

Copy link
Copy Markdown
Contributor Author

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.

I'm gonna revisit this one Jason has his docs tracker working.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread bigquery/api/README.rst Outdated
Google BigQuery Python Samples
===============================================================================

This directory contains samples for Google BigQuery. `BigQuery`_ is Google's fully managed, petabyte scale, low cost analytics data warehouse. BigQuery is NoOps—there is no infrastructure to manage and you don't need a database administrator—so you can focus on analyzing data to find meaningful insights, use familiar SQL, and take advantage of our pay-as-you-go model.

ghost Oct 20, 2016

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.

The rendered 'BigQuery_' in the second sentence here seems to appear as a link that goes nowhere (and the trailing underscore still appears) (ditto below)

Sorry, something went wrong.

Uh oh!

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

All reactions

ghost Oct 20, 2016

Copy link
Copy Markdown
Contributor Author

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.

Fixed.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread bigquery/api/README.rst Outdated

#. When running on App Engine or Compute Engine, credentials are already
set-up. However, you may need to configure your Compute Engine instance
with `additional scopes <gce-auth>`_.

ghost Oct 20, 2016

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.

This link 404s

Sorry, something went wrong.

Uh oh!

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

All reactions

ghost Oct 20, 2016

Copy link
Copy Markdown
Contributor Author

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.

Fixed.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread bigquery/api/README.rst.in
show_help: true
- name: User auth with an installed app
file: installed_app.py
show_help: true

ghost Oct 20, 2016

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.

Oh neat - does the script automatically run the script with no arguments, and include the output? That's super cool.

nit: Perhaps include the -h flag explicitly, to make clear that it's printing the help?

Sorry, something went wrong.

Uh oh!

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

All reactions

ghost Oct 20, 2016

Copy link
Copy Markdown
Contributor Author

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.

Without or without the -h flag, it'll show the help. :)

Sorry, something went wrong.

Uh oh!

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

All reactions

ghost Oct 20, 2016

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.

Hrm... I'm not seeing that:

$ python sync_query.py
usage: sync_query.py [-h] query
sync_query.py: error: too few arguments

$ python sync_query.py -h
usage: sync_query.py [-h] query

Command-line application to perform synchronous queries in BigQuery.

For more information, see the README.md under /bigquery.

Example invocation:
    $ python sync_query.py           'SELECT corpus FROM `publicdata.samples.shakespeare` GROUP BY corpus'

positional arguments:
  query       BigQuery SQL Query.

optional arguments:
  -h, --help  show this help message and exit

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread bigquery/cloud-client/README.rst

.. code-block:: bash

$ python quickstart.py

ghost Oct 20, 2016

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.

Hm... is it worth it to include this, if it doesn't include 'help' text?

Sorry, something went wrong.

Uh oh!

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

All reactions

ghost Oct 20, 2016

Copy link
Copy Markdown
Contributor Author

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.

Yep.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread bigquery/cloud-client/README.rst Outdated
For more information, see the README.md under /bigquery.

Example invocation:
$ python sync_query.py 'SELECT corpus FROM `publicdata.samples.shakespeare` GROUP BY corpus'

ghost Oct 20, 2016

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.

Weird random spaces here..

Sorry, something went wrong.

Uh oh!

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

All reactions

ghost Oct 20, 2016

Copy link
Copy Markdown
Contributor Author

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.

Not sure why, but it's not the samplegen's fault.

Sorry, something went wrong.

Uh oh!

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

All reactions

ghost Oct 20, 2016

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.

Should probably fix it before checking in the README that shows it, though.

I suspect it's because argparse is using the module's docstring for its help text, which includes a newline escape to fit under 80 characters (and a subsequent indent). If you escape the escape (ie \\) that should fix both the help text displayed when invoking the command, and the random spaces here.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread bigquery/cloud-client/README.rst Outdated
The client library
-------------------------------------------------------------------------------

This sample uses the `Google Cloud Client Library for Python <ccl-docs>`_.

ghost Oct 20, 2016

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.

This link 404s

Sorry, something went wrong.

Uh oh!

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

All reactions

ghost Oct 20, 2016

Copy link
Copy Markdown
Contributor Author

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.

Fixed.

Sorry, something went wrong.

Uh oh!

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

All reactions
Jon Wayne Parrott added 3 commits October 20, 2016 14:13
Jon Wayne Parrott
Address review comments
e396578
Change-Id: Ia1f5b06b85106adced1aadff8d056e4f57da6faa
Jon Wayne Parrott
Address review comments
3203e69
Change-Id: Ia4225e3a4fd45d01e70856c5276fddb7345bcb76
Jon Wayne Parrott
Address review comments
d074fec
Change-Id: I4a7ba7644f402c59567a00c9457556e6ec7cb0f2
@theacodes
theacodes merged commit a38e13a into master Oct 24, 2016
@theacodes
theacodes deleted the gen-service-readmes branch October 24, 2016 18:03
@theacodes

ghost commented Oct 25, 2016

Copy link
Copy Markdown
Contributor Author

Done

On Thu, Oct 20, 2016 at 2:22 PM Jerjou [email protected] wrote:

@jerjou commented on this pull request.

In bigquery/api/README.rst.in
#599:

  • show_help: true
    +- name: Load data by POST
  • file: load_data_by_post.py
  • show_help: true
    +- name: Load data from CSV
  • file: load_data_from_csv.py
  • show_help: true
    +- name: Load streaming data
  • file: streaming.py
  • show_help: true
    +- name: Export data to Cloud Storage
  • file: export_data_to_cloud_storage.py
  • show_help: true
    +- name: User auth with an installed app
  • file: installed_app.py
  • show_help: true

Hrm... I'm not seeing that:

$ python sync_query.py
usage: sync_query.py [-h] query
sync_query.py: error: too few arguments

$ python sync_query.py -h
usage: sync_query.py [-h] query

Command-line application to perform synchronous queries in BigQuery.

For more information, see the README.md under /bigquery.

Example invocation:
$ python sync_query.py 'SELECT corpus FROM publicdata.samples.shakespeare GROUP BY corpus'

positional arguments:
query BigQuery SQL Query.

optional arguments:
-h, --help show this help message and exit


In bigquery/cloud-client/README.rst
#599:

+To run this sample:
+
+.. code-block:: bash
+

  • $ python sync_query.py
  • usage: sync_query.py [-h] query
  • Command-line application to perform synchronous queries in BigQuery.
  • For more information, see the README.md under /bigquery.
  • Example invocation:
  •    $ python sync_query.py           'SELECT corpus FROM `publicdata.samples.shakespeare` GROUP BY corpus'
    

Should probably fix it before checking in the README that shows it, though.

I suspect it's because argparse is using the module's docstring for its
help text, which includes a newline escape to fit under 80 characters (and
a subsequent indent). If you escape the escape (ie ) that should fix
both the help text displayed when invoking the command, and the random
spaces here.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#599, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAPUc-Zzla9mAGVMJ9TY0O-pOzrKffN4ks5q19t4gaJpZM4KclUn
.

All reactions

Sorry, something went wrong.

Uh oh!

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

@Linchin Linchin mentioned this pull request Aug 18, 2025
chore: migrate handwritten samples from googleapis/python-bigquery-storage #13543
Merged
9 tasks
@chalmerlowe chalmerlowe mentioned this pull request Feb 19, 2026
migrate code from googleapis/python-logging #13844
Merged
9 tasks
This was referenced Sep 8, 2026
migrate code from googleapis/python-bigquery #14589
Closed
docs: migrate code from googleapis/python-bigquery googleapis/google-cloud-python#18303
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@jerjou jerjou jerjou left review comments
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.

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

@theacodes @jerjou @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.