-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
a suggest #54
Comments
Other languages can already use translatepy from the command line interface though |
I mean we could use something like Nuitka which seems to work pretty well (just tested it on translatepy) |
Yes, but the pythong module is a bit difficult to manage for those of us who have not studied python |
Oh you mean like installing stuff and all... Yeah I guess I could release some kind of binaries 👌 |
I tried to package the binary using the Nuitka package you recommended, and it worked for me. Then I called it in golang, but it was a bit slow, because I needed to start |
Ok I guess I could make some kind of HTTP server then |
great! |
I now have something like this: GET /translate?text=Hello%20world&dest=japanese {
"success": true,
"error": null,
"message": null,
"data": {
"service": "Google",
"source": "Hello world",
"sourceLang": "eng",
"destLang": "jpn",
"result": "こんにちは世界"
}
} Which also handles the errors and where you can specify the translators and all. The documentation is available under the translatepy/server/docs folder. I'll add more endpoints in the near future to cover the other functions. Also, you need to install |
Also, I seem to have a problem with |
@yyy33 The HTTP server seems to work fine now, with lots of new endpoints added covering somewhat everything that can be done with Here are the docstranslatepy/server/docs/Getting Started.md How can it be ranYou can use the new $ translatepy server
🧃❯ translatepy server -h
usage: translatepy server [-h] [--port PORT] [--host HOST]
optional arguments:
-h, --help show this help message and exit
--port PORT, -p PORT port to run the server on
--host HOST host to run the server on |
Now I just need to create the binaries for each release and it should be good 👍 |
I haven't tested it yet, and I will give the results feedback here after using it |
You should test the one on the Make sure to download the dependencies from |
I suggest that the author can package the project into a binary file and provide a network interface, like http, so that the other language can benefit from the project,
The text was updated successfully, but these errors were encountered: