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 — chore(translation): migrate code from googleapis/python-translate by telpirion · Pull Request #8523 · GoogleCloudPlatform/python-docs-samples

Conversation

@telpirion

@telpirion telpirion commented Nov 16, 2022

Copy link
Copy Markdown
Contributor
  • Add new "quickstart" samples (#547)
  • Quickstart tests (#569)
  • Add translate samples (#574)
  • Generate most non-appengine readmes
  • Update requirements.txt
  • added model in the sample (#650)
  • added with and without model separately (#657)
  • Translate API no longer requires an API key. (#659)
  • Auto-update dependencies. (#715)
  • Changes default model to premium (#749)
  • Updates readme template to show credential auth instead of api key. (#802)
  • Updates translate version to match speech and language. (#843)
  • Translate update (#886)
  • Remove cloud config fixture (#887)
  • Unicode for translation
  • Adds check for translated text
  • Unicode for translation
  • Unicode for translation
  • Unicode for translation
  • missing newline
  • Adds six for 2/3 compatibility
  • Changes encoding style.
  • Fix unicode
  • renaming of the product to Google Translation API (#910)
  • Update translate readme
  • Re-generate all readmes
  • Fix README rst links (#962)
  • Auto-update dependencies. (#1004)
  • Auto-update dependencies. (#1055)
  • Auto-update dependencies. (#1093)
  • Update all generated readme auth instructions (#1121)
  • Added Link to Python Setup Guide (#1158)
  • Auto-update dependencies. (#1186)
  • Fixed failed tests on Kokoro (Spanner + Translate) (#1192)
  • Added "Open in Cloud Shell" buttons to README files (#1254)
  • Auto-update dependencies. (#1377)
  • Regenerate the README files and fix the Open in Cloud Shell link for some samples (#1441)
  • Update READMEs to fix numbering and add git clone (#1464)
  • Add translate region tags (#1488)
  • Include the comma in the translation (#1787)
  • Auto-update dependencies. (#1980)
  • Translation v3beta1 samples (#2084)
  • fixing translate-with-glossary bug (#2323)
  • Translate beta samples fix (#2327)
  • Using glossaries with tts and vision tutorial sample code (#2325)
  • fix: refactored MP3 file creation test for Hybrid glossaries samples (#2379)
  • Fix variable names in comments (#2400)
  • Adds updates for samples profiler ... vision (#2439)
  • Update v2 samples to explicitly use v2 library (#2498)
  • fix: translate test (#2671)
  • automl: add natural language sentiment analysis ga samples (#2677)
  • fix region tag typo (#2731)
  • Migrate published samples (#2759)
  • translate v3 snippets (#2745)
  • Translate: migrate published samples (#2768)
  • Translate: migrate published glossaries samples (#2769)
  • translate: increase timeout (#2937)
  • Translate: migrate published v3 translate batch samples (#2914)
  • chore(deps): update dependency google-cloud-storage to v1.26.0 (#3046)
  • chore(deps): update dependency google-cloud-translate to v1.7.0 (#3084)
  • translate: fix tests (#3087)
  • translate-v3: samples (#3034)
  • chore(deps): update dependency google-cloud-vision to v0.42.0 (#3170)
  • chore(deps): update dependency google-cloud-texttospeech to v1 (#3210)
  • chore(deps): update dependency google-cloud-translate to v2 (#3211)
  • Simplify noxfile setup. (#2806)
  • Update dependency google-cloud-vision to v1 (#3227)
  • translate: make test generic (#3386)
  • [translate] fix: mark some tests as flaky (#3495)
  • testing: replace @flaky with @pytest.mark.flaky (#3496)
  • chore(deps): update dependency google-cloud-storage to v1.28.0 (#3260)
  • translate: fix glossary leak issue (#3572)
  • chore: some lint fixes (#3751)
  • chore(deps): update dependency google-cloud-storage to v1.28.1 (#3785)
  • [translate] fix hybrid glossaries tests (#3936)
  • testing: start using btlr (#3959)
  • Replace GCLOUD_PROJECT with GOOGLE_CLOUD_PROJECT. (#4022)
  • remove whitelist replace with allowlist (#4050)
  • chore(deps): update dependency google-cloud-storage to v1.29.0 (#4040)
  • chore(deps): update dependency google-cloud-texttospeech to v2.1.0 (#4147)
  • testing(translate): parameterize the timeout (#4247)
  • chore(deps): update dependency pytest to v5.4.3 (#4279)
  • Update dependency flaky to v3.7.0 (#4300)
  • testing(translate): bump the timeout for operations (#4258)
  • chore: update templates
  • chore(deps): update dependency google-cloud-storage to v1.30.0 (Fix bucket name envvar in README #26)
  • feat!: migrate API to microgenerator (Update Discovery Doc Caching #31)
  • chore: applies new samples README template
  • chore(deps): update dependency google-cloud-translate to v3 (Make the integration text runnable with your own project easily #37)
  • test(samples): change string for utf8 translation (Add RPC verification to bigquery tests #48)
  • samples: fixed flaky test (Reword credential creation in README.md #57)
  • automl beta (#1575)
  • remove translate prediction fallback (#1598)
  • skip automl model create/delete test (#1608)
  • Auto-update dependencies. (#1658)
  • Update AutoML region tags to use standard product prefixes (#1669)
  • Fix AutoML region tag typos (#1687)
  • Fixed name of model (#1779)
  • Auto-update dependencies. (#1980)
  • Updated beta version of automl (#2124)
  • Adds updates for samples profiler ... vision (#2439)
  • Auto-update dependencies. (#2005)
  • Translate: migrate published v3 translate batch samples (#2914)
  • Update dependency google-cloud-automl to v0.10.0 (#3033)
  • chore(deps): update dependency google-cloud-storage to v1.26.0 (#3046)
  • Simplify noxfile setup. (#2806)
  • chore(deps): update dependency google-cloud-storage to v1.28.0 (#3260)
  • chore: some lint fixes (#3751)
  • chore(deps): update dependency google-cloud-storage to v1.28.1 (#3785)
  • testing: start using btlr (#3959)
  • Replace GCLOUD_PROJECT with GOOGLE_CLOUD_PROJECT. (#4022)
  • chore(deps): update dependency google-cloud-storage to v1.29.0 (#4040)
  • chore(deps): update dependency google-cloud-automl to v1 (#4127)
  • fix(translate): fix a broken test (#4360)
  • chore: remove automl samples
  • docs: add w/ glossary and model
  • test: fix sample test
  • test: fix remaining
  • chore: delete comments
  • fix: fix package name
  • chore: update version to latest (Fixing coverage #63)
  • fix: adjusts flaky test; deletes unneeded test (Make authn sample more uniform with the java one. #66)
  • chore(deps): update dependency google-cloud-vision to v2 (Run tests under both python 2 and 3 #71)
  • chore(deps): update dependency google-cloud-texttospeech to v2.2.0 (Move samples #49)
  • chore(deps): update dependency google-cloud-storage to v1.31.2 (Add storagetransfer samples #55)
  • chore(deps): update dependency google-cloud-translate to v3.0.1 (Added export format option #45)
  • chore(deps): update dependency google-cloud-automl to v2 (Fill in copyright information. #67)
  • chore(deps): update dependency google-cloud-storage to v1.32.0 (Move annotation for greater brevity. #72)
  • fix: re-generated v3 client and fix system.py (Organizing all app engine samples under appengine #76)
  • chore(deps): update dependency google-cloud-automl to v2.1.0 (Cleaning up #77)
  • chore: fix flaky tests (Move bigquery 'getting started' sample into github. #78)
  • chore(deps): update dependency google-cloud-storage to v1.33.0 (All appengine web tests should use webtest. #79)
  • fix: moves import six inside of region tags (Switching app engine tests to webtest and consolidating testing utils… #83)
  • chore(deps): update dependency google-cloud-storage to v1.34.0 (Tests use magic numbers #85)
  • chore(deps): update dependency google-cloud-translate to v3.0.2 (Removed an example for caching discovery doc. #84)
  • chore(deps): update dependency google-cloud-storage to v1.35.0 (There has got to be a better way to do bigquery/load_data_by_post #86)
  • chore: update testing and docs config (Rewriting bigquery samples to use proper argparse and main execution #89)
  • chore: fixed wrong method name (Update samples to be run from command line without modification #100)
  • fix: moves region tags (Making travis only test master branch to reduce thrashing. #103)
  • chore(deps): update dependency google-cloud-vision to v2.1.0 (Moving sample #110)
  • chore(deps): update dependency google-cloud-storage to v1.35.1 (Bring appengine/cloudsql up to standards #111)
  • chore(deps): update dependency google-cloud-vision to v2.2.0 (Bring appengine/multitenancy up to standards #113)
  • chore(deps): update dependency google-cloud-storage to v1.36.0 (Consolidate namespace example into this repo #112)
  • chore(deps): update dependency google-cloud-storage to v1.36.1 (Remove datastore namespaces #114)
  • chore(deps): update dependency google-cloud-automl to v2.2.0 (Bringing App Engine storage sample up to standards #117)
  • chore(deps): update dependency google-cloud-storage to v1.36.2 (Bringing cloud sql sample up to standards, and fixing a few other sta… #118)
  • chore: renamed output dir to prevent bucket concurrency error (Bringing namespace samples up to standards #120)
  • feat(v3beta1): add online and batch document translation (Bring appengine/i18n up to standards #121)
  • chore(deps): update dependency google-cloud-storage to v1.37.0 (Bring appengine/angular up to standards #124)
  • chore(deps): update dependency google-cloud-vision to v2.3.0 ("Cannot load CSV data with a nested schema" with a JSON file in load_data_by_post #129)
  • chore(deps): update dependency google-cloud-translate to v3.1.0 (Update python docstring. #128)
  • chore(deps): update dependency google-cloud-texttospeech to v2.3.0 (Update sample to use native sdk functionality. #127)
  • chore(deps): update dependency google-cloud-storage to v1.37.1 (Add test to load_data_by_post. #131)
  • chore: migrate to owl bot (Cleanup App Engine readmes, deployment instructions, and module-level docstrings. #137)
  • chore(deps): update dependency google-cloud-vision to v2.3.1 (BiqQuery Streaming Insert example is different from official documentation #134)
  • chore(deps): update dependency pytest to v6 (Allow gzip exported bigquery CSV with -z flag #138)
  • chore(deps): update dependency google-cloud-automl to v2.3.0 (Moving blobstore sample #136)
  • chore(deps): update dependency google-cloud-storage to v1.38.0 (Standardizing the App Engine readmes. 2/3rds of #137. #140)
  • chore(deps): update dependency pytest to v6.2.4 (Small discrepancy between argument and pydoc #150)
  • chore: refactored all glossaries samples to use predefined glossary i… (CloudSQL / Datastore samples should record only first two octtets of IP #159)
  • chore: new owl bot post processor docker image (Revert "Updating dependencies" #163)
  • docs: connect Python Translate client library to nebulous serverless example (Updating dependencies #162)
  • chore(deps): update dependency google-cloud-translate to v3.2.0 (Trying to improve datastore flaky tests. #167)
  • chore(deps): update dependency google-cloud-texttospeech to v2.4.0 (Datastore API samples need requirements.txt #166)
  • samples: changed v1beta1 AutoML model for v1 (datastore/api/tasks.py delete_command calls mark_done #168)
  • chore(deps): update dependency google-cloud-vision to v2.3.2 (Adding missing requirements.txt #174)
  • chore(deps): update dependency google-cloud-translate to v3.2.1 (managed_vms/mailgun needs tests #181)
  • chore(deps): update dependency google-cloud-storage to v1.39.0 (managed_vms/sengrid needs tests #182)
  • add: Document Translation snippets - translate_document and batch_translate_document (managed_vms/twilio needs tests #183)
  • chore(deps): update dependency google-cloud-storage to v1.40.0 (Turning off character echoing in encrypt-secrets.sh #187)
  • chore(deps): update dependency google-cloud-texttospeech to v2.5.0 (Removing reqcheck from travis tests #188)
  • chore(deps): update dependency backoff to v1.11.0 (Moving datastore samples to py.test #192)
  • chore(deps): update dependency google-cloud-automl to v2.4.0 (Moving compute engine samples to py.test #193)
  • chore(deps): update dependency google-cloud-storage to v1.41.0 (Move datastore key filters to use Query.key_filter() #198)
  • chore(deps): update dependency backoff to v1.11.1 (Moving managedvms/memcache to pymemcache for better python3 support. #200)
  • chore(deps): update dependency google-cloud-vision to v2.4.0 (Moving logging samples to py.test #194)
  • chore(deps): update dependency google-cloud-storage to v1.41.1 (Deprecate X-Google-Metadata-Request in favor new Metadata-Flavor header #208)
  • chore(deps): update dependency google-cloud-translate to v3.3.1 (Managed VMs flask samples should have an error handler #212)
  • feat: add Samples section to CONTRIBUTING.rst (Updating requirements. #206)
  • chore(deps): update dependency google-cloud-texttospeech to v2.5.1 (Remove database settings #210)
  • chore(deps): update dependency google-cloud-automl to v2.4.1 (Fix KeyError exception when project has no logs #209)
  • chore(deps): update dependency google-cloud-vision to v2.4.1 (Fix copy/paste error for reading timeseries #211)
  • chore(deps): update dependency google-cloud-texttospeech to v2.5.2 (Add sample for CRUD on GCS. #217)
  • chore(deps): update dependency google-cloud-automl to v2.4.2 (Updating requirements. #216)
  • chore(deps): update dependency google-cloud-vision to v2.4.2 (Refactor storage sample for better code-inclusion #221)
  • chore(deps): update dependency google-cloud-translate to v3.3.2 (Get rid of Django URL warnings #220)
  • chore: fix INSTALL_LIBRARY_FROM_SOURCE in noxfile.py (Fix metric.name #226)
  • chore(deps): update dependency google-cloud-storage to v1.42.0 (Monitoring Doc Fixups #228)
  • chore: drop mention of Python 2.7 from templates (Monitoring tests are flaky #229)
  • chore: Increase Batch Translate Text timeout (Update requirements #225)
  • chore: fix broken link in sample (Add Monitoring v3 Samples #223)
  • chore(deps): update dependency google-cloud-translate to v3.4.0 (Fix property name in projection_query #241)
  • chore(deps): update dependency pytest to v6.2.5 (Auto-detect directories to test. #237)
  • chore(deps): update dependency google-cloud-storage to v1.42.1 (App Engine Task Queue Sample. #248)
  • chore(deps): update dependency google-cloud-storage to v1.42.2 (Comment out speech api test #250)
  • chore: blacken samples noxfile template (Use gcloud 0.12.0 for Datastore samples so they use v1beta3. #249)
  • chore: drop six (Fix pep8 errors #253)
  • chore(deps): update dependency google-cloud-vision to v2.4.3 (Adding app engine request handling samples. #257)
  • chore(deps): update dependency google-cloud-texttospeech to v2.5.3 (Mark Monitoring As Flaky #258)
  • chore(deps): update dependency google-cloud-vision to v2.4.4 (Add Sengrid example #262)
  • chore: fail samples nox session if python version is missing (Refactoring taskqueue sample #261)
  • chore(deps): update dependency google-cloud-translate to v3.4.1 (Add Sendgrid Region Tags #263)
  • chore(deps): update dependency google-cloud-storage to v1.42.3 (Minor Sendgrid fixup #264)
  • chore(python): Add kokoro configs for python 3.10 samples testing (Add Error Reporting Code #272)
  • chore(deps): update dependency google-cloud-texttospeech to v2.6.0 (create_custom_metric() shouldn't send "name" #269)
  • chore(deps): update dependency google-cloud-automl to v2.5.0 (Adding endpoints sample #273)
  • Fix: appengine/taskqueue/pull-counter Needs Worker Tests #254 by increasing timeout, use backoff module instead of flaky (Fix test scribble and restructure region tags #271)
  • chore(deps): update all dependencies (moved image guestbook, added basic image example #274)
  • chore(deps): update dependency google-cloud-translate to v3.6.0 (Write a real test for encryption sample code #281)
  • docs(samples): Add Cloud Code tags for API Explorer pilot (Add snippets for ndb cache doc #282)
  • chore(deps): update all dependencies (gcp-python-repo-tools installation fails. #283)
  • chore(deps): update all dependencies (Added blobstore image example #291)
  • chore(deps): update dependency google-cloud-automl to v2.5.2 (Channel -- adding region tags in JS for docs #292)
  • chore(deps): update all dependencies (Adding appstats sample #293)
  • chore(deps): update dependency google-cloud-texttospeech to v2.8.0 (Add mail samples. #299)
  • chore(deps): update all dependencies (Add mail samples. #301)
  • fix: 290 added a create glossary line before each call using bistro-glossary (Add missing -r flag to pip install. #302)
  • chore: update python-docs-samples link to main branch (Fix lint error. #304)
  • chore: updated translate_v3beta1_translate_document sample (Fix doc tags. #308)
  • chore(deps): update all dependencies (Fix region tag #307)
  • chore(python): fix undefined name 'glob' in samples noxfile (Add Dataproc Sample #314)
  • chore(deps): update dependency google-cloud-storage to v2 (Adding mailjet samples for standard and flex #318)
  • chore(deps): update dependency google-cloud-automl to v2.6.0 (Fix Dataproc e2e for Python 3 #322)
  • chore(python): Noxfile recognizes that tests can live in a folder (json -> data arg #323)
  • chore: add samples/cloud-nebulous-serverless/README.md ( Complete Python Sample Code for Logging API #312)
  • chore(deps): update dependency google-cloud-texttospeech to v2.9.1 (Updating doc links #324)
  • chore(deps): update all dependencies (Remove beta settings from memcache app.yam #325)
  • docs: add generated snippets (More req updates #336)
  • chore: update copyright year to 2022 (Updating dependencies #339)
  • chore(deps): update all dependencies (update reqs #335)
  • chore(deps): update all dependencies (Adding test for customer-supplied disk encryption key. Fixes #281 #342)
  • chore: Adding support for pytest-xdist and pytest-parallel (Adding test for taskqueue pull worker. Fixes #254 #349)
  • chore(deps): update all dependencies (Add sample for speech api on GCS file via grpc. #352)
  • chore(deps): update dependency google-cloud-texttospeech to v2.11.0 (Adding sendgrid tests, fixes #182 #355)
  • chore(deps): update dependency pytest to v7.1.0 (Adding mailgun tests. Fixes #181 #356)
  • chore(deps): update dependency google-cloud-storage to v2.2.0 (Fixed typo in README.md #357)
  • chore(deps): update dependency google-cloud-storage to v2.2.1 (updating requirements #358)
  • chore(deps): update dependency pytest to v7.1.1 (Transfer service: http to gs bucket #359)
  • chore(python): use black==22.3.0 (cloud logging python client docs link 404 #363)
  • chore(deps): update dependency google-cloud-vision to v2.7.2 (Add sample for updating a cluster in Dataproc. #362)
  • chore(deps): update dependency google-cloud-storage to v2.3.0 (Use Explicit Imports #378)
  • chore: use gapic-generator-python 0.65.1 (Close HappyBase connection in bigtable/hello sample. #377)
  • chore(python): add nox session to sort python imports (Added script that manages a set of rolling backups. #381)
  • chore(deps): update dependency pytest to v7.1.2 (Add session for gRPC samples. #385)
  • chore(deps): update dependency backoff to v2 (Update Reqs #386)
  • chore(deps): update dependency backoff to v2.0.1 (New code samples for Endpoints v1.1 for Python (Alpha) #388)
  • chore(deps): update dependency google-cloud-translate to v3.7.3 (Update Bigtable samples to v2. #392)
  • fix: require python 3.7+ (Speech beta #411)
  • chore(deps): update all dependencies (Adding firebase auth to endpoints sample, fixes #396 #400)
  • chore: resolve issue with prerelease presubmit [autoapprove] (Fixing speech samples lost in merge. #417)
  • chore(deps): update all dependencies (Virtual env inst #420)
  • chore(deps): update all dependencies (Fix Flask CloudSQL link #422)
  • chore(deps): update all dependencies (Readme fix #423)
  • chore(deps): update all dependencies (Use gcloud beta app deploy for Endpoints #428)
  • docs(samples): fixing file saving for local documents translation (Add gcloud-based storage usage samples. #419)
  • chore(deps): update dependency pytest to v7.1.3 (Add Endpoints 1.1 sample #443)
  • chore: Bump gapic-generator-python version to 1.3.0 (Document usage of useLegacySQL parameter in BigQuery samples. #445)
  • chore(deps): update dependency google-cloud-translate to v3.8.2 (Add veneer samples for BigQuery. #444)
  • chore: detect samples tests in nested directories (UrlFetchRpcHandler error #448)
  • chore(deps): update dependency google-cloud-vision to v3.1.2 (Update sample app with latest configuration #450)
  • chore(deps): update dependency google-cloud-vision to v3.1.3 (Fix audiences type #453)
  • chore(deps): update all dependencies (Changes property name #455)
  • chore(deps): update dependency backoff to v2.2.1 (Auto-update dependencies. #456)
  • chore(deps): update all dependencies (Auto-update dependencies. #459)
  • chore(deps): update dependency pytest to v7.2.0 (Add basic README #460)

Description

Fixes #

Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.

Checklist

  • I have followed Sample Guidelines from AUTHORING_GUIDE.MD
  • README is updated to include all relevant information
  • Tests pass: nox -s py-3.9 (see Test Environment Setup)
  • Lint pass: nox -s lint (see Test Environment Setup)
  • These samples need a new API enabled in testing projects to pass (let us know which ones)
  • These samples need a new/updated env vars in testing projects set to pass (let us know which ones)
  • Please merge this PR for me once it is approved.
  • This sample adds a new sample directory, and I updated the CODEOWNERS file with the codeowners for this sample

Sorry, something went wrong.

Uh oh!

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

All reactions
merla18 and others added 30 commits July 31, 2020 16:23
@merla18 @danoscarmike
renaming of the product to Google Translation API [(#910)](#910)
eb8193f
Jon Wayne Parrott @danoscarmike
Update translate readme
33486ac
Jon Wayne Parrott @danoscarmike
Re-generate all readmes
9c7ebc6
@waprin @danoscarmike
Fix README rst links [(#962)](#962)
cbe8a44
* Fix README rst links

* Update all READMEs
@dpebot @danoscarmike
Auto-update dependencies. [(#1004)](#1004)
f5ae2eb
* Auto-update dependencies.

* Fix natural language samples

* Fix pubsub iam samples

* Fix language samples

* Fix bigquery samples
@dpebot @danoscarmike
Auto-update dependencies. [(#1055)](#1055)
6069a51
* Auto-update dependencies.

* Explicitly use latest bigtable client

Change-Id: Id71e9e768f020730e4ca9514a0d7ebaa794e7d9e

* Revert language update for now

Change-Id: I8867f154e9a5aae00d0047c9caf880e5e8f50c53

* Remove pdb. smh

Change-Id: I5ff905fadc026eebbcd45512d4e76e003e3b2b43
@dpebot @danoscarmike
Auto-update dependencies. [(#1093)](#1093)
12b5d23
* Auto-update dependencies.

* Fix storage notification poll sample

Change-Id: I6afbc79d15e050531555e4c8e51066996717a0f3

* Fix spanner samples

Change-Id: I40069222c60d57e8f3d3878167591af9130895cb

* Drop coverage because it's not useful

Change-Id: Iae399a7083d7866c3c7b9162d0de244fbff8b522

* Try again to fix flaky logging test

Change-Id: I6225c074701970c17c426677ef1935bb6d7e36b4
Jon Wayne Parrott @danoscarmike
Update all generated readme auth instructions [(#1121)](#1121)
dd1c0d4
Change-Id: I03b5eaef8b17ac3dc3c0339fd2c7447bd3e11bd2
michaelawyu @danoscarmike
Added Link to Python Setup Guide [(#1158)](#1158)
7b4c588
* Update Readme.rst to add Python setup guide

As requested in b/64770713.

This sample is linked in documentation https://cloud.google.com/bigtable/docs/scaling, and it would make more sense to update the guide here than in the documentation.

* Update README.rst

* Update README.rst

* Update README.rst

* Update README.rst

* Update README.rst

* Update install_deps.tmpl.rst

* Updated readmegen scripts and re-generated related README files

* Fixed the lint error
@dpebot @danoscarmike
Auto-update dependencies. [(#1186)](#1186)
7bbfa6b
michaelawyu @danoscarmike
Fixed failed tests on Kokoro (Spanner + Translate) [(#1192)](#1192)
7ec7aa3
* Fixed failed tests on Kokoro (Spanner + Translate)

* Update quickstart_test.py
michaelawyu @danoscarmike
Added "Open in Cloud Shell" buttons to README files [(#1254)](#1254)
44b5ead
@dpebot @danoscarmike
Auto-update dependencies. [(#1377)](#1377)
94a75f0
* Auto-update dependencies.

* Update requirements.txt
chenyumic @danoscarmike
Regenerate the README files and fix the Open in Cloud Shell link for …
de569d7
…some samples [(#1441)](#1441)
@frankyn @danoscarmike
Update READMEs to fix numbering and add git clone [(#1464)](#1464)
19b9f90
@averikitsch @danoscarmike
Add translate region tags [(#1488)](#1488)
05292a4
* Add region tags

* Added end region tags

* Linting errors fixed
@engelke @danoscarmike
Include the comma in the translation [(#1787)](#1787)
7e0d9a3
@dpebot @danoscarmike
Auto-update dependencies. [(#1980)](#1980)
61cbba7
* Auto-update dependencies.

* Update requirements.txt

* Update requirements.txt
@beccasaurus @danoscarmike
Translation v3beta1 samples [(#2084)](#2084)
a5be14a
* Add in progress beta snippets

Change-Id: I2cd8ddc2307a8e40d56ce7e493749dc05c34d164

* Add google-cloud-storage dependency

Change-Id: Iff7bc9b2c82b1e829580a3d4ad628087dbeee8be

* Non-'global' location required for BatchTranslateText

Change-Id: I5198aa6368a088e8f5ee295dc55a5e9e4ca8f494

* Upgrade google-cloud-translate to 1.4.0

1.4.0 includes the new v3beta1 alongside V2

Change-Id: I5adfe78ea7e78d84678db343cd84516e3d05491f

* Update Translate samples

You can now provide your own glossary ID

The tests now run within a randomly created bucket (deleted after each
test)

Change-Id: I5cb2680cd0e9e43c85932a6a0dc19e6fab5008c5

* pytest.fixture for random test bucket

Change-Id: I8e816ed4c95a6235347a29849044b4cab02d40a8

* flake8 spec fixes

Change-Id: I4932bcf856a9498b01d9661c90c6b45ee2958ee1

* Added pytest fixture for creating glossary (WIP)

Change-Id: Iddb5ecbf0eefb9efd2243dc4bc56b585102e9351

* Add assertions, remove placeholder TODOs

Change-Id: If1eb20bca5bfcc87dd0652d5488b2188afa626af
@crowdus @danoscarmike
fixing translate-with-glossary bug [(#2323)](#2323)
fe60e6e
@crowdus @danoscarmike
Translate beta samples fix [(#2327)](#2327)
123c2d6
* fixing translate-with-glossary bug

* tests passing

* reverting to python3 compatibility

* snippets test fix
@crowdus @danoscarmike
Using glossaries with tts and vision tutorial sample code [(#2325)](#…
0fdc938
…2325)

* fixing translate-with-glossary bug

* initial commit

* adding resources

* adding more resources

* glossary accomodates upper case words

* finished hybrid glossaries tutorial sample code

* Revert "fixing translate-with-glossary bug"

This reverts commit 6a9f7ca.

* lint fix for tests. TODO src lint fix

* lint

* it's the final lint-down

* adding README

* implementing @nnegrey's feedback

* lint

* lint

* extracting files from cloud-client

* lint comment test

* fixing comments per @beccasaurus

* removing redundant directory

* implementing @nnegrey's feedback

* lint

* lint

* handling glossary-already-exists exception

* lint

* adding ssml functionality

* fixing imports per @nnegrey

* fixed import comment

* more specific exceptions import

* removing period from copyright
@crowdus @danoscarmike
fix: refactored MP3 file creation test for Hybrid glossaries samples [(…
629e511
…#2379)](#2379)

* fix: refactored MP3 file creation test

* fix: lint
@nnegrey @danoscarmike
Fix variable names in comments [(#2400)](#2400)
7f237df
@gguuss @danoscarmike
Adds updates for samples profiler ... vision [(#2439)](#2439)
237e75c
@nnegrey @danoscarmike
Update v2 samples to explicitly use v2 library [(#2498)](#2498)
b389f55
@leahecole @danoscarmike
fix: translate test [(#2671)](#2671)
d909a9d
* fix: translate test

* Add unicode formatting
@nnegrey @danoscarmike
automl: add natural language sentiment analysis ga samples [(#2677)](#…
4c7db15
…2677)

* automl: add natural language sentiment analysis ga samples

* Add links to documentation

* Update tests to use centralized project

* Fix environment variable, make translate test less flaky
@leahecole @danoscarmike
fix region tag typo [(#2731)](#2731)
e0f3482
@texasmichelle @leahecole @danoscarmike
Migrate published samples [(#2759)](#2759)
99f37b2
Migrate from tmp-generated-samples branch 615c08e
Remove boilerplate
Update copyright date
Blacken
Remove unused imports
Shorten docstrings
Remove CLI
Set defaults in function definition
Add link to supported types guide
Inline function arguments
Co-authored-by: Leah E. Cole <[email protected]>
@telpirion telpirion closed this Nov 17, 2022
@telpirion telpirion reopened this Nov 18, 2022
@telpirion telpirion added api: translate Issues related to the Cloud Translation API. api: translation Issues related to the Cloud Translation API API. labels Nov 18, 2022
@telpirion
Merge branch 'main' into python-translate-migration
0ab10b8
@telpirion
telpirion marked this pull request as ready for review November 18, 2022 18:13
@telpirion
telpirion requested review from a team as code owners November 18, 2022 18:13
@telpirion telpirion changed the title migrate code from googleapis/python-translate chore(translation): migrate code from googleapis/python-translate Nov 18, 2022
@snippet-bot

snippet-bot Bot commented Nov 18, 2022 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

Here is the summary of changes.

You are about to add 28 region tags.
  • translate/samples/snippets/hybrid_glossaries/hybrid_tutorial.py:16, tag translate_hybrid_imports
  • translate/samples/snippets/hybrid_glossaries/hybrid_tutorial.py:30, tag translate_hybrid_project_id
  • translate/samples/snippets/hybrid_glossaries/hybrid_tutorial.py:36, tag translate_hybrid_vision
  • translate/samples/snippets/hybrid_glossaries/hybrid_tutorial.py:66, tag translate_hybrid_create_glossary
  • translate/samples/snippets/hybrid_glossaries/hybrid_tutorial.py:122, tag translate_hybrid_translate
  • translate/samples/snippets/hybrid_glossaries/hybrid_tutorial.py:168, tag translate_hybrid_tts
  • translate/samples/snippets/hybrid_glossaries/hybrid_tutorial.py:226, tag translate_hybrid_integration
  • translate/samples/snippets/snippets.py:27, tag translate_detect_language
  • translate/samples/snippets/snippets.py:45, tag translate_list_codes
  • translate/samples/snippets/snippets.py:60, tag translate_list_language_names
  • translate/samples/snippets/snippets.py:79, tag translate_text_with_model
  • translate/samples/snippets/snippets.py:106, tag translate_translate_text
  • translate/samples/snippets/translate_v3_batch_translate_text.py:15, tag translate_v3_batch_translate_text
  • translate/samples/snippets/translate_v3_batch_translate_text_with_glossary.py:16, tag translate_v3_batch_translate_text_with_glossary
  • translate/samples/snippets/translate_v3_batch_translate_text_with_glossary_and_model.py:15, tag translate_v3_batch_translate_text_with_glossary_and_model
  • translate/samples/snippets/translate_v3_batch_translate_text_with_model.py:16, tag translate_v3_batch_translate_text_with_model
  • translate/samples/snippets/translate_v3_create_glossary.py:15, tag translate_v3_create_glossary
  • translate/samples/snippets/translate_v3_delete_glossary.py:15, tag translate_v3_delete_glossary
  • translate/samples/snippets/translate_v3_detect_language.py:15, tag translate_v3_detect_language
  • translate/samples/snippets/translate_v3_get_glossary.py:15, tag translate_v3_get_glossary
  • translate/samples/snippets/translate_v3_get_supported_languages.py:15, tag translate_v3_get_supported_languages
  • translate/samples/snippets/translate_v3_get_supported_languages_with_target.py:15, tag translate_v3_get_supported_languages_for_target
  • translate/samples/snippets/translate_v3_list_glossary.py:15, tag translate_v3_list_glossary
  • translate/samples/snippets/translate_v3_translate_text.py:15, tag translate_v3_translate_text
  • translate/samples/snippets/translate_v3_translate_text_with_glossary.py:15, tag translate_v3_translate_text_with_glossary
  • translate/samples/snippets/translate_v3_translate_text_with_model.py:15, tag translate_v3_translate_text_with_model
  • translate/samples/snippets/translate_v3beta1_batch_translate_document.py:15, tag translate_v3beta1_batch_translate_document
  • translate/samples/snippets/translate_v3beta1_translate_document.py:15, tag translate_v3beta1_translate_document

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment
All reactions

Sorry, something went wrong.

Uh oh!

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

@blunderbuss-gcf blunderbuss-gcf Bot assigned dandhlee Nov 18, 2022
@telpirion telpirion added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Nov 18, 2022
@telpirion

telpirion commented Nov 18, 2022

Copy link
Copy Markdown
Contributor Author

Set this to "Ready for Review" too soon -- still need to remove old / unused samples.

All reactions

Sorry, something went wrong.

Uh oh!

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

dandhlee
dandhlee requested changes Nov 18, 2022
View reviewed changes

@dandhlee dandhlee left a comment

Copy link
Copy Markdown
Collaborator

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.

Could you rename the directory to be translate? This change was made to rename from python-translation to python-translate.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread translation/samples/generated_samples/snippet_metadata_translate_v3.json Outdated
@@ -0,0 +1,1728 @@
{

@dandhlee dandhlee Nov 18, 2022

Copy link
Copy Markdown
Collaborator

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.

Snippetgen samples are not in scope, please remove this directory and keep it in the old repository.

Sorry, something went wrong.

Uh oh!

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

All reactions

@telpirion telpirion Nov 18, 2022

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.

Done.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread translation/samples/snippets/noxfile.py Outdated
@@ -0,0 +1,312 @@
# Copyright 2019 Google LLC

@dandhlee dandhlee Nov 18, 2022

Copy link
Copy Markdown
Collaborator

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.

Please remove this file.

Sorry, something went wrong.

Uh oh!

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

All reactions

@telpirion telpirion Nov 18, 2022

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.

Done.

Sorry, something went wrong.

Uh oh!

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

All reactions
@telpirion
removes unneeded samples
05db5e6
@telpirion
telpirion requested a review from nicain as a code owner November 18, 2022 18:45
@telpirion telpirion removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Nov 18, 2022
@telpirion

telpirion commented Nov 18, 2022

Copy link
Copy Markdown
Contributor Author

Could you rename the directory to be translate? This change was made to rename from python-translation to python-translate.

The name of the product is Cloud Translation. See: https://cloud.google.com/translate/docs/

All reactions

Sorry, something went wrong.

Uh oh!

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

telpirion added 2 commits November 18, 2022 10:48
@telpirion
per reviewer
68d7044
@telpirion
Merge branch 'main' into python-translate-migration
aacf9d9
@dandhlee

dandhlee commented Nov 18, 2022

Copy link
Copy Markdown
Collaborator

The name of the product is indeed Translation but the shortname is translate. Indeed strange, but I'd prefer to be consistent.

All reactions

Sorry, something went wrong.

Uh oh!

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

@telpirion
lint
28e0d1f
@telpirion
telpirion requested a review from dandhlee November 18, 2022 18:52
@telpirion
per reviewer
3c98f66
@telpirion

telpirion commented Nov 18, 2022

Copy link
Copy Markdown
Contributor Author

After conferring with @nicain on preferred branding, I've changed the folder name.

All reactions

Sorry, something went wrong.

Uh oh!

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

@telpirion
tests
0228099
dandhlee
dandhlee approved these changes Nov 18, 2022
View reviewed changes

@dandhlee dandhlee left a comment

Copy link
Copy Markdown
Collaborator

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.

LGTM. Overriding CLA and merging.

Sorry, something went wrong.

Uh oh!

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

All reactions
@dandhlee
dandhlee merged commit 2073cb5 into main Nov 18, 2022
@dandhlee
dandhlee deleted the python-translate-migration branch November 18, 2022 21:13
@telpirion telpirion mentioned this pull request Dec 2, 2022
chore(samples): deleting migrated samples googleapis/python-translate#468
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@dandhlee dandhlee dandhlee approved these changes
@nicain nicain Awaiting requested review from nicain

Uh oh!

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

Assignees

@dandhlee dandhlee

Labels

api: translate Issues related to the Cloud Translation API. api: translation Issues related to the Cloud Translation API API. samples Issues that are directly related to samples.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

appengine/taskqueue/pull-counter Needs Worker Tests

Uh oh!

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

20 participants

@telpirion @dandhlee @merla18 @waprin @dpebot @frankyn @averikitsch @engelke @beccasaurus @crowdus @nnegrey @gguuss @leahecole @texasmichelle @munkhuushmgl @renovate-bot @kurtisvg @busunkim96 @danoscarmike @yoshi-automation
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.