Pikilipsis input?
The answer will be simple: you cannot use pywikipedia without being able to run login.py
.
This file not only provides a nice user interface to try out your configuration: it contains all of the authentication primitives we use in the login framework. Without logging in, you can't do much, so no.
If you want a more useful answer, you need to be more precise: how, why you can't use login.py, and what operations you need to do with Pywikipedia.
a source to share
One option that worked for me when I could not interactively use my remote server (and therefore not enter a password) was to copy my credentials to the remote server.
By default, your remote permissions are stored in ~/.pywikibot/pywikibot.lwp
and it worked for me in the past for logging in locally and then copying that file .lwp
to the remote server and then I never had to enter my password on the remote server anymore.
I am not claiming that this method is completely safe, but it is a hack.
a source to share