Generate readmes for most service samples#599
Conversation
Change-Id: I7074b9c13ffe2d3ad687fa51b6d847f946c24c80
jerjou
left a comment
There was a problem hiding this comment.
It seems like github is making a bunch of the urls relative urls for some reason?
| * 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.
Do we not want the links back to the docs anymore?
There was a problem hiding this comment.
I'm gonna revisit this one Jason has his docs tracker working.
| 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 rendered 'BigQuery_' in the second sentence here seems to appear as a link that goes nowhere (and the trailing underscore still appears) (ditto below)
|
|
||
| #. 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>`_. |
| show_help: true | ||
| - name: User auth with an installed app | ||
| file: installed_app.py | ||
| show_help: true |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Without or without the -h flag, it'll show the help. :)
There was a problem hiding this comment.
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|
|
||
| .. code-block:: bash | ||
|
|
||
| $ python quickstart.py |
There was a problem hiding this comment.
Hm... is it worth it to include this, if it doesn't include 'help' text?
| 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.
Not sure why, but it's not the samplegen's fault.
There was a problem hiding this comment.
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.
| The client library | ||
| ------------------------------------------------------------------------------- | ||
|
|
||
| This sample uses the `Google Cloud Client Library for Python <ccl-docs>`_. |
Change-Id: Ia1f5b06b85106adced1aadff8d056e4f57da6faa
Change-Id: Ia4225e3a4fd45d01e70856c5276fddb7345bcb76
Change-Id: I4a7ba7644f402c59567a00c9457556e6ec7cb0f2
|
Done On Thu, Oct 20, 2016 at 2:22 PM Jerjou [email protected] wrote:
|
No description provided.