-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Basic implementation of Translate API. #1772
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
I just added a |
gcloud/translate/__init__.py
Outdated
| @@ -0,0 +1,18 @@ | |||
| # Copyright 2015 Google Inc. All rights reserved. | |||
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
6faad34 to
03b4442
Compare
|
pylint failure: |
3fd72e2 to
92d4e3e
Compare
|
LGTM |
|
@dhermes : Didn't notice the updated comment -- lmk what you think. |
|
|
||
| .. automodule:: gcloud.translate.client | ||
| :members: | ||
| :undoc-members: |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| query_params = {'key': self.key} | ||
| if target_language is None: | ||
| target_language = self.target_language | ||
| if target_language is not None: |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Test forthcoming after API discussion.
Also fixing a few broken docs.
- Dropping _zip_assert - Making multiple detections for a single value disallowed - Allow a default target language
92d4e3e to
2a4eaf8
Compare
gcloud/translate/client.py
Outdated
| class Client(object): | ||
| """Client to bundle configuration needed for API requests. | ||
|
|
||
| :type key: str |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
Thanks for the Pylint pointer. It was worse than a lint failure, was actually a broken system test (using the old |
|
LGTM |
|
@jgeewax I'll merge in 24 hours if I don't hear from you. |
|
lgtm |
|
Blerg! I forgot to squash commits. I wish GitHub had a way to block until squashed (if the author so chooses). |
Test forthcoming after API discussion.Tests added in 2nd commit.
/cc @daspecster