A translations service Python client
Project description
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"]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for TranslationsClient-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ae1f94a1ccfbec1bc97d6b6112e74e4a7f05e4227e75cc579ee0cdf5b046e1f |
|
MD5 | fa443bf052d3719fce20436dec2296fc |
|
BLAKE2b-256 | d1047dfaa094280ce218e4d311c005f6d31d8de60688981c16b88bbb770cad04 |