Skip to content

Add Python Hello World sample. [DO NOT MERGE]#173

Closed
tswast wants to merge 4 commits intomasterfrom
swast-python
Closed

Add Python Hello World sample. [DO NOT MERGE]#173
tswast wants to merge 4 commits intomasterfrom
swast-python

Conversation

@tswast
Copy link
Copy Markdown
Contributor

@tswast tswast commented May 25, 2016

Uses the HappyBase layer, as recommended by Bigtable eng.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label May 25, 2016
tswast added 2 commits May 24, 2016 17:22
This runs the hello.py script in a fresh Python "virtual environment"
and checks that the output matches what we expect.
@tswast
Copy link
Copy Markdown
Contributor Author

tswast commented May 25, 2016

@lesv PTAL.

@@ -0,0 +1,67 @@
# Cloud Bigtable Hello World

This is a simple application that demonstrates using the [Google Cloud Client
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

gcloud sdk?

@lesv
Copy link
Copy Markdown
Contributor

lesv commented May 26, 2016

We may decide (tomorrow's chat) to put this in python-docs-samples. I'm basically happy. Surprised how simple this is.

@jonparrott PTAL

Delete table Hello-Bigtable-1234
```

## Understanding the code
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Doesn't this stuff usually go in the docs? Do you think it's worthwhile to duplicate this here or would it be better to link to the documentation page that describes this sample?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'd prefer to see this stuff in the README as well as the docs. Code should always have everything you need, IMHO.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think "everything you need" is satisfied by a link to the tutorial for this sample, yeah? Otherwise we risk the "official" tutorial in our docs and this version of the tutorial drifting.

If this does not yet have a companion documentation tutorial, then this can remain.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yea - I prefer duplication as sometimes different ways of saying the same thing makes it easier to get. (And when I'm working, I prefer to look at my IDE and not a web page.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fair enough, I'm okay with it as long as it stays relatively minimal.

@lesv
Copy link
Copy Markdown
Contributor

lesv commented May 27, 2016

LGTM - You need to take a look, I'm going to update master on your branch, however.

@googlebot
Copy link
Copy Markdown

We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: no This human has *not* signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants