Skip to content
 
 

Latest commit

 

History

55 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LibreTranslate-py

Python bindings to connect to a LibreTranslate API

https://pypi.org/project/libretranslatepy/

Install

pip install git+https://github.com/koevoet1221/LibreTranslate-py.git

Fork difference

This versions accepts both strings and lists of strings.

Example usage

from libretranslatepy import LibreTranslateAPI

lt = LibreTranslateAPI("https://libretranslate.com/")

print(lt.translate("LibreTranslate is awesome!", "en", "es"))
# LibreTranslate es impresionante!

print(lt.detect("Hello World"))
# [{"confidence": 0.6, "language": "en"}]

print(lt.languages())
# [{"code":"en", "name":"English"}, {"code":"es", "name":"Spanish"}]

License

Licensed under either the MIT License or Public Domain

Developed by P.J. Finlay

About

Python bindings to connect to a LibreTranslate API

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages