import pywikibot
 
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
page.text = "Hello World"
page.save()
Page [[Test]] saved
INFO:pywiki:Page [[Test]] saved