mediawiki-utilities / python-mwapi

Simple Python Wrapper around MediaWiki API
http://pythonhosted.org/mwapi
MIT License
31 stars 11 forks source link

API, assert=user, ??? #30

Closed MvGulik closed 6 years ago

MvGulik commented 6 years ago
NTS: Darn. Seem that's not possible with mwapi.
lucaswerkmeister commented 5 years ago

Sure it’s possible, just not very pretty…

session.get(**{'action': 'query', 'assert': 'user'})
kwargs = {
    'action': 'query',
    'assert': 'user',
}
session.get(**kwargs)