Metadata-Version: 2.1
Name: docts
Version: 0.2.3
Summary: python package docts
Author: foyoux
Project-URL: Source, https://github.com/foyoux/docts
Project-URL: Homepage, https://github.com/foyoux/docts
Project-URL: Bug Tracker, https://github.com/foyoux/docts/issues
Keywords: docts
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE

# docts

python package docts

## install

```sh
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 文件重新生成文档，请参阅 [旧文档 - 仅作参考](https://github.com/foyoux/docts/wiki/%E6%97%A7%E6%96%87%E6%A1%A3)
> 
> 代码看下面

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