{ "info": { "author": "Alessandro Mesti", "author_email": "mesti.alessandro@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: Text Processing", "Topic :: Text Processing :: Linguistic", "Topic :: Text Processing :: Markup :: HTML" ], "description": "# PyWiktionary\n\nThe Python library for wiktionary words\n\n## Version 0.1.0\n\nThis is an alpha library to retrieve and parse [Wiktionary](https://wiktionary.org) word pages that will require enhancements and fixes\n\n\n## Install\n\n### Requirements\n\nIf you install this library from source code or you want help with development of the code, make sure to install requirements first:\n```\n$ pip install -r ./requirements.txt\n```\n\n### Pywiktionary install\n\nInstall from the remote pip repository:\n```\n$ pip install pywiktionary\n```\n\nInstall from the root of the source code:\n```\n$ pip install .\n```\n\n\n## How to use\n\nInitialize the parser factory (_pywiktionary.wiktionary_parser_factory.**WiktionaryParserFactory**_) with a supported language, then make the request with get_page() method passing the word you desire to get.\n```python\nfrom pywiktionary.wiktionary_parser_factory import WiktionaryParserFactory\n\nparser_factory = WiktionaryParserFactory(default_language='en')\npizza_parser = parser_factory.get_page('pizza')\n```\n\nThen to get data about the word use the **parse()** method of the parser object returned from WiktionaryParserFactory:\n```python\nparsing_result = pizza_parser.parse()\n```\n\nThe result variable is a dictionary containing the result of the wiktionary page parsing divided by type/subtype. Here the result for \"pizza\":\n```\n{\n \"meanings\": {\n \"noun\": [\n {\n \"meaning\": \"(uncountable) A baked Italian dish of a thinly rolled bread dough crust typically topped before baking with tomato sauce, cheese, and other ingredients such as meat, vegetables or fruit\",\n \"examples\": []\n },\n {\n \"meaning\": \"(countable) A single instance of this dish\",\n \"examples\": []\n }\n ]\n }\n}\n```\n\n#### Summary\n\nThis is the summary of above commented code:\n```python\nfrom pywiktionary.wiktionary_parser_factory import WiktionaryParserFactory\n\nparser_factory = WiktionaryParserFactory(default_language='en')\npizza_parser = parser_factory.get_page('pizza')\nparsing_result = pizza_parser.parse()\n```\n\nYeah, yeah... i know it is beautiful and easy as idea, but this library require many development to enhance this system!\n\n\n### Supported languages (Language - Code)\n - English - en\n - Italian - it\n\n## ToDo\n\n - Surfable Software Documentation!\n - Implement a good system to select wiktionary language parser\n - Write a good human friend documentation! =)\n - Write some examples for humans!\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "wiktionary parser scraper word words multilingual", "license": "", "maintainer": "", "maintainer_email": "", "name": "pywiktionary", "package_url": "https://pypi.org/project/pywiktionary/", "platform": "", "project_url": "https://pypi.org/project/pywiktionary/", "project_urls": { "Code": "https://github.com/alessandrome/pywiktionary" }, "release_url": "https://pypi.org/project/pywiktionary/0.1a0/", "requires_dist": null, "requires_python": "", "summary": "Python library to retrieve wiktionary word definitions for different languages", "version": "0.1a0" }, "last_serial": 5838231, "releases": { "0.0a1": [ { "comment_text": "", "digests": { "md5": "38d37a61448ba71757aa3eb23763f10f", "sha256": "3fe3ce1686bf6af0e2214c4ed580aad8baeac97ac126e7f42fd58d99aa5147c5" }, "downloads": -1, "filename": "pywiktionary-0.0a1-py3-none-any.whl", "has_sig": false, "md5_digest": "38d37a61448ba71757aa3eb23763f10f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6408, "upload_time": "2019-08-05T00:45:10", "url": "https://files.pythonhosted.org/packages/a4/67/e377bd18940255422abef178eb58872b04f1e48137652bd0b9c5bbfdebb9/pywiktionary-0.0a1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dc0555fdfe5de0106bff6abb70fb354f", "sha256": "f0b14322e6fbbb79c5f07bc857cb0034d722d98e89f18b64f7e411edbd88e1a9" }, "downloads": -1, "filename": "pywiktionary-0.0a1.tar.gz", "has_sig": false, "md5_digest": "dc0555fdfe5de0106bff6abb70fb354f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3716, "upload_time": "2019-08-05T00:45:12", "url": "https://files.pythonhosted.org/packages/ef/18/bbb7cdc48d74f54bd91df09fbd6aed41db71d56699b343818f2d302ba591/pywiktionary-0.0a1.tar.gz" } ], "0.0a2": [ { "comment_text": "", "digests": { "md5": "7766269c5b172e4cc92e364384ae8b7e", "sha256": "7fdf0f981308dfad404b0efbf4e2da1430f5a75df13ae2dc179480f6be11c773" }, "downloads": -1, "filename": "pywiktionary-0.0a2-py3-none-any.whl", "has_sig": false, "md5_digest": "7766269c5b172e4cc92e364384ae8b7e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7787, "upload_time": "2019-08-08T19:09:25", "url": "https://files.pythonhosted.org/packages/ff/f8/9f4dff16785cefe2b52975543ba2cf86d247a0e819e9a430a1b57affcbdf/pywiktionary-0.0a2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6f71a90e8239c9b2317d1962c27a5359", "sha256": "dfd36395edc1c404c4764546624949f40b44ad7a17303445b7a5c181139a3bcd" }, "downloads": -1, "filename": "pywiktionary-0.0a2.tar.gz", "has_sig": false, "md5_digest": "6f71a90e8239c9b2317d1962c27a5359", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4469, "upload_time": "2019-08-08T19:09:27", "url": "https://files.pythonhosted.org/packages/67/31/d3c7a4f16d68807034985e5b313da845b82674916746fa9ce6d3ab7de4f0/pywiktionary-0.0a2.tar.gz" } ], "0.1a0": [ { "comment_text": "", "digests": { "md5": "a7ab54164a86867c869c6b99367eb6c8", "sha256": "a71c2405f75f9c46fe2ef984f1128af081b89fbac2bb296f337c46f4a602e308" }, "downloads": -1, "filename": "pywiktionary-0.1a0-py3-none-any.whl", "has_sig": false, "md5_digest": "a7ab54164a86867c869c6b99367eb6c8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6908, "upload_time": "2019-09-16T20:59:38", "url": "https://files.pythonhosted.org/packages/de/b5/8042ac0e073e7362896cbf76d8da59e46879ae48b64d71adccb57df0c955/pywiktionary-0.1a0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b8f01b4c891cd53bc96aa76c348472c2", "sha256": "942a8e58825575b49ef611057a2e79d59abecd3b5eda3e96a672c10882ff5496" }, "downloads": -1, "filename": "pywiktionary-0.1a0.tar.gz", "has_sig": false, "md5_digest": "b8f01b4c891cd53bc96aa76c348472c2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4287, "upload_time": "2019-09-16T20:59:39", "url": "https://files.pythonhosted.org/packages/39/64/ccf63169574dc94ca13ad9238beee076e75bb6b808020a6421eb783f815d/pywiktionary-0.1a0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a7ab54164a86867c869c6b99367eb6c8", "sha256": "a71c2405f75f9c46fe2ef984f1128af081b89fbac2bb296f337c46f4a602e308" }, "downloads": -1, "filename": "pywiktionary-0.1a0-py3-none-any.whl", "has_sig": false, "md5_digest": "a7ab54164a86867c869c6b99367eb6c8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6908, "upload_time": "2019-09-16T20:59:38", "url": "https://files.pythonhosted.org/packages/de/b5/8042ac0e073e7362896cbf76d8da59e46879ae48b64d71adccb57df0c955/pywiktionary-0.1a0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b8f01b4c891cd53bc96aa76c348472c2", "sha256": "942a8e58825575b49ef611057a2e79d59abecd3b5eda3e96a672c10882ff5496" }, "downloads": -1, "filename": "pywiktionary-0.1a0.tar.gz", "has_sig": false, "md5_digest": "b8f01b4c891cd53bc96aa76c348472c2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4287, "upload_time": "2019-09-16T20:59:39", "url": "https://files.pythonhosted.org/packages/39/64/ccf63169574dc94ca13ad9238beee076e75bb6b808020a6421eb783f815d/pywiktionary-0.1a0.tar.gz" } ] }