Skip to main content

A translations service Python client

Project description

https://api.travis-ci.org/GreenelyAB/TranslationsClient.svg?branch=master

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

TranslationsClient-0.1.0.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

TranslationsClient-0.1.0-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page