Skip to content
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

chore(translation): migrate code from googleapis/python-translate #8523

Merged
merged 273 commits into from
Nov 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
273 commits
Select commit Hold shift + click to select a range
eb8193f
renaming of the product to Google Translation API [(#910)](https://gi…
merla18 Apr 20, 2017
33486ac
Update translate readme
Apr 20, 2017
9c7ebc6
Re-generate all readmes
Apr 27, 2017
cbe8a44
Fix README rst links [(#962)](https://github.com/GoogleCloudPlatform/…
waprin May 24, 2017
f5ae2eb
Auto-update dependencies. [(#1004)](https://github.com/GoogleCloudPla…
dpebot Jun 27, 2017
6069a51
Auto-update dependencies. [(#1055)](https://github.com/GoogleCloudPla…
dpebot Aug 7, 2017
12b5d23
Auto-update dependencies. [(#1093)](https://github.com/GoogleCloudPla…
dpebot Aug 29, 2017
dd1c0d4
Update all generated readme auth instructions [(#1121)](https://githu…
Sep 18, 2017
7b4c588
Added Link to Python Setup Guide [(#1158)](https://github.com/GoogleC…
Oct 12, 2017
7bbfa6b
Auto-update dependencies. [(#1186)](https://github.com/GoogleCloudPla…
dpebot Nov 1, 2017
7ec7aa3
Fixed failed tests on Kokoro (Spanner + Translate) [(#1192)](https://…
Nov 3, 2017
44b5ead
Added "Open in Cloud Shell" buttons to README files [(#1254)](https:/…
Dec 7, 2017
94a75f0
Auto-update dependencies. [(#1377)](https://github.com/GoogleCloudPla…
dpebot Mar 5, 2018
de569d7
Regenerate the README files and fix the Open in Cloud Shell link for …
Apr 7, 2018
19b9f90
Update READMEs to fix numbering and add git clone [(#1464)](https://g…
frankyn Apr 26, 2018
05292a4
Add translate region tags [(#1488)](https://github.com/GoogleCloudPla…
averikitsch May 21, 2018
7e0d9a3
Include the comma in the translation [(#1787)](https://github.com/Goo…
engelke Oct 22, 2018
61cbba7
Auto-update dependencies. [(#1980)](https://github.com/GoogleCloudPla…
dpebot Feb 6, 2019
a5be14a
Translation v3beta1 samples [(#2084)](https://github.com/GoogleCloudP…
beccasaurus Apr 6, 2019
fe60e6e
fixing translate-with-glossary bug [(#2323)](https://github.com/Googl…
crowdus Aug 8, 2019
123c2d6
Translate beta samples fix [(#2327)](https://github.com/GoogleCloudPl…
crowdus Aug 12, 2019
0fdc938
Using glossaries with tts and vision tutorial sample code [(#2325)](h…
crowdus Aug 19, 2019
629e511
fix: refactored MP3 file creation test for Hybrid glossaries samples …
crowdus Sep 4, 2019
7f237df
Fix variable names in comments [(#2400)](https://github.com/GoogleClo…
nnegrey Sep 16, 2019
237e75c
Adds updates for samples profiler ... vision [(#2439)](https://github…
gguuss Oct 7, 2019
b389f55
Update v2 samples to explicitly use v2 library [(#2498)](https://gith…
nnegrey Oct 28, 2019
d909a9d
fix: translate test [(#2671)](https://github.com/GoogleCloudPlatform/…
leahecole Jan 6, 2020
4c7db15
automl: add natural language sentiment analysis ga samples [(#2677)](…
nnegrey Jan 7, 2020
e0f3482
fix region tag typo [(#2731)](https://github.com/GoogleCloudPlatform/…
leahecole Jan 21, 2020
99f37b2
Migrate published samples [(#2759)](https://github.com/GoogleCloudPla…
texasmichelle Jan 31, 2020
d7c311a
translate v3 snippets [(#2745)](https://github.com/GoogleCloudPlatfor…
munkhuushmgl Feb 4, 2020
ad3cc09
Translate: migrate published samples [(#2768)](https://github.com/Goo…
texasmichelle Feb 4, 2020
3652d3c
Translate: migrate published glossaries samples [(#2769)](https://git…
texasmichelle Feb 4, 2020
d998794
translate: increase timeout [(#2937)](https://github.com/GoogleCloudP…
nnegrey Feb 20, 2020
bafe161
Translate: migrate published v3 translate batch samples [(#2914)](ht…
munkhuushmgl Mar 2, 2020
4136aee
chore(deps): update dependency google-cloud-storage to v1.26.0 [(#304…
renovate-bot Mar 9, 2020
bce98f5
chore(deps): update dependency google-cloud-translate to v1.7.0 [(#30…
renovate-bot Mar 11, 2020
4c0e776
translate: fix tests [(#3087)](https://github.com/GoogleCloudPlatform…
nnegrey Mar 12, 2020
4590d8c
translate-v3: samples [(#3034)](https://github.com/GoogleCloudPlatfo…
munkhuushmgl Mar 16, 2020
66bea45
chore(deps): update dependency google-cloud-vision to v0.42.0 [(#3170…
renovate-bot Mar 27, 2020
94469b8
chore(deps): update dependency google-cloud-texttospeech to v1 [(#321…
renovate-bot Mar 29, 2020
0b62ec9
chore(deps): update dependency google-cloud-translate to v2 [(#3211)]…
renovate-bot Mar 30, 2020
4c8804c
Simplify noxfile setup. [(#2806)](https://github.com/GoogleCloudPlatf…
kurtisvg Apr 2, 2020
0d58bb3
Update dependency google-cloud-vision to v1 [(#3227)](https://github.…
renovate-bot Apr 2, 2020
31c44cf
translate: make test generic [(#3386)](https://github.com/GoogleCloud…
nnegrey Apr 14, 2020
ff6e0f5
[translate] fix: mark some tests as flaky [(#3495)](https://github.co…
Apr 24, 2020
36906ee
testing: replace @flaky with @pytest.mark.flaky [(#3496)](https://git…
Apr 25, 2020
fc116ef
chore(deps): update dependency google-cloud-storage to v1.28.0 [(#326…
renovate-bot Apr 29, 2020
69a0970
translate: fix glossary leak issue [(#3572)](https://github.com/Googl…
munkhuushmgl May 1, 2020
732e1bf
chore: some lint fixes [(#3751)](https://github.com/GoogleCloudPlatfo…
May 13, 2020
334da61
chore(deps): update dependency google-cloud-storage to v1.28.1 [(#378…
renovate-bot May 19, 2020
3be0b8f
[translate] fix hybrid glossaries tests [(#3936)](https://github.com/…
busunkim96 Jun 3, 2020
9e72707
testing: start using btlr [(#3959)](https://github.com/GoogleCloudPla…
Jun 9, 2020
14b2159
Replace GCLOUD_PROJECT with GOOGLE_CLOUD_PROJECT. [(#4022)](https://g…
kurtisvg Jun 9, 2020
5761870
remove whitelist replace with allowlist [(#4050)](https://github.com/…
leahecole Jun 10, 2020
1bb24de
chore(deps): update dependency google-cloud-storage to v1.29.0 [(#404…
renovate-bot Jun 19, 2020
e9cce11
chore(deps): update dependency google-cloud-texttospeech to v2.1.0 [(…
renovate-bot Jun 24, 2020
c2cb9f6
testing(translate): parameterize the timeout [(#4247)](https://github…
Jul 6, 2020
0497f97
chore(deps): update dependency pytest to v5.4.3 [(#4279)](https://git…
renovate-bot Jul 12, 2020
b11e687
Update dependency flaky to v3.7.0 [(#4300)](https://github.com/Google…
renovate-bot Jul 16, 2020
82a7d87
testing(translate): bump the timeout for operations [(#4258)](https:/…
Jul 16, 2020
f9f2ac8
chore: update templates
danoscarmike Jul 24, 2020
a97a4e6
chore(deps): update dependency google-cloud-storage to v1.30.0 (#26)
renovate-bot Aug 3, 2020
42b85b3
feat!: migrate API to microgenerator (#31)
danoscarmike Aug 5, 2020
4c05af8
chore: applies new samples README template
yoshi-automation Aug 7, 2020
c1f980d
chore(deps): update dependency google-cloud-translate to v3 (#37)
renovate-bot Aug 7, 2020
ed67598
test(samples): change string for utf8 translation (#48)
busunkim96 Aug 11, 2020
6d418db
samples: fixed flaky test (#57)
munkhuushmgl Aug 31, 2020
34ffaf9
automl beta [(#1575)](https://github.com/GoogleCloudPlatform/python-d…
sirtorry Jul 20, 2018
e2c3c82
remove translate prediction fallback [(#1598)](https://github.com/Goo…
sirtorry Jul 24, 2018
4b69f39
skip automl model create/delete test [(#1608)](https://github.com/Goo…
sirtorry Aug 3, 2018
32adfc4
Auto-update dependencies. [(#1658)](https://github.com/GoogleCloudPla…
dpebot Aug 28, 2018
de432f6
Update AutoML region tags to use standard product prefixes [(#1669)](…
alixhami Aug 29, 2018
084d360
Fix AutoML region tag typos [(#1687)](https://github.com/GoogleCloudP…
alixhami Sep 6, 2018
439ae46
Fixed name of model [(#1779)](https://github.com/GoogleCloudPlatform/…
engelke Oct 19, 2018
40fc38a
Auto-update dependencies. [(#1980)](https://github.com/GoogleCloudPla…
dpebot Feb 6, 2019
7737d60
Updated beta version of automl [(#2124)](https://github.com/GoogleClo…
engelke Apr 26, 2019
dd671fd
Adds updates for samples profiler ... vision [(#2439)](https://github…
gguuss Oct 7, 2019
2d08134
Auto-update dependencies. [(#2005)](https://github.com/GoogleCloudPla…
dpebot Dec 21, 2019
caa5fd7
Translate: migrate published v3 translate batch samples [(#2914)](ht…
munkhuushmgl Mar 2, 2020
76a29df
Update dependency google-cloud-automl to v0.10.0 [(#3033)](https://gi…
renovate-bot Mar 6, 2020
c9fbec6
chore(deps): update dependency google-cloud-storage to v1.26.0 [(#304…
renovate-bot Mar 9, 2020
67dbd31
Simplify noxfile setup. [(#2806)](https://github.com/GoogleCloudPlatf…
kurtisvg Apr 2, 2020
75c121b
chore(deps): update dependency google-cloud-storage to v1.28.0 [(#326…
renovate-bot Apr 29, 2020
cdd369a
chore: some lint fixes [(#3751)](https://github.com/GoogleCloudPlatfo…
May 13, 2020
b5be4af
chore(deps): update dependency google-cloud-storage to v1.28.1 [(#378…
renovate-bot May 19, 2020
f7f0880
testing: start using btlr [(#3959)](https://github.com/GoogleCloudPla…
Jun 9, 2020
85a4227
Replace GCLOUD_PROJECT with GOOGLE_CLOUD_PROJECT. [(#4022)](https://g…
kurtisvg Jun 9, 2020
11c060c
chore(deps): update dependency google-cloud-storage to v1.29.0 [(#404…
renovate-bot Jun 19, 2020
138281b
chore(deps): update dependency google-cloud-automl to v1 [(#4127)](ht…
renovate-bot Jun 19, 2020
1f05cac
fix(translate): fix a broken test [(#4360)](https://github.com/Google…
Jul 23, 2020
188c207
chore: remove automl samples
busunkim96 Aug 17, 2020
63115d2
docs: add w/ glossary and model
busunkim96 Aug 18, 2020
fe11b1b
test: fix sample test
busunkim96 Aug 18, 2020
ad1a656
test: fix remaining
busunkim96 Aug 18, 2020
b07ff64
chore: delete comments
busunkim96 Sep 1, 2020
d5c430e
fix: fix package name
busunkim96 Sep 1, 2020
7fef5e8
chore: update version to latest (#63)
munkhuushmgl Sep 2, 2020
483039f
fix: adjusts flaky test; deletes unneeded test (#66)
telpirion Sep 9, 2020
3abc7bc
chore(deps): update dependency google-cloud-vision to v2 (#71)
renovate-bot Oct 13, 2020
1ee5739
chore(deps): update dependency google-cloud-texttospeech to v2.2.0 (#49)
renovate-bot Oct 16, 2020
a407282
chore(deps): update dependency google-cloud-storage to v1.31.2 (#55)
renovate-bot Oct 16, 2020
cf57dc4
chore(deps): update dependency google-cloud-translate to v3.0.1 (#45)
renovate-bot Oct 16, 2020
bd631a8
chore(deps): update dependency google-cloud-automl to v2 (#67)
renovate-bot Oct 16, 2020
5ba9780
chore(deps): update dependency google-cloud-storage to v1.32.0 (#72)
renovate-bot Oct 23, 2020
bc7576c
fix: re-generated v3 client and fix system.py (#76)
arithmetic1728 Oct 26, 2020
e832681
chore(deps): update dependency google-cloud-automl to v2.1.0 (#77)
renovate-bot Oct 28, 2020
e3d767b
chore: fix flaky tests (#78)
munkhuushmgl Oct 29, 2020
5701559
chore(deps): update dependency google-cloud-storage to v1.33.0 (#79)
renovate-bot Nov 25, 2020
d2cc365
fix: moves import six inside of region tags (#83)
telpirion Dec 9, 2020
4ccbbe6
chore(deps): update dependency google-cloud-storage to v1.34.0 (#85)
renovate-bot Dec 11, 2020
15574e3
chore(deps): update dependency google-cloud-translate to v3.0.2 (#84)
renovate-bot Dec 11, 2020
ba89b49
chore(deps): update dependency google-cloud-storage to v1.35.0 (#86)
renovate-bot Dec 15, 2020
089f1b1
chore: update testing and docs config (#89)
yoshi-automation Dec 23, 2020
781b153
chore: fixed wrong method name (#100)
munkhuushmgl Jan 8, 2021
c04dd78
fix: moves region tags (#103)
telpirion Jan 13, 2021
f79dc17
chore(deps): update dependency google-cloud-vision to v2.1.0 (#110)
renovate-bot Feb 2, 2021
e1e23fe
chore(deps): update dependency google-cloud-storage to v1.35.1 (#111)
renovate-bot Feb 9, 2021
0b4e5a2
chore(deps): update dependency google-cloud-vision to v2.2.0 (#113)
renovate-bot Feb 12, 2021
988b56b
chore(deps): update dependency google-cloud-storage to v1.36.0 (#112)
renovate-bot Feb 12, 2021
a63e2c4
chore(deps): update dependency google-cloud-storage to v1.36.1 (#114)
renovate-bot Feb 24, 2021
d064c33
chore(deps): update dependency google-cloud-automl to v2.2.0 (#117)
renovate-bot Mar 5, 2021
3024b24
chore(deps): update dependency google-cloud-storage to v1.36.2 (#118)
renovate-bot Mar 11, 2021
ec9f2dd
chore: renamed output dir to prevent bucket concurrency error (#120)
munkhuushmgl Mar 23, 2021
f1626fa
feat(v3beta1): add online and batch document translation (#121)
yoshi-automation Mar 24, 2021
762ce9a
chore(deps): update dependency google-cloud-storage to v1.37.0 (#124)
renovate-bot Mar 26, 2021
3ec0ae7
chore(deps): update dependency google-cloud-vision to v2.3.0 (#129)
renovate-bot Apr 1, 2021
f038cdb
chore(deps): update dependency google-cloud-translate to v3.1.0 (#128)
renovate-bot Apr 1, 2021
616bd2a
chore(deps): update dependency google-cloud-texttospeech to v2.3.0 (#…
renovate-bot Apr 2, 2021
1ac08cc
chore(deps): update dependency google-cloud-storage to v1.37.1 (#131)
renovate-bot Apr 8, 2021
ddea73d
chore: migrate to owl bot (#137)
parthea Apr 23, 2021
44cc81a
chore(deps): update dependency google-cloud-vision to v2.3.1 (#134)
renovate-bot Apr 28, 2021
521b8c4
chore(deps): update dependency pytest to v6 (#138)
renovate-bot Apr 28, 2021
f231e2c
chore(deps): update dependency google-cloud-automl to v2.3.0 (#136)
renovate-bot Apr 28, 2021
0f0be34
chore(deps): update dependency google-cloud-storage to v1.38.0 (#140)
renovate-bot Apr 28, 2021
d124c8a
chore(deps): update dependency pytest to v6.2.4 (#150)
renovate-bot May 14, 2021
f66adfd
chore: refactored all glossaries samples to use predefined glossary i…
munkhuushmgl May 19, 2021
862678d
chore: new owl bot post processor docker image (#163)
gcf-owl-bot[bot] May 22, 2021
4c830cd
docs: connect Python Translate client library to nebulous serverless …
wescpy May 28, 2021
77aafe7
chore(deps): update dependency google-cloud-translate to v3.2.0 (#167)
renovate-bot Jun 3, 2021
de538eb
chore(deps): update dependency google-cloud-texttospeech to v2.4.0 (#…
renovate-bot Jun 3, 2021
e947d24
samples: changed v1beta1 AutoML model for v1 (#168)
telpirion Jun 3, 2021
8359f4b
chore(deps): update dependency google-cloud-vision to v2.3.2 (#174)
renovate-bot Jun 18, 2021
d24475d
chore(deps): update dependency google-cloud-translate to v3.2.1 (#181)
renovate-bot Jun 23, 2021
6d81d2f
chore(deps): update dependency google-cloud-storage to v1.39.0 (#182)
renovate-bot Jun 23, 2021
d3e94dc
add: Document Translation snippets - translate_document and batch_tra…
aribray Jun 29, 2021
9f98cb5
chore(deps): update dependency google-cloud-storage to v1.40.0 (#187)
renovate-bot Jul 1, 2021
a9335d4
chore(deps): update dependency google-cloud-texttospeech to v2.5.0 (#…
renovate-bot Jul 1, 2021
2aeb805
chore(deps): update dependency backoff to v1.11.0 (#192)
renovate-bot Jul 12, 2021
fc25c20
chore(deps): update dependency google-cloud-automl to v2.4.0 (#193)
renovate-bot Jul 12, 2021
aaa8978
chore(deps): update dependency google-cloud-storage to v1.41.0 (#198)
renovate-bot Jul 15, 2021
0fa7de6
chore(deps): update dependency backoff to v1.11.1 (#200)
renovate-bot Jul 16, 2021
e2afa57
chore(deps): update dependency google-cloud-vision to v2.4.0 (#194)
renovate-bot Jul 19, 2021
d6ff823
chore(deps): update dependency google-cloud-storage to v1.41.1 (#208)
renovate-bot Jul 21, 2021
9d378c5
chore(deps): update dependency google-cloud-translate to v3.3.1 (#212)
renovate-bot Jul 22, 2021
2031a6c
feat: add Samples section to CONTRIBUTING.rst (#206)
gcf-owl-bot[bot] Jul 22, 2021
dd7020d
chore(deps): update dependency google-cloud-texttospeech to v2.5.1 (#…
renovate-bot Jul 22, 2021
96ad19f
chore(deps): update dependency google-cloud-automl to v2.4.1 (#209)
renovate-bot Jul 22, 2021
f05cb36
chore(deps): update dependency google-cloud-vision to v2.4.1 (#211)
renovate-bot Jul 22, 2021
4a552e0
chore(deps): update dependency google-cloud-texttospeech to v2.5.2 (#…
renovate-bot Jul 28, 2021
b058508
chore(deps): update dependency google-cloud-automl to v2.4.2 (#216)
renovate-bot Jul 28, 2021
0f3d78d
chore(deps): update dependency google-cloud-vision to v2.4.2 (#221)
renovate-bot Jul 29, 2021
635af5f
chore(deps): update dependency google-cloud-translate to v3.3.2 (#220)
renovate-bot Jul 29, 2021
06e056b
chore: fix INSTALL_LIBRARY_FROM_SOURCE in noxfile.py (#226)
gcf-owl-bot[bot] Aug 11, 2021
c80cd7c
chore(deps): update dependency google-cloud-storage to v1.42.0 (#228)
renovate-bot Aug 12, 2021
4d2949b
chore: drop mention of Python 2.7 from templates (#229)
gcf-owl-bot[bot] Aug 13, 2021
eca363d
chore: Increase Batch Translate Text timeout (#225)
aribray Aug 29, 2021
1e2b9a2
chore: fix broken link in sample (#223)
laidig Aug 29, 2021
a05648a
chore(deps): update dependency google-cloud-translate to v3.4.0 (#241)
renovate-bot Aug 31, 2021
17d5064
chore(deps): update dependency pytest to v6.2.5 (#237)
renovate-bot Aug 31, 2021
fd83b03
chore(deps): update dependency google-cloud-storage to v1.42.1 (#248)
renovate-bot Sep 14, 2021
1802844
chore(deps): update dependency google-cloud-storage to v1.42.2 (#250)
renovate-bot Sep 16, 2021
ba84a98
chore: blacken samples noxfile template (#249)
gcf-owl-bot[bot] Sep 17, 2021
6fb3c38
chore: drop six (#253)
tseaver Sep 22, 2021
fe308ff
chore(deps): update dependency google-cloud-vision to v2.4.3 (#257)
renovate-bot Sep 27, 2021
8ec0661
chore(deps): update dependency google-cloud-texttospeech to v2.5.3 (#…
renovate-bot Sep 27, 2021
d4a6810
chore(deps): update dependency google-cloud-vision to v2.4.4 (#262)
renovate-bot Sep 30, 2021
6818825
chore: fail samples nox session if python version is missing (#261)
gcf-owl-bot[bot] Sep 30, 2021
d5cea35
chore(deps): update dependency google-cloud-translate to v3.4.1 (#263)
renovate-bot Sep 30, 2021
f471bb9
chore(deps): update dependency google-cloud-storage to v1.42.3 (#264)
renovate-bot Sep 30, 2021
58ee5d1
chore(python): Add kokoro configs for python 3.10 samples testing (#272)
gcf-owl-bot[bot] Oct 8, 2021
630ba53
chore(deps): update dependency google-cloud-texttospeech to v2.6.0 (#…
renovate-bot Oct 8, 2021
eedcab7
chore(deps): update dependency google-cloud-automl to v2.5.0 (#273)
renovate-bot Oct 11, 2021
dc1b7d0
Fix: #254 by increasing timeout, use backoff module instead of flaky …
nicain Oct 11, 2021
7ff9b98
chore(deps): update all dependencies (#274)
renovate-bot Oct 12, 2021
4c1a45b
chore(deps): update dependency google-cloud-translate to v3.6.0 (#281)
renovate-bot Oct 20, 2021
7d0d072
docs(samples): Add Cloud Code tags for API Explorer pilot (#282)
abbycar Oct 25, 2021
9f6d6b9
chore(deps): update all dependencies (#283)
renovate-bot Nov 3, 2021
16eccb3
chore(deps): update all dependencies (#291)
renovate-bot Nov 3, 2021
28cf555
chore(deps): update dependency google-cloud-automl to v2.5.2 (#292)
renovate-bot Nov 4, 2021
4247642
chore(deps): update all dependencies (#293)
renovate-bot Nov 5, 2021
dce41b3
chore(deps): update dependency google-cloud-texttospeech to v2.8.0 (#…
renovate-bot Nov 16, 2021
1710d72
chore(deps): update all dependencies (#301)
renovate-bot Nov 20, 2021
e8d38f6
fix: 290 added a create glossary line before each call using bistro-g…
orionnye Nov 23, 2021
b2e23d8
chore: update python-docs-samples link to main branch (#304)
gcf-owl-bot[bot] Dec 12, 2021
e7c44bd
chore: updated translate_v3beta1_translate_document sample (#308)
galz10 Dec 14, 2021
590296e
chore(deps): update all dependencies (#307)
renovate-bot Jan 11, 2022
c0b31fc
chore(python): fix undefined name 'glob' in samples noxfile (#314)
gcf-owl-bot[bot] Jan 11, 2022
d92d61a
chore(deps): update dependency google-cloud-storage to v2 (#318)
renovate-bot Jan 17, 2022
fcb37c3
chore(deps): update dependency google-cloud-automl to v2.6.0 (#322)
renovate-bot Jan 18, 2022
0b71c07
chore(python): Noxfile recognizes that tests can live in a folder (#323)
gcf-owl-bot[bot] Jan 19, 2022
ddeb910
chore: add samples/cloud-nebulous-serverless/README.md (#312)
wescpy Jan 19, 2022
91712a4
chore(deps): update dependency google-cloud-texttospeech to v2.9.1 (#…
renovate-bot Jan 19, 2022
7e69b77
chore(deps): update all dependencies (#325)
renovate-bot Feb 3, 2022
a16b917
docs: add generated snippets (#336)
gcf-owl-bot[bot] Feb 26, 2022
a77aaeb
chore: update copyright year to 2022 (#339)
gcf-owl-bot[bot] Feb 26, 2022
6da5916
chore(deps): update all dependencies (#335)
renovate-bot Feb 26, 2022
c9ebf00
chore(deps): update all dependencies (#342)
renovate-bot Mar 1, 2022
6a3c613
chore: Adding support for pytest-xdist and pytest-parallel (#349)
gcf-owl-bot[bot] Mar 4, 2022
bf4612e
chore(deps): update all dependencies (#352)
renovate-bot Mar 8, 2022
283c83e
chore(deps): update dependency google-cloud-texttospeech to v2.11.0 (…
renovate-bot Mar 12, 2022
f34f5a7
chore(deps): update dependency pytest to v7.1.0 (#356)
renovate-bot Mar 13, 2022
d4889d5
chore(deps): update dependency google-cloud-storage to v2.2.0 (#357)
renovate-bot Mar 14, 2022
3585d46
chore(deps): update dependency google-cloud-storage to v2.2.1 (#358)
renovate-bot Mar 16, 2022
0a36b67
chore(deps): update dependency pytest to v7.1.1 (#359)
renovate-bot Mar 19, 2022
bb59273
chore(python): use black==22.3.0 (#363)
gcf-owl-bot[bot] Mar 29, 2022
368c217
chore(deps): update dependency google-cloud-vision to v2.7.2 (#362)
renovate-bot Mar 30, 2022
9a65441
chore(deps): update dependency google-cloud-storage to v2.3.0 (#378)
renovate-bot Apr 13, 2022
364fa52
chore: use gapic-generator-python 0.65.1 (#377)
gcf-owl-bot[bot] Apr 14, 2022
3a6caae
chore(python): add nox session to sort python imports (#381)
gcf-owl-bot[bot] Apr 21, 2022
bd96c41
chore(deps): update dependency pytest to v7.1.2 (#385)
renovate-bot Apr 25, 2022
f6760a3
chore(deps): update dependency backoff to v2 (#386)
renovate-bot Apr 26, 2022
9faacdb
chore(deps): update dependency backoff to v2.0.1 (#388)
renovate-bot Apr 27, 2022
bdecaf4
chore(deps): update dependency google-cloud-translate to v3.7.3 (#392)
renovate-bot May 19, 2022
4632519
fix: require python 3.7+ (#411)
gcf-owl-bot[bot] Jul 9, 2022
3414b5b
chore(deps): update all dependencies (#400)
renovate-bot Jul 16, 2022
2c8dd17
chore: resolve issue with prerelease presubmit [autoapprove] (#417)
gcf-owl-bot[bot] Aug 2, 2022
a7a6888
chore(deps): update all dependencies (#420)
renovate-bot Aug 2, 2022
adc09a9
chore(deps): update all dependencies (#422)
renovate-bot Aug 5, 2022
ba52918
chore(deps): update all dependencies (#423)
renovate-bot Aug 9, 2022
a85ad0a
chore(deps): update all dependencies (#428)
renovate-bot Aug 16, 2022
674f969
docs(samples): fixing file saving for local documents translation (#419)
lucianommartins Sep 1, 2022
c3fac2b
chore(deps): update dependency pytest to v7.1.3 (#443)
renovate-bot Sep 6, 2022
b778ebc
chore: Bump gapic-generator-python version to 1.3.0 (#445)
gcf-owl-bot[bot] Sep 7, 2022
3433dba
chore(deps): update dependency google-cloud-translate to v3.8.2 (#444)
renovate-bot Sep 7, 2022
ffcb404
chore: detect samples tests in nested directories (#448)
gcf-owl-bot[bot] Sep 15, 2022
d78dfd3
chore(deps): update dependency google-cloud-vision to v3.1.2 (#450)
renovate-bot Sep 16, 2022
2713b82
chore(deps): update dependency google-cloud-vision to v3.1.3 (#453)
renovate-bot Oct 3, 2022
71d4f3a
chore(deps): update all dependencies (#455)
renovate-bot Oct 4, 2022
3d8c6ce
chore(deps): update dependency backoff to v2.2.1 (#456)
renovate-bot Oct 6, 2022
d8b8861
chore(deps): update all dependencies (#459)
renovate-bot Oct 18, 2022
096925d
chore(deps): update dependency pytest to v7.2.0 (#460)
renovate-bot Oct 26, 2022
cf81bc7
Merge remote-tracking branch 'migration/main' into python-translate-m…
telpirion Nov 16, 2022
0ab10b8
Merge branch 'main' into python-translate-migration
telpirion Nov 18, 2022
05db5e6
removes unneeded samples
telpirion Nov 18, 2022
68d7044
per reviewer
telpirion Nov 18, 2022
aacf9d9
Merge branch 'main' into python-translate-migration
telpirion Nov 18, 2022
28e0d1f
lint
telpirion Nov 18, 2022
3c98f66
per reviewer
telpirion Nov 18, 2022
0228099
tests
telpirion Nov 18, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions translate/automl/README.rst

This file was deleted.

3 changes: 0 additions & 3 deletions translate/cloud-client/README.rst

This file was deleted.

1 change: 1 addition & 0 deletions translate/samples/AUTHORING_GUIDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
See https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/AUTHORING_GUIDE.md
1 change: 1 addition & 0 deletions translate/samples/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
See https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/CONTRIBUTING.md
1 change: 1 addition & 0 deletions translate/samples/cloud-nebulous-serverless/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This sample, demonstrating how to access the [Cloud Translation API](https://cloud.google.com/translate) from [Google Cloud serverless platforms](https://cloud.google.com/serverless) (App Engine, Cloud Functions, Cloud Run) can be found at <https://github.com/googlecodelabs/cloud-nebulous-serverless/tree/main/cloud>. Versions in Python (2.7 and 3.7+) and Node.js (10+) are available along with hands-on tutorials.
202 changes: 202 additions & 0 deletions translate/samples/snippets/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,202 @@

.. This file is automatically generated. Do not edit this file directly.

Google Translation API Python Samples
===============================================================================

.. image:: https://gstatic.com/cloudssh/images/open-btn.png
:target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=translate/cloud-client/README.rst


This directory contains samples for Google Translation API. With `Google Translation API`, you can dynamically translate text between thousands of language pairs.




.. _Google Translation API: https://cloud.google.com/translate/docs


Setup
-------------------------------------------------------------------------------



Authentication
++++++++++++++

This sample requires you to have authentication setup. Refer to the
`Authentication Getting Started Guide`_ for instructions on setting up
credentials for applications.

.. _Authentication Getting Started Guide:
https://cloud.google.com/docs/authentication/getting-started




Install Dependencies
++++++++++++++++++++

#. Clone python-docs-samples and change directory to the sample directory you want to use.

.. code-block:: bash

$ git clone https://github.com/GoogleCloudPlatform/python-docs-samples.git

#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions.

.. _Python Development Environment Setup Guide:
https://cloud.google.com/python/setup

#. Create a virtualenv. Samples are compatible with Python 3.6+.

.. code-block:: bash

$ virtualenv env
$ source env/bin/activate

#. Install the dependencies needed to run the samples.

.. code-block:: bash

$ pip install -r requirements.txt

.. _pip: https://pip.pypa.io/
.. _virtualenv: https://virtualenv.pypa.io/






Samples
-------------------------------------------------------------------------------


Quickstart
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

.. image:: https://gstatic.com/cloudssh/images/open-btn.png
:target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=translate/cloud-client/quickstart.py,translate/cloud-client/README.rst




To run this sample:

.. code-block:: bash

$ python quickstart.py




Snippets
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

.. image:: https://gstatic.com/cloudssh/images/open-btn.png
:target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=translate/cloud-client/snippets.py,translate/cloud-client/README.rst




To run this sample:

.. code-block:: bash

$ python snippets.py


usage: snippets.py [-h]
{detect-language,list-languages,list-languages-with-target,translate-text}
...

This application demonstrates how to perform basic operations with the
Google Cloud Translate API

For more information, the documentation at
https://cloud.google.com/translate/docs.

positional arguments:
{detect-language,list-languages,list-languages-with-target,translate-text}
detect-language Detects the text's language.
list-languages Lists all available languages.
list-languages-with-target
Lists all available languages and localizes them to
the target language. Target must be an ISO 639-1
language code. See
https://g.co/cloud/translate/v2/translate-
reference#supported_languages
translate-text Translates text into the target language. Target must
be an ISO 639-1 language code. See
https://g.co/cloud/translate/v2/translate-
reference#supported_languages

optional arguments:
-h, --help show this help message and exit





Beta Snippets
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

.. image:: https://gstatic.com/cloudssh/images/open-btn.png
:target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=translate/cloud-client/beta_snippets.py,translate/cloud-client/README.rst




To run this sample:

.. code-block:: bash

$ python beta_snippets.py


usage: beta_snippets.py [-h]
{translate-text,batch-translate-text,detect-language,list-languages,list-languages-with-target,create-glossary,get-glossary,list-glossaries,delete-glossary,translate-with-glossary}
...

positional arguments:
{translate-text,batch-translate-text,detect-language,list-languages,list-languages-with-target,create-glossary,get-glossary,list-glossaries,delete-glossary,translate-with-glossary}
translate-text
batch-translate-text
detect-language
list-languages
list-languages-with-target
create-glossary
get-glossary
list-glossaries
delete-glossary
translate-with-glossary

optional arguments:
-h, --help show this help message and exit









The client library
-------------------------------------------------------------------------------

This sample uses the `Google Cloud Client Library for Python`_.
You can read the documentation for more details on API usage and use GitHub
to `browse the source`_ and `report issues`_.

.. _Google Cloud Client Library for Python:
https://googlecloudplatform.github.io/google-cloud-python/
.. _browse the source:
https://github.com/GoogleCloudPlatform/google-cloud-python
.. _report issues:
https://github.com/GoogleCloudPlatform/google-cloud-python/issues



.. _Google Cloud SDK: https://cloud.google.com/sdk/
27 changes: 27 additions & 0 deletions translate/samples/snippets/README.rst.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This file is used to generate README.rst

product:
name: Google Translation API
short_name: Translation API
url: https://cloud.google.com/translate/docs
description: >
With `Google Translation API`, you can dynamically translate text between
thousands of language pairs.

setup:
- auth
- install_deps

samples:
- name: Quickstart
file: quickstart.py
- name: Snippets
file: snippets.py
show_help: true
- name: Beta Snippets
file: beta_snippets.py
show_help: true

cloud_client_library: true

folder: translate/cloud-client
114 changes: 114 additions & 0 deletions translate/samples/snippets/hybrid_glossaries/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@

.. This file is automatically generated. Do not edit this file directly.

Google Translation API Python Samples
===============================================================================

.. image:: https://gstatic.com/cloudssh/images/open-btn.png
:target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=/README.rst


This directory contains samples for Google Translation API. With `Google Translation API`, you can dynamically translate text between thousands of language pairs.




.. _Google Translation API: https://cloud.google.com/translate/docs


Setup
-------------------------------------------------------------------------------



Authentication
++++++++++++++

This sample requires you to have authentication setup. Refer to the
`Authentication Getting Started Guide`_ for instructions on setting up
credentials for applications.

.. _Authentication Getting Started Guide:
https://cloud.google.com/docs/authentication/getting-started




Install Dependencies
++++++++++++++++++++

#. Clone python-docs-samples and change directory to the sample directory you want to use.

.. code-block:: bash

$ git clone https://github.com/GoogleCloudPlatform/python-docs-samples.git

#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions.

.. _Python Development Environment Setup Guide:
https://cloud.google.com/python/setup

#. Create a virtualenv. Samples are compatible with Python 3.6+.

.. code-block:: bash

$ virtualenv env
$ source env/bin/activate

#. Install the dependencies needed to run the samples.

.. code-block:: bash

$ pip install -r requirements.txt

.. _pip: https://pip.pypa.io/
.. _virtualenv: https://virtualenv.pypa.io/






Samples
-------------------------------------------------------------------------------


Using glossaries with vision and text-to-speech
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

.. image:: https://gstatic.com/cloudssh/images/open-btn.png
:target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=/hybrid_tutorial.py,/README.rst




To run this sample:

.. code-block:: bash

$ python hybrid_tutorial.py








The client library
-------------------------------------------------------------------------------

This sample uses the `Google Cloud Client Library for Python`_.
You can read the documentation for more details on API usage and use GitHub
to `browse the source`_ and `report issues`_.

.. _Google Cloud Client Library for Python:
https://googlecloudplatform.github.io/google-cloud-python/
.. _browse the source:
https://github.com/GoogleCloudPlatform/google-cloud-python
.. _report issues:
https://github.com/GoogleCloudPlatform/google-cloud-python/issues



.. _Google Cloud SDK: https://cloud.google.com/sdk/
22 changes: 22 additions & 0 deletions translate/samples/snippets/hybrid_glossaries/README.rst.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@


# This file is used to generate README.rst

product:
name: Google Translation API
short_name: Translation API
url: https://cloud.google.com/translate/docs
description: >
With `Google Translation API`, you can dynamically translate text between
thousands of language pairs.

setup:
- auth
- install_deps

samples:
- name: Using glossaries with vision and text-to-speech
file: hybrid_tutorial.py

cloud_client_library: true

Loading