Skip to content

Python library for work with ABBYY Lingvo Dictionaries API

License

Notifications You must be signed in to change notification settings

Korolev-Oleg/lingvo-dictionary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

Beta version available on test.pypi

pip install -i https://test.pypi.org/simple/ lingvo-dictionary

Usage

from lingvo_dictionary import LingvoAPI, LangMap

client = LingvoAPI("YOUR_API_KEY")
client.auth()

# you can extract language code by using LangMap
src_lang = LangMap.English
dst_lang = LangMap.French

# all client methods using key=value api arguments 
# described in lingvio_dictionary._client.pyi
result: dict = client.translation(
    text="Floccinaucinihilipilification",
    srcLang=src_lang,
    dstLang=dst_lang
)

Get available languages

from pprint import pprint
from lingvo_dictionary import LangMap

pprint(LangMap().__dict__)

About

Python library for work with ABBYY Lingvo Dictionaries API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages