I want to run pywikibot from inside Docker container, so I could run some cron jobs with it from the cloud (maybe Azure).
I added code of my bot and user-config.py file to my Docker container, but when it tries to update some page, it uses getpass to read password from input:
Password for user BunykBot on wikipedia:uk (no characters will be shown): ^CWARNING: /usr/local/lib/python3.7/getpass.py:91: GetPassWarning: Can not control echo on the terminal.
passwd = fallback_getpass(prompt, stream)
Is there any way to give it password from some variable? I see that login.py script that creates .lwp file uses site.login() which uses api.LoginManager, but not gives it password anywhere, so it obtains it from input. Is there any way I could monkeypatch this with not much effort? Or do I need some updated fork of pywikibot?