12 unstable releases (3 breaking)

0.4.1 Feb 23, 2023
0.4.0 Jan 26, 2023
0.3.0 Jan 10, 2023
0.2.1 Jan 8, 2023
0.1.2 Sep 20, 2022

#192 in Authentication

Download history 29/week @ 2023-02-13 35/week @ 2023-02-20 6/week @ 2023-02-27 2/week @ 2023-03-06 3/week @ 2023-03-13 23/week @ 2023-03-20 19/week @ 2023-03-27 23/week @ 2023-04-03 22/week @ 2023-04-10 11/week @ 2023-04-17 4/week @ 2023-05-01 28/week @ 2023-05-08 20/week @ 2023-05-15 2/week @ 2023-05-22 27/week @ 2023-05-29

77 downloads per month

MIT license

40KB
864 lines

DeepL Api

github crates.io docs.rs

Typed HTTP wrapper for interacting with DeepL API. File upload/download is also implemented.

Usage

[dependencies]
deepl = "0.4"
use deepl::{DeepLApi, Lang};

let api = DeepLApi::with("YOUR AUTH KEY").new();
let translated = api.translate_text("Hello World", Lang::ZH)
                .await.unwrap();

let sentences = translated.translations;
assert_eq!(sentences[0].text, "你好,世界");

Read examples for more usage.

License

MIT

Dependencies

~6–14MB
~278K SLoC