free-doc-translate 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,63 @@
1
+ Metadata-Version: 2.4
2
+ Name: free-doc-translate
3
+ Version: 0.1.0
4
+ Summary: Free document translation by OmniDoc: translate PDF, Word, PowerPoint and LaTeX into 38 languages with the layout kept. A companion tool of OmniDoc, the powerful AI document suite. Official site: https://omnidoc.top/
5
+ Project-URL: Homepage, https://omnidoc.top/
6
+ Project-URL: Homepage (China), https://omnidoc.cn/
7
+ Project-URL: Documentation, https://docs.omnidoc.top/
8
+ Project-URL: Download, https://download.omnidoc.top/
9
+ Keywords: free translation,free document translation,document translation,pdf translation,translate pdf,translate word,translate docx,translate pptx,latex translation,bilingual pdf,layout preserved,omnidoc,api client
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3 :: Only
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Topic :: Text Processing :: Linguistic
14
+ Requires-Python: >=3.9
15
+ Description-Content-Type: text/markdown
16
+ Requires-Dist: omnidoc>=0.1.7
17
+
18
+ <p align="center">
19
+ <a href="https://omnidoc.top/"><img src="https://omnidoc.top/icon-512.png" alt="OmniDoc" width="120"></a>
20
+ </p>
21
+
22
+ # free-doc-translate
23
+
24
+ Free document translation by [OmniDoc](https://omnidoc.top/), the powerful AI document suite. Translate PDF, Word, PowerPoint, LaTeX and more into 38 languages, and keep every table, formula and footnote where it was.
25
+
26
+ Official site: **https://omnidoc.top/**
27
+
28
+ 免费文档翻译:PDF、Word、PPT、LaTeX 论文一键翻译成 38 种语言,表格、公式、脚注保持原版式,支持中英双语对照输出。由 OmniDoc 提供,官网 https://omnidoc.top/ (国内 https://omnidoc.cn/)。
29
+
30
+ This package is a companion of the [`omnidoc`](https://pypi.org/project/omnidoc/) SDK. It installs `omnidoc` and exposes the same API.
31
+
32
+ For the current free translation allowance and credit pricing, see https://omnidoc.top/.
33
+
34
+ ## Install
35
+
36
+ ```bash
37
+ pip install free-doc-translate
38
+ ```
39
+
40
+ Requires Python 3.9 or newer.
41
+
42
+ ## Translate a file
43
+
44
+ Create an API key (it starts with `sk_`) in the API center at https://omnidoc.top/app/api-keys and put it in the environment:
45
+
46
+ ```bash
47
+ export OMNIDOC_API_KEY="sk_your_key"
48
+ ```
49
+
50
+ ```python
51
+ from free_doc_translate import OmniDocClient
52
+
53
+ client = OmniDocClient() # reads OMNIDOC_API_KEY
54
+ files = client.translate_file("paper.pdf", "en", output_dir="out", output_mode="bilingual")
55
+ print(files)
56
+ ```
57
+
58
+ `output_mode="bilingual"` gives side-by-side bilingual files; leave it out for the translation only.
59
+
60
+ ## More
61
+
62
+ - Every method, error type and webhook helper: https://pypi.org/project/omnidoc/ and https://docs.omnidoc.top/
63
+ - Free OmniDoc desktop app (offline editing and conversion): https://download.omnidoc.top/
@@ -0,0 +1,46 @@
1
+ <p align="center">
2
+ <a href="https://omnidoc.top/"><img src="https://omnidoc.top/icon-512.png" alt="OmniDoc" width="120"></a>
3
+ </p>
4
+
5
+ # free-doc-translate
6
+
7
+ Free document translation by [OmniDoc](https://omnidoc.top/), the powerful AI document suite. Translate PDF, Word, PowerPoint, LaTeX and more into 38 languages, and keep every table, formula and footnote where it was.
8
+
9
+ Official site: **https://omnidoc.top/**
10
+
11
+ 免费文档翻译:PDF、Word、PPT、LaTeX 论文一键翻译成 38 种语言,表格、公式、脚注保持原版式,支持中英双语对照输出。由 OmniDoc 提供,官网 https://omnidoc.top/ (国内 https://omnidoc.cn/)。
12
+
13
+ This package is a companion of the [`omnidoc`](https://pypi.org/project/omnidoc/) SDK. It installs `omnidoc` and exposes the same API.
14
+
15
+ For the current free translation allowance and credit pricing, see https://omnidoc.top/.
16
+
17
+ ## Install
18
+
19
+ ```bash
20
+ pip install free-doc-translate
21
+ ```
22
+
23
+ Requires Python 3.9 or newer.
24
+
25
+ ## Translate a file
26
+
27
+ Create an API key (it starts with `sk_`) in the API center at https://omnidoc.top/app/api-keys and put it in the environment:
28
+
29
+ ```bash
30
+ export OMNIDOC_API_KEY="sk_your_key"
31
+ ```
32
+
33
+ ```python
34
+ from free_doc_translate import OmniDocClient
35
+
36
+ client = OmniDocClient() # reads OMNIDOC_API_KEY
37
+ files = client.translate_file("paper.pdf", "en", output_dir="out", output_mode="bilingual")
38
+ print(files)
39
+ ```
40
+
41
+ `output_mode="bilingual"` gives side-by-side bilingual files; leave it out for the translation only.
42
+
43
+ ## More
44
+
45
+ - Every method, error type and webhook helper: https://pypi.org/project/omnidoc/ and https://docs.omnidoc.top/
46
+ - Free OmniDoc desktop app (offline editing and conversion): https://download.omnidoc.top/
@@ -0,0 +1,29 @@
1
+ [build-system]
2
+ requires = ["setuptools>=68", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "free-doc-translate"
7
+ version = "0.1.0"
8
+ description = "Free document translation by OmniDoc: translate PDF, Word, PowerPoint and LaTeX into 38 languages with the layout kept. A companion tool of OmniDoc, the powerful AI document suite. Official site: https://omnidoc.top/"
9
+ readme = "README.md"
10
+ requires-python = ">=3.9"
11
+ keywords = ["free translation", "free document translation", "document translation", "pdf translation", "translate pdf", "translate word", "translate docx", "translate pptx", "latex translation", "bilingual pdf", "layout preserved", "omnidoc", "api client"]
12
+ dependencies = [
13
+ "omnidoc>=0.1.7",
14
+ ]
15
+ classifiers = [
16
+ "Programming Language :: Python :: 3",
17
+ "Programming Language :: Python :: 3 :: Only",
18
+ "Operating System :: OS Independent",
19
+ "Topic :: Text Processing :: Linguistic",
20
+ ]
21
+
22
+ [project.urls]
23
+ Homepage = "https://omnidoc.top/"
24
+ "Homepage (China)" = "https://omnidoc.cn/"
25
+ Documentation = "https://docs.omnidoc.top/"
26
+ Download = "https://download.omnidoc.top/"
27
+
28
+ [tool.setuptools.packages.find]
29
+ where = ["src"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,21 @@
1
+ """free-doc-translate:OmniDoc 开放 API 的 Python 客户端,接口与 omnidoc 包相同。"""
2
+
3
+ from omnidoc import (
4
+ DEFAULT_BASE_URL,
5
+ JobFailedError,
6
+ OmniDocClient,
7
+ OmniDocError,
8
+ parse_webhook,
9
+ verify_webhook,
10
+ )
11
+
12
+ __all__ = [
13
+ "DEFAULT_BASE_URL",
14
+ "JobFailedError",
15
+ "OmniDocClient",
16
+ "OmniDocError",
17
+ "parse_webhook",
18
+ "verify_webhook",
19
+ ]
20
+
21
+ __version__ = "0.1.0"
@@ -0,0 +1,63 @@
1
+ Metadata-Version: 2.4
2
+ Name: free-doc-translate
3
+ Version: 0.1.0
4
+ Summary: Free document translation by OmniDoc: translate PDF, Word, PowerPoint and LaTeX into 38 languages with the layout kept. A companion tool of OmniDoc, the powerful AI document suite. Official site: https://omnidoc.top/
5
+ Project-URL: Homepage, https://omnidoc.top/
6
+ Project-URL: Homepage (China), https://omnidoc.cn/
7
+ Project-URL: Documentation, https://docs.omnidoc.top/
8
+ Project-URL: Download, https://download.omnidoc.top/
9
+ Keywords: free translation,free document translation,document translation,pdf translation,translate pdf,translate word,translate docx,translate pptx,latex translation,bilingual pdf,layout preserved,omnidoc,api client
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3 :: Only
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Topic :: Text Processing :: Linguistic
14
+ Requires-Python: >=3.9
15
+ Description-Content-Type: text/markdown
16
+ Requires-Dist: omnidoc>=0.1.7
17
+
18
+ <p align="center">
19
+ <a href="https://omnidoc.top/"><img src="https://omnidoc.top/icon-512.png" alt="OmniDoc" width="120"></a>
20
+ </p>
21
+
22
+ # free-doc-translate
23
+
24
+ Free document translation by [OmniDoc](https://omnidoc.top/), the powerful AI document suite. Translate PDF, Word, PowerPoint, LaTeX and more into 38 languages, and keep every table, formula and footnote where it was.
25
+
26
+ Official site: **https://omnidoc.top/**
27
+
28
+ 免费文档翻译:PDF、Word、PPT、LaTeX 论文一键翻译成 38 种语言,表格、公式、脚注保持原版式,支持中英双语对照输出。由 OmniDoc 提供,官网 https://omnidoc.top/ (国内 https://omnidoc.cn/)。
29
+
30
+ This package is a companion of the [`omnidoc`](https://pypi.org/project/omnidoc/) SDK. It installs `omnidoc` and exposes the same API.
31
+
32
+ For the current free translation allowance and credit pricing, see https://omnidoc.top/.
33
+
34
+ ## Install
35
+
36
+ ```bash
37
+ pip install free-doc-translate
38
+ ```
39
+
40
+ Requires Python 3.9 or newer.
41
+
42
+ ## Translate a file
43
+
44
+ Create an API key (it starts with `sk_`) in the API center at https://omnidoc.top/app/api-keys and put it in the environment:
45
+
46
+ ```bash
47
+ export OMNIDOC_API_KEY="sk_your_key"
48
+ ```
49
+
50
+ ```python
51
+ from free_doc_translate import OmniDocClient
52
+
53
+ client = OmniDocClient() # reads OMNIDOC_API_KEY
54
+ files = client.translate_file("paper.pdf", "en", output_dir="out", output_mode="bilingual")
55
+ print(files)
56
+ ```
57
+
58
+ `output_mode="bilingual"` gives side-by-side bilingual files; leave it out for the translation only.
59
+
60
+ ## More
61
+
62
+ - Every method, error type and webhook helper: https://pypi.org/project/omnidoc/ and https://docs.omnidoc.top/
63
+ - Free OmniDoc desktop app (offline editing and conversion): https://download.omnidoc.top/
@@ -0,0 +1,8 @@
1
+ README.md
2
+ pyproject.toml
3
+ src/free_doc_translate/__init__.py
4
+ src/free_doc_translate.egg-info/PKG-INFO
5
+ src/free_doc_translate.egg-info/SOURCES.txt
6
+ src/free_doc_translate.egg-info/dependency_links.txt
7
+ src/free_doc_translate.egg-info/requires.txt
8
+ src/free_doc_translate.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ free_doc_translate