Skip to main content

docts

python package docts

install

pip install -U docts
pip install git+ssh://git@github.com/foyoux/docts.git
pip install git+https://github.com/foyoux/docts.git

翻译 xlf 文件

将文档提取到 xlf 文件 或 将 xlf 文件重新生成文档,请参阅 旧文档 - 仅作参考

代码看下面

from pygtrans import Translate

from docts import Docts

if __name__ == '__main__':
    translator = Translate(proxies={'https': 'http://localhost:10809'})
    doc = Docts('<xlf_file_path>', translator)
    # 翻译完成的将保存到 xlf_file_path 文件同目录
    doc.save_words()

Metadata

Release files for docts 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for docts 0.2.3
File Size Uploaded
docts-0.2.3.tar.gz 17.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for docts 0.2.3
File Interpreter ABI Platform
docts-0.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 34.0 kB

Release files / docts-0.2.3.tar.gz

Download URL docts-0.2.3.tar.gz
Size 17.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c1cabc2171f972ec9599124944205ca1a1b7dbb33a0a1b006390455041c95200
BLAKE2b-256 checksum
How to use checksums
0277f97594c13bf690ef290028b79fbaf949daedc8c03ea08b9b9ea6fe569ddf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.3

Release files / docts-0.2.3-py3-none-any.whl

Download URL docts-0.2.3-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7a6444dc6fdbd0aa0ee349aea95f650a652deb96db2f20ebd0fab3f91fcd3fed
BLAKE2b-256 checksum
How to use checksums
dc1ef7a49832a96efcf17c5615505a14b6bd5aba13cd12e718c586c002d80681
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.3

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.1.0

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page