Skip to content

Latest commit

 

History

History
29 lines (16 loc) · 601 Bytes

README.md

File metadata and controls

29 lines (16 loc) · 601 Bytes

gtt-python-client

Python bindings for Google Tranlator Toolkit API http://code.google.com/apis/gtt/

Alpha version, have only basic support (models, ACL) yet.

Installation

pip install gtt-python-client

Usage

>>> import translator.client

>>> client = translator.client.TranslatorToolkitClient()

>>> client.client_login('some.google@account', 'P4ssW0rD', 'gtt-client')

>>> document = client.get_documents().entry[0]

>>> acl_link = document.find_acl_link()

>>> client.add_acl(acl_link, 'other.gooogle@account', 'writer')