Skip to content

Instantly share code, notes, and snippets.


DiMiTriFrog DiMiTriFrog

View GitHub Profile
DiMiTriFrog /
Created Apr 10, 2020 -> Sample object to translate text or html with Google Cloud using Python | Stratton Apps SL
# Author: Stratton Apps SL | &
from import translate
import os
os.environ['GOOGLE_APPLICATION_CREDENTIALS'] = 'credentials.json'
proj_id = 'translate-33434'
class Session(object):
def __init__(self):
self.client = translate.TranslationServiceClient()