flagist0 / reverso_context_api

Simple Python API for Reverso Context
MIT License
57 stars 6 forks source link
python reverso reverso-api reverso-context reverso-context-api translations-api

reverso_context_api

Simple Python API for Reverso Context

Installation

pip install reverso-context-api

Entry point

All operations are implemented in class Client.

from reverso_context_api import Client

It takes source and target languages ("de"/"en"/"ru"/etc) as required arguments. They will be used as defaults, but you can set another pair for each operation.

client = Client("de", "en")

Also you can pass login credentials to be able to work with your favorites:

client = Client("en", "ru", credentials=("email", "password"))

Supported features

All the methods return iterators (to hide paging and to not request more results than needed)