A simple REST API client for Systran.io
Project description
An unofficial python client to Systran.io APIs, official libraries are also available. I am not affiliated with Systran at all.
Setup & Installation
TODO
pip install systranio
Register & get an API key on systran.io
APIs
Translation
Status : WIP Reference : Translation API Calls :
[x] Translate text
[ ] Translate file
[ ] Get translation status
[ ] Cancel translation
[ ] Get translation result
[ ] Create batch
[ ] Get batch status
[ ] Cancel batch
[ ] Close batch
[x] Supported languages
[ ] Supported formats
[x] Get API version
[x] List profiles
Usage :
import systranio translation = systranio.Translation(API_KEY) options = {'source': 'en' } result = translation.text('translation', 'fr', **options) print(result) # traduction
Natural Language Processing
Status : not implemented
Ressource Management
Status : not implemented
Multimodal Text Extraction
Status : not implemented
Development
Requirements
pip install -r requirements.txt pip install -r dev-requirements.txt
Workflow
post-commit & pre-commit hooks are available to automate an update of the CHANGELOG.md after a commit. cp *-commit .git/hooks/ to activate them.
bumpversion automates the version number update in setup.py and a git tag creation Usage : bumpversion major|minor|patch (respectively increments version number x.y.z)
Tests are launched on a git push by gitlab-ci (see .gitlab-ci.yml), an environnemental variable called SYSTRANIO_KEY containing your API key is required.
Successful tag builds are uploaded to pypi by gitlab-ci, 2 environnemental variables are required PYPI_USER & PYPI_PASSWORD
TODO: * automate docs generation after a successful build
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.