- May 28, 2020
-
-
Marc Trölitzsch authored
-
- Aug 02, 2019
-
-
Dan Michael O. Heggø authored
Breaking change: Change the `Site.ask()` method to produce less nested output. Basically, change `yield {title: answer}` to `yield answer`. The title is included in the answer object after all.
-
Dan Michael O. Heggø authored
-
Marc Trölitzsch authored
-
- Jan 11, 2018
-
-
Dan Michael O. Heggø authored
This fixes tests not being added to the source package.
-
- Nov 16, 2017
-
-
Adam Williamson authored
This reverts commit 1650e0e7. Upstream restored handling of the adding_headers arg in 0.6.1. Going back to using that name means we're still compatible with any version of responses after 0.3.0, except 0.6.0. Also adjust setup.py to express this correctly.
-
- Jul 31, 2017
-
-
Dan Michael O. Heggø authored
-
- May 17, 2017
-
-
Dan Michael O. Heggø authored
When there's zero results, the method should not yield an empty dictionary. Otherwise counting number of results could be wrong (think `len(list(site.ask('...')))`)
-
Dan Michael O. Heggø authored
-
- May 11, 2017
-
-
Dan Michael O. Heggø authored
On read protected wikis, we must make sure that we don't include extra parameters when requesting the login token, or we will get `readapideniederror`. - Remove extraneous `continue` parameter from non-query calls - Remove `userinfo` from `meta=tokens` calls
-
- Apr 28, 2017
-
-
Dan Michael O. Heggø authored
For MediaWiki >= 1.27, fetch login tokens from the tokens module using `action=query&meta=tokens`.
-
- Nov 07, 2016
-
-
Bryan Davis authored
Allow sending custom headers (e.g. X-Wikimedia-Debug) with all requests by passing a dict of header data in the Site constructor.
-
- Oct 23, 2016
-
-
Dan Michael O. Heggø authored
New implementation of #126
-
- Jul 03, 2016
-
-
Dan Michael O. Heggø authored
Add OAuth and update docs
-
Dan Michael O. Heggø authored
-
- Jan 10, 2016
-
-
Dan Michael O. Heggø authored
-
- Nov 10, 2015
-
-
Dan Michael O. Heggø authored
- Removing the need to use a double for loop to consume the the result by returning a list of revisions rather than a list of pages. - Parsing the timestamps using the standard parse_timestamp method - Adding tests (#84)
-
- Mar 15, 2015
-
-
Dan Michael O. Heggø authored
-
- Nov 23, 2014
-
-
Dan Michael O. Heggø authored
Prepare for Python 3.x support - Use print function - Use compability methods from six
-
- Nov 17, 2014
-
-
Dan Michael O. Heggø authored
- If database lag exceeds max lag, the API will still send 200, not 503. This was only added to documentation after bugzilla:31156. Ref. <https://www.mediawiki.org/wiki/Manual:Maxlag_parameter> - In addition, Requests doesn't raise an exception when status code != 200 unless raise_for_status() is called, so we should call that to catch any other 5xx errors such as Squid errors. - Replace print statements with logging Note that responses>=0.3.0 is needed to run the test suite now
-
Dan Michael O. Heggø authored
As suggested in #52 Original auth mechanism introduced in #27 This change should retain backwards compability
-
- Oct 26, 2014
-
-
Dan Michael O. Heggø authored
-
- Oct 05, 2014
-
-
Dan Michael O. Heggø authored
Use new token handling system described on https://www.mediawiki.org/wiki/API:Meta#tokens for MediaWiki >= 1.24
-
Dan Michael O. Heggø authored
Work in progress, looks a bit dirty right now
-
- Sep 21, 2014
-
-
Dan Michael O. Heggø authored
-
Dan Michael O. Heggø authored
Since we now require MediaWiki 1.16, these are no longer needed. It might be necessary to add new compability methods in the future, but the API is generally stable now.
-
- Sep 05, 2014
-
-
Waldir Pimenta authored
-
- Sep 04, 2014
-
-
Waldir Pimenta authored
-
- Sep 02, 2014
-
-
Dan Michael O. Heggø authored
- Require 'ordereddict' only on Python < 2.7 - Don't require 'simplejson'
-
- Aug 31, 2014
-
-
Dan Michael O. Heggø authored
- For some reason, 'pytest-cache' isn't found by setup.py if not specified explicitly in 'tests_require' - Add tox.ini so tests can be run using tox if desired - Update test to not be dependent on serialization
-
Dan Michael O. Heggø authored
- A single command `python setup.py test` will now install test dependencies, make an in-place build and run the tests. - The setup script now requires Setuptools. A message will be printed if it is not found.
-
- Aug 18, 2014
-
-
Dan Michael O. Heggø authored
-
Dan Michael O. Heggø authored
- Note the following exception replacements: mwclient.errors.HTTPError -> requests.exceptions.ConnectionError mwclient.errors.HTTPStatusError -> requests.exceptions.HTTPError mwclient.errors.HTTPRedirectError -> requests.exceptions.TooManyRedirects - Removed the `compability.old_upload` method, which was used for MediaWiki < 1.16. - Requests automatically decompresses gzip-encoded responses, and does its best to decode response content to unicode when possible. - [#53] Using the Responses library to mock http requests in tests
-
- Jun 15, 2014
-
-
Dan Michael O. Heggø authored
- Keep automated tests to be run with py.test in './tests/' and examples in './examples/' - Rename test to adhere to 'Conventions for Python test discovery' (http://pytest.org/latest/goodpractises.html#test-discovery)
-
- Jun 16, 2013
-
-
Dan Michael O. Heggø authored
-
Dan Michael O. Heggø authored
-