Open akhlebka opened 1 year ago
See this example: https://github.com/ValvePython/steam/tree/master/recipes/2.SimpleWebAPI
I would also make sure the credentials for login are always used as remember password tends to disconnect once in a while. Monkey patching is recommended (you have to do that yourself, see https://steam.readthedocs.io/en/latest/api/steam.monkey.html#steam.monkey.patch_minimal). I would also recommend using https://www.gevent.org/api/gevent.pywsgi.html#gevent.pywsgi.WSGIServer to run the flask app. Can't comment on fastapi as I haven't tried it.
@rossengeorgiev thanks for the answer. It was really helpful.
But I'm also not sure what's the idea of set_credential_location()
method. It does not create any file in my file system or even if I create cm_servers.json
file myself (because this is the only files related error I see in logs) SteamClient does not override it
Where can I find any info about how this file works or how should I fill it to ex. not pass login and password everytime and just use client.login()
?
I have an issue with creating a small web application whuch will wait for request with profile id and return it's profile card, but it seems like jobs and events are not working when hosting it as Flask or FastAPI apps. For me it seems like a bug but I'm not sure. Do you have ideas?