Unnoficial Python Client to access the GeoFluent API
Project description
# GeoFluent Python Client
Unnoficial Python Client to access the [GeoFluent API](http://www.lionbridge.com/geofluent/).
It has been developed by [Redlink GmbH](http://redlink.co/) in the context of the [SSIX Project](https://ssix-project.eu/).
## API
Upon usage of the [GeoFluent API](http://www.lionbridge.com/geofluent/) you **need to register** an account there.
You can find further technical documentation at:
* [API v3 Swagger Documentation](https://api.geofluent.com/Translation/swagger/docs/v3)
* [API v3 Swagger UI](https://api.geofluent.com/Translation/swagger/ui/index)
The current status of implementation of the [GeoFluent API](http://www.lionbridge.com/geofluent/)
is the following:
| Feature |Status |
|--- |--- |
| Detect | not implemented |
| HealthCheck | not implemented |
| Interpret | not implemented |
| Languages | **implemented** |
| Profile | not implemented |
| TermsOfService | not implemented |
| Transcribe | **implemented** |
## Instalation
The modules is [available from PyPI](https://pypi.python.org/pypi/geofluent),
so you just need to install it:
pip install geofluent
## Usage
### Library
from geofluent import GeoFluent
gf = GeoFluent(key=key, secret=secret)
// retrieve available languages
languages = [(i["source"]["code"], i["target"]["code"]) for i in gf.languages()]
print("Languages supported:" + ", ".join(["%s->%s" % language for language in languages]))
// translate from German to English
translation = gf.translate("Ich werde es testen", "de-de", "en-xn");
print("Translation: " + translation);
### Command-Line
You can can use the CLI tool to translate each line of file and get the translations back as CSV:
python3 geofluent/cli.py key secret source target file.txt
With `python3 geofluent/cli.py -h` you get some additional help of its usage.
### Microservice
In case you need to locally expose it as a microservice, the modules provides a dedicated utility to proxy that:
python3 geofluent/cli.py key secret [port]
## License
This tool is available under [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0).
Unnoficial Python Client to access the [GeoFluent API](http://www.lionbridge.com/geofluent/).
It has been developed by [Redlink GmbH](http://redlink.co/) in the context of the [SSIX Project](https://ssix-project.eu/).
## API
Upon usage of the [GeoFluent API](http://www.lionbridge.com/geofluent/) you **need to register** an account there.
You can find further technical documentation at:
* [API v3 Swagger Documentation](https://api.geofluent.com/Translation/swagger/docs/v3)
* [API v3 Swagger UI](https://api.geofluent.com/Translation/swagger/ui/index)
The current status of implementation of the [GeoFluent API](http://www.lionbridge.com/geofluent/)
is the following:
| Feature |Status |
|--- |--- |
| Detect | not implemented |
| HealthCheck | not implemented |
| Interpret | not implemented |
| Languages | **implemented** |
| Profile | not implemented |
| TermsOfService | not implemented |
| Transcribe | **implemented** |
## Instalation
The modules is [available from PyPI](https://pypi.python.org/pypi/geofluent),
so you just need to install it:
pip install geofluent
## Usage
### Library
from geofluent import GeoFluent
gf = GeoFluent(key=key, secret=secret)
// retrieve available languages
languages = [(i["source"]["code"], i["target"]["code"]) for i in gf.languages()]
print("Languages supported:" + ", ".join(["%s->%s" % language for language in languages]))
// translate from German to English
translation = gf.translate("Ich werde es testen", "de-de", "en-xn");
print("Translation: " + translation);
### Command-Line
You can can use the CLI tool to translate each line of file and get the translations back as CSV:
python3 geofluent/cli.py key secret source target file.txt
With `python3 geofluent/cli.py -h` you get some additional help of its usage.
### Microservice
In case you need to locally expose it as a microservice, the modules provides a dedicated utility to proxy that:
python3 geofluent/cli.py key secret [port]
## License
This tool is available under [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0).
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
geofluent-0.1.1.tar.gz
(4.9 kB
view details)
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
geofluent-0.1.1-py3.5.egg
(11.9 kB
view details)
geofluent-0.1.1-py2.7.egg
(11.6 kB
view details)
File details
Details for the file geofluent-0.1.1.tar.gz.
File metadata
- Download URL: geofluent-0.1.1.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27a4616b2ae15aaf106d5762edc04b3ef73b2540461bffa12cdd51c32568f354
|
|
| MD5 |
d6ac8d0ac0b95bfbc8231b7830d01f07
|
|
| BLAKE2b-256 |
13160c6aa8470b0466021712178d5372ebc2cff325fd2d5eafd93dc09f48f0ee
|
File details
Details for the file geofluent-0.1.1-py3.5.egg.
File metadata
- Download URL: geofluent-0.1.1-py3.5.egg
- Upload date:
- Size: 11.9 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15e2a73936e757c2b49d7be101fa4821e2814e84df65602c8cdeed579fb64806
|
|
| MD5 |
c0d1e2e5ab189eca3eed039fd1f353fc
|
|
| BLAKE2b-256 |
0a7299983ef08d363cf65e2291a93032016c251da3bb75871ad120f44cba587e
|
File details
Details for the file geofluent-0.1.1-py2.7.egg.
File metadata
- Download URL: geofluent-0.1.1-py2.7.egg
- Upload date:
- Size: 11.6 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63c625f06456b677df9bc3cdb937cd8bbc630e21306a18c2976c1eecc2758a58
|
|
| MD5 |
e06b0c87b76d38c87c58a2afc676d77b
|
|
| BLAKE2b-256 |
115a3f10e6f20e5c2debfa789ad07d351ca7380604fb2943fc87cffb966b2132
|