{ "info": { "author": "Jens Reidel", "author_email": "jens.reidel@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# async-mediawiki\nAn asynchronous python libary to get mediawiki content\n\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/bbab3395b87049748a95e9f0d8c73d42)](https://app.codacy.com/app/Gelbpunkt/async-mediawiki?utm_source=github.com&utm_medium=referral&utm_content=Gelbpunkt/async-mediawiki&utm_campaign=Badge_Grade_Dashboard)\n[![BCH compliance](https://bettercodehub.com/edge/badge/Gelbpunkt/async-mediawiki?branch=master)](https://bettercodehub.com/)\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FGelbpunkt%2Fasync-mediawiki.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2FGelbpunkt%2Fasync-mediawiki?ref=badge_shield)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)\n\n## Installation\n\nIt requires Python 3.6 or above and aiohttp\n\n`pip3 install async-mediawiki`\n\nDevelopment Version:\n\n`pip3 install git+https://github.com/Gelbpunkt/async-mediawiki`\n\n## Usage\n```python\nimport async_mediawiki as mw\n\nwiki = mw.Wiki(\"wiki api url here\") #make a Wiki object which is the key to the library\nwiki = mw.Wiki.wikipedia(\"en\") #alternate constructor for Wikipedia Wikis\nawait wiki.create_account(\"test\", \"pass1234\") #create an account in the wiki\nawait wiki.login(\"test\", \"pass1234\") #login with the newly made user\nawait wiki.get_random_pages(3) #get a list of pages\n\npage = wiki.get_page(\"Mediawiki\") #get a specific page\nprint(await page.html) #print the pure page html\nprint(await page.markdown) #print the pure page markdown (wiki code)\nprint(await page.text) #print the page's text (library handled filtering of the HTML)\n\nawait page.edit(\"That's a nice lib!\") #edit the page, automatically uses the logged in user or anonymous\nawait wiki.close() #the Wiki object also supports a context manager (async with) to close automatically\n```\n\n## License\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FGelbpunkt%2Fasync-mediawiki.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2FGelbpunkt%2Fasync-mediawiki?ref=badge_large)\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Gelbpunkt/async-mediawiki", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "async-mediawiki", "package_url": "https://pypi.org/project/async-mediawiki/", "platform": "", "project_url": "https://pypi.org/project/async-mediawiki/", "project_urls": { "Homepage": "https://github.com/Gelbpunkt/async-mediawiki" }, "release_url": "https://pypi.org/project/async-mediawiki/0.2.0/", "requires_dist": [ "aiohttp (<3.4.0,>=3.3.0)" ], "requires_python": "", "summary": "Async Mediawiki Python library", "version": "0.2.0" }, "last_serial": 4424417, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "05f586c8608dddd35b0a74509a660f33", "sha256": "74787f281933dc10fe174624120d265bddf2ca3dca8745fa1bde69ef0780b72e" }, "downloads": -1, "filename": "async_mediawiki-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "05f586c8608dddd35b0a74509a660f33", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3618, "upload_time": "2018-06-30T14:27:58", "url": "https://files.pythonhosted.org/packages/e8/aa/a1a838c150dfa2a549015b71a14f8f85840cbd8b358c18bb1ab9754c6850/async_mediawiki-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0528d4201ec393c434c324c4422cb31c", "sha256": "9a9ed1fcd4b31911ed0ce216417a6f940243072e1bc13467e762600c4cd2e052" }, "downloads": -1, "filename": "async_mediawiki-0.0.1.tar.gz", "has_sig": false, "md5_digest": "0528d4201ec393c434c324c4422cb31c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3177, "upload_time": "2018-06-30T14:27:59", "url": "https://files.pythonhosted.org/packages/f3/5f/914a1b1187189a4be051831bafefa4ffebd4d96d38b236f91f69797672db/async_mediawiki-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "778d9e00d5ae9ef98d9998972c71ba2b", "sha256": "09264faa865ed91f741c493b853a816868d564ce8c19c75337b2f59a1d04dc0e" }, "downloads": -1, "filename": "async_mediawiki-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "778d9e00d5ae9ef98d9998972c71ba2b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3753, "upload_time": "2018-07-14T16:24:33", "url": "https://files.pythonhosted.org/packages/77/c8/d5fbbb3427b104475a5dab4ca1f2de72ab236b99607770b9dd6b854fb9f4/async_mediawiki-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4b022c239d184dc84e6aad181df5773a", "sha256": "353203caff3da6a3af198704c3c4bbbf463f3ba58608cf2dc7052c554d2738ee" }, "downloads": -1, "filename": "async_mediawiki-0.0.2.tar.gz", "has_sig": false, "md5_digest": "4b022c239d184dc84e6aad181df5773a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3260, "upload_time": "2018-07-14T16:24:34", "url": "https://files.pythonhosted.org/packages/39/29/cd644aa878a451785a5ead10faf7475cd8fabb9cb46896792e50bfd72c9a/async_mediawiki-0.0.2.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "584ef8d8a91acdb332e9460792a72d93", "sha256": "fe1c188b2532dded17faa897417a84da9576f4179a683367f703628f01d70f20" }, "downloads": -1, "filename": "async_mediawiki-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "584ef8d8a91acdb332e9460792a72d93", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4917, "upload_time": "2018-08-17T17:29:25", "url": "https://files.pythonhosted.org/packages/ed/59/6b1439da56350bd71f4e80e28b2c3c9061caef0561c1286f347f8ea6dbe4/async_mediawiki-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "454f19528565615790ffe162fb311ebf", "sha256": "599ab1d2fe4b196a10aa0e574c816536a95089e44c515c5aa47cc22fd5575cd0" }, "downloads": -1, "filename": "async_mediawiki-0.1.0.tar.gz", "has_sig": false, "md5_digest": "454f19528565615790ffe162fb311ebf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3720, "upload_time": "2018-08-17T17:29:26", "url": "https://files.pythonhosted.org/packages/29/05/971fe0f37488a94e0228bb0856897b460197e862a2367652979d7c5ee458/async_mediawiki-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "ee69a80527217ca9eb336a456743118d", "sha256": "7ea6d2357e4753a7050f3d94ffc1ad75f78468a9657515df4fe7d9e80752c5e8" }, "downloads": -1, "filename": "async_mediawiki-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "ee69a80527217ca9eb336a456743118d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5434, "upload_time": "2018-10-28T13:38:14", "url": "https://files.pythonhosted.org/packages/ac/05/83100ae2c0d53c8423282ef7933e588c59e4eb76e23098ce2d91ee701432/async_mediawiki-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ddd538c72b67518a32dc2a9196a16294", "sha256": "65c3546689cec945a480ba35099d6cc188811be255eb4aff4a0ca3aaa9b17c83" }, "downloads": -1, "filename": "async_mediawiki-0.2.0.tar.gz", "has_sig": false, "md5_digest": "ddd538c72b67518a32dc2a9196a16294", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4131, "upload_time": "2018-10-28T13:38:15", "url": "https://files.pythonhosted.org/packages/e1/64/6877b8d4f5b0de0646e91d93ecdf630045a934b64bf0ccbdc0eb59044d0c/async_mediawiki-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ee69a80527217ca9eb336a456743118d", "sha256": "7ea6d2357e4753a7050f3d94ffc1ad75f78468a9657515df4fe7d9e80752c5e8" }, "downloads": -1, "filename": "async_mediawiki-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "ee69a80527217ca9eb336a456743118d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5434, "upload_time": "2018-10-28T13:38:14", "url": "https://files.pythonhosted.org/packages/ac/05/83100ae2c0d53c8423282ef7933e588c59e4eb76e23098ce2d91ee701432/async_mediawiki-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ddd538c72b67518a32dc2a9196a16294", "sha256": "65c3546689cec945a480ba35099d6cc188811be255eb4aff4a0ca3aaa9b17c83" }, "downloads": -1, "filename": "async_mediawiki-0.2.0.tar.gz", "has_sig": false, "md5_digest": "ddd538c72b67518a32dc2a9196a16294", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4131, "upload_time": "2018-10-28T13:38:15", "url": "https://files.pythonhosted.org/packages/e1/64/6877b8d4f5b0de0646e91d93ecdf630045a934b64bf0ccbdc0eb59044d0c/async_mediawiki-0.2.0.tar.gz" } ] }