Skip to content

GreenelyAB/TranslationsClient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TranslationsClient

image

A translation service client.

Usage example

>>> from translations_client import TranslationsClient
>>> client = TranslationsClient("127.0.0.1", 5512)
>>> print(client.get("se", None, "I have many"))
"Jag har många"
>>> print(client.get("se", None, "I have many", "translations"))
["Jag har många", "översättningar"]
>>> print(client.get("se", None, ("I have many", 1), ("translations", 1)))
["Jag har en", "översättning"]
>>> print(client.get("se", None, ("I have many", 0), ("translations", 0)))
["Jag har inga", "översättningar"]

About

A translations service Python client

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages