GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Generate readmes for most service samples by theacodes · Pull Request #599 · GoogleCloudPlatform/python-docs-samples ConversationChange-Id: I7074b9c13ffe2d3ad687fa51b6d847f946c24c80
jerjou
reviewed
|
| * 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 |
There was a problem 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.
There was an error while loading. Please reload this page.
There was a problem 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.
There was an error while loading. Please reload this page.
| 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. |
There was a problem 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.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| #. 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>`_. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This link 404s
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| show_help: true | ||
| - name: User auth with an installed app | ||
| file: installed_app.py | ||
| show_help: true |
There was a problem 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.
There was an error while loading. Please reload this page.
There was a problem 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.
There was an error while loading. Please reload this page.
There was a problem 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.
There was an error while loading. Please reload this page.
|
|
||
| .. code-block:: bash | ||
|
|
||
| $ python quickstart.py |
There was a problem 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.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Yep.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| For more information, see the README.md under /bigquery. | ||
|
|
||
| Example invocation: | ||
| $ python sync_query.py 'SELECT corpus FROM `publicdata.samples.shakespeare` GROUP BY corpus' |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Weird random spaces here..
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem 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.
There was an error while loading. Please reload this page.
There was a problem 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.
There was an error while loading. Please reload this page.
| The client library | ||
| ------------------------------------------------------------------------------- | ||
|
|
||
| This sample uses the `Google Cloud Client Library for Python <ccl-docs>`_. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This link 404s
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Change-Id: Ia1f5b06b85106adced1aadff8d056e4f57da6faa
Change-Id: Ia4225e3a4fd45d01e70856c5276fddb7345bcb76
Change-Id: I4a7ba7644f402c59567a00c9457556e6ec7cb0f2
|
Done On Thu, Oct 20, 2016 at 2:22 PM Jerjou [email protected] wrote:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.