Python client library to interface with the MediaWiki API
ex.py
(@marcfrederick: #247)base_title
& base_name
attributes to the Page
class (@RheingoldRiver: #245)Page.append(...)
and Page.prepend(...)
for appending or prepending text to a section or the whole page using the appendtext
or prependtext
API arguments (@RheingoldRiver: #232)Page.touch()
method (@RheingoldRiver: #232).editorconfig
file (@marcfrederick: #228)Changed:
__ver__
to __version__
(@marcfrederick: #218)scheme
parameter to Site and deprecated the (confusing) tuple syntax host=(host, scheme)
(@mtausig: #212)Page.edit()
method (@JustAnotherArchivist: #207)AssertUserFailedError
to inherit MwClientError
rather than LoginError
(ad3012416c44b3305440c83dc45a5e596b896ccf)Added:
uselang
argument to revisions()
and usercontributions()
(#151)Fixed:
util.parse_timestamp()
always return a time.struct_time
object (@marcfrederick: #217)requests_oauthlib
dependency to work with conda (@JohnGreeley: #227)slot
parameter to Page.text()
to support multi content revisions under MediaWiki >= 1.32. Defaults to 'main'. (#199)show
parameter to Page.categories()
to allow returning only hidden (show='hidden'
) or non-hidden (show='!hidden'
) categories.InvalidPageTitle
when requesting a page with an invalid title (@automatist: #183)continue
parameter from non-query callsuserinfo
from meta=tokens
calls in order to avoid readapideniederror
on read protected wikis.