{ "info": { "author": "Yuvi Panda", "author_email": "yuvipanda@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "Python Mediawiki API\n====================\n\nA very simple and direct wrapper around the Mediawiki API\n\nIntroduction\n------------\n\nThis library provides a very simple convenience wrapper around the `Mediawiki API `_. It is meant to closely mirror the interface provided by `mw.Api `_\n \nFeatures\n--------\n\nThe library allows you to call Mediawiki APIs without having to deal without dealing with network calls. It also has authentication support and a few convenience methods. \n\nNon Features\n------------\n\nThis is the anti-`mwclient `_. It does not add another layer for you to understand over the well `documented `_ Mediawiki API, and it never will :)\n\nDocumentation\n-------------\n MWApi\n \n class MWApi\n | Class representing a single API Session, with a single authenticated user.\n | \n | Useful Attributes:\n | tokens - Contains an edittoken & watchtoken (if populateTokens() has been called)\n | is_authenticated - Boolean indicating if the MWApi is sending authenticated requests\n | \n | Methods defined here:\n | \n | __init__(self, host, api_path='/w/api.php')\n | Create a MWApi instance\n | \n | Arguments:\n | host - Host to which to connect to. Must include http:// or https:// and no trailing slash\n | api_path - Url to api.php on the host. Must start with /\n | \n | get(self, params)\n | Makes an API request with the GET method\n | \n | Arguments:\n | params - Parameters to send to the API. Varies depending on the action to be performed.\n | \n | login(self, username, password)\n | Authenticates with the given credentials and logs in the user for the session. \n | All further requests sent from this MWApi object will be signed as said user.\n | \n | Arguments:\n | username - The username of the user to be authenticated\n | password - The password of the user to be authenticated\n | \n | Throws:\n | Throws an exception with (Message, Response) if Authentication fails\n | \n | Note: \n | Passwords are sent as plaintext. This is a limitation of the Mediawiki API.\n | Use a https host if you want your password to be secure\n | \n | populateTokens(self)\n | Populates the `tokens` attribute of the object with `edittoken` and `watchtoken`.\n | Requires that authentication has been performed already with `login()`\n | \n | post(self, params)\n | Makes an API request with the POST method\n | \n | Arguments:\n | params - Parameters to send to the API. Varies depending on the action to be performed.\n | \n | request(self, method, params)\n | Makes a request to the API and returns a dictionary containing the results\n | \n | Arguments:\n | method - GET or POST, depending on which API is being called\n | params - Parameters to send to the API. Varies depending on the action to be performed.\n | \n\n\nContact\n-------\n\nSupport requests and flames can be sent to me via several means.\n\nEmail: yuvipanda@gmail.com. Twitter: @yuvipanda. IRC: yuvipanda on FreeNode\n\nYou can file bugs `on Github `_.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/yuvipanda/python-mwapi", "keywords": null, "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "python-mwapi", "package_url": "https://pypi.org/project/python-mwapi/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/python-mwapi/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/yuvipanda/python-mwapi" }, "release_url": "https://pypi.org/project/python-mwapi/0.2/", "requires_dist": null, "requires_python": null, "summary": "Simple wrapper for the Mediawiki API", "version": "0.2" }, "last_serial": 1697080, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "2959085002ef9d4dfbf4978dbba544c7", "sha256": "5788825cc5cfb9ed843176545a6547584796d7ace4e9e9cb3362cfc4412223db" }, "downloads": -1, "filename": "python-mwapi-0.1.tar.gz", "has_sig": false, "md5_digest": "2959085002ef9d4dfbf4978dbba544c7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3728, "upload_time": "2012-04-02T03:01:33", "url": "https://files.pythonhosted.org/packages/6e/97/ff67c14190b115ef17756270c2b4c1ee1ed307bdcd2bbaf620ab7b3627a3/python-mwapi-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "11ae02e3b9adbaaf74624e663dee1397", "sha256": "b69b7b397b67fb59e10238233c932c9eb435f4db24ab51dca45ceed396344f33" }, "downloads": -1, "filename": "python-mwapi-0.1.1.tar.gz", "has_sig": false, "md5_digest": "11ae02e3b9adbaaf74624e663dee1397", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3792, "upload_time": "2012-04-02T05:58:17", "url": "https://files.pythonhosted.org/packages/f1/02/6aa1c3d55fe955fc78ae4759e32f9a715e049a0f46eeff5a4b697e01eb02/python-mwapi-0.1.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "e5bd81b38c974efcb4f2b05a100430bf", "sha256": "4655aad95430b54c22a3219716813130e01740eb4454df0851d6c4040a7acf46" }, "downloads": -1, "filename": "python-mwapi-0.2.tar.gz", "has_sig": false, "md5_digest": "e5bd81b38c974efcb4f2b05a100430bf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4282, "upload_time": "2013-01-07T02:18:08", "url": "https://files.pythonhosted.org/packages/46/55/fe6245d77fb2dba4db3c3b6c57ffd35a63edef4b928fdf2ddd163c72e30b/python-mwapi-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e5bd81b38c974efcb4f2b05a100430bf", "sha256": "4655aad95430b54c22a3219716813130e01740eb4454df0851d6c4040a7acf46" }, "downloads": -1, "filename": "python-mwapi-0.2.tar.gz", "has_sig": false, "md5_digest": "e5bd81b38c974efcb4f2b05a100430bf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4282, "upload_time": "2013-01-07T02:18:08", "url": "https://files.pythonhosted.org/packages/46/55/fe6245d77fb2dba4db3c3b6c57ffd35a63edef4b928fdf2ddd163c72e30b/python-mwapi-0.2.tar.gz" } ] }