Python client for the Caighdean Machine Translation service - https://github.com/kscanne/caighdean
$ pip install caighdean
For development install
$ pip install -e git+git@github.com:translate/python-caighdean#egg=caighdean
$ pip install caighdean[test]
>>> import caighdean
>>> source = u'Agus thubhairt e, \n "Iongantach!" an dèidh sin.'
>>> source
u'Agus thubhairt e, \n "Iongantach!" an d\xc3\xa8idh sin.'
>>> caighdean.Translator().translate(source)
u'Agus d\xfairt s\xe9, \n "Iontach!" ina dhiaidh sin.'
>>> print(caighdean.Translator().translate(source))
Agus dúirt sé,
"Iontach!" ina dhiaidh sin.