Name | docts JSON |
Version |
0.2.3
JSON |
| download |
home_page | |
Summary | python package docts |
upload_time | 2023-04-28 01:38:03 |
maintainer | |
docs_url | None |
author | foyoux |
requires_python | >=3.7 |
license | |
keywords |
docts
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# 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()
```
Raw data
{
"_id": null,
"home_page": "",
"name": "docts",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "docts",
"author": "foyoux",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/02/77/f97594c13bf690ef290028b79fbaf949daedc8c03ea08b9b9ea6fe569ddf/docts-0.2.3.tar.gz",
"platform": null,
"description": "# docts\n\npython package docts\n\n## install\n\n```sh\npip install -U docts\npip install git+ssh://git@github.com/foyoux/docts.git\npip install git+https://github.com/foyoux/docts.git\n```\n\n## \u7ffb\u8bd1 xlf \u6587\u4ef6\n\n> \u5c06\u6587\u6863\u63d0\u53d6\u5230 xlf \u6587\u4ef6 \u6216 \u5c06 xlf \u6587\u4ef6\u91cd\u65b0\u751f\u6210\u6587\u6863\uff0c\u8bf7\u53c2\u9605 [\u65e7\u6587\u6863 - \u4ec5\u4f5c\u53c2\u8003](https://github.com/foyoux/docts/wiki/%E6%97%A7%E6%96%87%E6%A1%A3)\n> \n> \u4ee3\u7801\u770b\u4e0b\u9762\n\n```py\nfrom pygtrans import Translate\n\nfrom docts import Docts\n\nif __name__ == '__main__':\n translator = Translate(proxies={'https': 'http://localhost:10809'})\n doc = Docts('<xlf_file_path>', translator)\n # \u7ffb\u8bd1\u5b8c\u6210\u7684\u5c06\u4fdd\u5b58\u5230 xlf_file_path \u6587\u4ef6\u540c\u76ee\u5f55\n doc.save_words()\n```\n",
"bugtrack_url": null,
"license": "",
"summary": "python package docts",
"version": "0.2.3",
"split_keywords": [
"docts"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "dc1ef7a49832a96efcf17c5615505a14b6bd5aba13cd12e718c586c002d80681",
"md5": "cb418402595b4e94ea1dc5e2782353bc",
"sha256": "7a6444dc6fdbd0aa0ee349aea95f650a652deb96db2f20ebd0fab3f91fcd3fed"
},
"downloads": -1,
"filename": "docts-0.2.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "cb418402595b4e94ea1dc5e2782353bc",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 17040,
"upload_time": "2023-04-28T01:38:01",
"upload_time_iso_8601": "2023-04-28T01:38:01.753784Z",
"url": "https://files.pythonhosted.org/packages/dc/1e/f7a49832a96efcf17c5615505a14b6bd5aba13cd12e718c586c002d80681/docts-0.2.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "0277f97594c13bf690ef290028b79fbaf949daedc8c03ea08b9b9ea6fe569ddf",
"md5": "55044ccec785338124f0a216a5e29b31",
"sha256": "c1cabc2171f972ec9599124944205ca1a1b7dbb33a0a1b006390455041c95200"
},
"downloads": -1,
"filename": "docts-0.2.3.tar.gz",
"has_sig": false,
"md5_digest": "55044ccec785338124f0a216a5e29b31",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 17004,
"upload_time": "2023-04-28T01:38:03",
"upload_time_iso_8601": "2023-04-28T01:38:03.147625Z",
"url": "https://files.pythonhosted.org/packages/02/77/f97594c13bf690ef290028b79fbaf949daedc8c03ea08b9b9ea6fe569ddf/docts-0.2.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-04-28 01:38:03",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "docts"
}