LibreTranslate | Open Source Machine Translation API | Translation library

 by   LibreTranslate Python Version: 1.5.6 License: AGPL-3.0

kandi X-RAY | LibreTranslate Summary

kandi X-RAY | LibreTranslate Summary

LibreTranslate is a Python library typically used in Utilities, Translation applications. LibreTranslate has no bugs, it has no vulnerabilities, it has build file available, it has a Strong Copyleft License and it has medium support. You can install using 'pip install LibreTranslate' or download it from GitHub, PyPI.

Try it online! | API Docs | Community Forum. Free and Open Source Machine Translation API, entirely self-hosted. Unlike other APIs, it doesn't rely on proprietary providers such as Google or Azure to perform translations. Instead, its translation engine is powered by the open source Argos Translate library. Try it online! | API Docs.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              LibreTranslate has a medium active ecosystem.
              It has 4302 star(s) with 434 fork(s). There are 71 watchers for this library.
              There were 9 major release(s) in the last 6 months.
              There are 41 open issues and 208 have been closed. On average issues are closed in 43 days. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of LibreTranslate is 1.5.6

            kandi-Quality Quality

              LibreTranslate has no bugs reported.

            kandi-Security Security

              LibreTranslate has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              LibreTranslate is licensed under the AGPL-3.0 License. This license is Strong Copyleft.
              Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.

            kandi-Reuse Reuse

              LibreTranslate releases are available to install and integrate.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed LibreTranslate and discovered the below as its top functions. This is intended to give you an instant insight into LibreTranslate implemented functionality, and help decide if they suit your requirements.
            • Create a Flask app .
            • Parse arguments .
            • Detect languages of text .
            • Check if available language models from remote .
            • Manage manage tools
            • Install and install transliteration .
            • Transliterate a line of text .
            • Return the limit for the given API key .
            • Main entry point .
            • get routes limits
            Get all kandi verified functions for this library.

            LibreTranslate Key Features

            No Key Features are available at this moment for LibreTranslate.

            LibreTranslate Examples and Code Snippets

            libretranslate-rs,Basic Example
            Rustdot img1Lines of Code : 15dot img1License : Permissive (MIT)
            copy iconCopy
            use libretranslate::{translate, Language};
            
            #[tokio::main]
            async fn main() {
                let source = Language::French;
                let target = Language::English;
                let input = "Le texte français.";
            
                let data = translate(source, target, input, None).await.unw  
            libretranslate-rs,String Methods
            Rustdot img2Lines of Code : 15dot img2License : Permissive (MIT)
            copy iconCopy
            use libretranslate::{Language, Translate};
            
            #[tokio::main]
            async fn main() {
                let text = "This is text, written on a computer, in English."
                    .to_lang(Language::German)
                    .from_lang(Language::English)
                    .translate()
                    .awai  
            libretranslate-rs,Basic Example
            Rustdot img3Lines of Code : 15dot img3License : Permissive (MIT)
            copy iconCopy
            use libretranslate::{translate, Language};
            
            #[tokio::main]
            async fn main() {
                let source = Language::French;
                let target = Language::English;
                let input = "Le texte français.";
            
                let data = translate(Some(source), target, input).await.unw  

            Community Discussions

            Trending Discussions on LibreTranslate

            QUESTION

            Mutating Struct property with asynchronous function
            Asked 2021-Apr-03 at 15:07

            I have the following Struct that I want to initialize, and then use its method query() to mutate its result property.

            Query() sends and fetches JSON data, then decodes it to a String. When I declare query() as a mutating function, I receive the error "Escaping closure captures mutating 'self' parameter" in my URLSession.

            What do I need to change?

            The call:

            ...

            ANSWER

            Answered 2021-Apr-03 at 15:07

            There are many issues in the code.

            The most significant issue is that the URLRequest is asynchronous. Even if no error occurred result will be always empty.

            You have to add a completion handler – it fixes the errors you got by the way – and it's highly recommended to handle all errors.

            Instead of JSONSerialization the code uses JSONDe/Encoder

            Source https://stackoverflow.com/questions/66929575

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install LibreTranslate

            You can run your own API server in just a few lines of setup!.
            If you want to make some changes to the code, you can build from source, and run the API:. Then open a web browser to http://localhost:5000.
            If you want to run the Docker image in a complete offline environment, you need to add the --build-arg with_models=true parameter. Then the language models get downloaded during the build process of the image. Otherwise these models get downloaded on the first run of the image/container.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install libretranslate

          • CLONE
          • HTTPS

            https://github.com/LibreTranslate/LibreTranslate.git

          • CLI

            gh repo clone LibreTranslate/LibreTranslate

          • sshUrl

            git@github.com:LibreTranslate/LibreTranslate.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link