Python client library

This page provides reference documentation and related resources for the Translation API Python client library.

Resource Description
Library reference Translation API Python library reference
Language guide General guide for using Python with GCP
GitHub repository Source code and additional documentation for this library
Quickstart Introduction to using this library
Stack Overflow Questions tagged with Translation API and Python

Installation

To install the client library:

For more on setting up your Python development environment, refer to the Python Development Environment Setup Guide.

pip install --upgrade google-cloud-translate

Using the client library

To use the Python client library for Translation API - Advanced, you must import the Translation API client library as follows:

from google.cloud import translate

See how to translate text for additional usage details.

Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Translation
Need help? Visit our support page.