Skip to main content

python package docts

Project description

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()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

docts-0.2.3.tar.gz (17.0 kB view hashes)

Uploaded Source

Built Distribution

docts-0.2.3-py3-none-any.whl (17.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page