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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file TranslationsClient-0.1.0.tar.gz.

File metadata

File hashes

Hashes for TranslationsClient-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9ebe0107a0c24c78dd6bf653094a3480b165ccc384a1341e962e347176583efa
MD5 7445cba48964708b524c64fa410265c8
BLAKE2b-256 923a568909efc2605326fffbba5b5a0183adf6ab4abdc52762eaf34a33c361ad

See more details on using hashes here.

File details

Details for the file TranslationsClient-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for TranslationsClient-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9ae1f94a1ccfbec1bc97d6b6112e74e4a7f05e4227e75cc579ee0cdf5b046e1f
MD5 fa443bf052d3719fce20436dec2296fc
BLAKE2b-256 d1047dfaa094280ce218e4d311c005f6d31d8de60688981c16b88bbb770cad04

See more details on using hashes here.

Supported by

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