import pywikibot
pywikibot.__version__
'$Id: 4fe6801c6993ebccaf1500ed81e8bc700eab921b $'
pywikibot.__release__
'3.0-dev'
site = pywikibot.Site('test', 'wikipedia')
site
APISite("test", "wikipedia")
page = pywikibot.Page(site, 'test')
page.exists()
VERBOSE:pywiki:Found 1 wikipedia:test processes running, including this one.
True
site.username()
'John Vandenberg'
page.text = 'Hello World'
page.save()
Page [[Test]] saved
INFO:pywiki:Page [[Test]] saved