Name | mwclient-contenttranslation JSON |
Version |
0.1.1.post1
JSON |
| download |
home_page | |
Summary | Wikipedia ContentTranslation (CXServer) API wrapper to be used with mwclient |
upload_time | 2023-03-20 15:35:57 |
maintainer | |
docs_url | None |
author | Hung-I Wang |
requires_python | >=3.9,<4.0 |
license | |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
[](https://badge.fury.io/py/mwclient-contenttranslation)
# mwclient-contenttranslation
The wrapper of ContentTranslation (CXServer) API of Wikipedia to be used with mwclient.
## Usage
Install via PyPI: `pip install mwclient-contenttranslation`
```python
from mwclient import Site
from mwclient_contenttranslation import CxTranslator
site = Site("en.wikipedia.org")
site.login(USERNAME, PASSWORD)
translator = CxTranslator(site)
translator.translate_text(["小熊維尼", "蜂蜜罐", "小熊維尼掉進蜂蜜罐"])
# ['Winnie the Pooh', 'honey pot', 'Winnie the Pooh fell into a jar of honey']
```
## Disclaimer
Intended for good use only. Never abuse it.
Raw data
{
"_id": null,
"home_page": "",
"name": "mwclient-contenttranslation",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.9,<4.0",
"maintainer_email": "",
"keywords": "",
"author": "Hung-I Wang",
"author_email": "whygowe@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/47/d6/b334a0f317497929b72b96215fbd14d313b56bd646e3843243a7edbef4cf/mwclient_contenttranslation-0.1.1.post1.tar.gz",
"platform": null,
"description": "[](https://badge.fury.io/py/mwclient-contenttranslation)\n\n# mwclient-contenttranslation\nThe wrapper of ContentTranslation (CXServer) API of Wikipedia to be used with mwclient.\n\n## Usage\nInstall via PyPI: `pip install mwclient-contenttranslation`\n```python\nfrom mwclient import Site\nfrom mwclient_contenttranslation import CxTranslator\nsite = Site(\"en.wikipedia.org\")\nsite.login(USERNAME, PASSWORD)\ntranslator = CxTranslator(site)\ntranslator.translate_text([\"\u5c0f\u718a\u7dad\u5c3c\", \"\u8702\u871c\u7f50\", \"\u5c0f\u718a\u7dad\u5c3c\u6389\u9032\u8702\u871c\u7f50\"])\n# ['Winnie the Pooh', 'honey pot', 'Winnie the Pooh fell into a jar of honey']\n```\n\n## Disclaimer\nIntended for good use only. Never abuse it.\n",
"bugtrack_url": null,
"license": "",
"summary": "Wikipedia ContentTranslation (CXServer) API wrapper to be used with mwclient",
"version": "0.1.1.post1",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "47f03a0331c82db8c79ea542c97165c91e44404686b81ad0ec8ae63cdb82f64f",
"md5": "82958dff7916fdb2659b685a52cba7fc",
"sha256": "0881c01d54aefdafc7bab9a40ddce8abeeb7147de095393ba3b5d0d2f57da2ce"
},
"downloads": -1,
"filename": "mwclient_contenttranslation-0.1.1.post1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "82958dff7916fdb2659b685a52cba7fc",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9,<4.0",
"size": 15237,
"upload_time": "2023-03-20T15:35:55",
"upload_time_iso_8601": "2023-03-20T15:35:55.256223Z",
"url": "https://files.pythonhosted.org/packages/47/f0/3a0331c82db8c79ea542c97165c91e44404686b81ad0ec8ae63cdb82f64f/mwclient_contenttranslation-0.1.1.post1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "47d6b334a0f317497929b72b96215fbd14d313b56bd646e3843243a7edbef4cf",
"md5": "c572338d1138e47f6034eb2a3ae00afa",
"sha256": "951ef35ba7c5c13c0c86e8ad25050247ca1cb8e3b58e7830af3ded6042ae597d"
},
"downloads": -1,
"filename": "mwclient_contenttranslation-0.1.1.post1.tar.gz",
"has_sig": false,
"md5_digest": "c572338d1138e47f6034eb2a3ae00afa",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9,<4.0",
"size": 14990,
"upload_time": "2023-03-20T15:35:57",
"upload_time_iso_8601": "2023-03-20T15:35:57.698242Z",
"url": "https://files.pythonhosted.org/packages/47/d6/b334a0f317497929b72b96215fbd14d313b56bd646e3843243a7edbef4cf/mwclient_contenttranslation-0.1.1.post1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-03-20 15:35:57",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "mwclient-contenttranslation"
}