Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upRemove gevent monkeypatching. #287
Conversation
For somebody using this package as a library, it would be preferable to leave whether to monkeypatch gevent into the standard library up to the user, rather than forcing it on every consumer. As far as I can tell, the only place that monkeypatching is used, is for interacting with requests. The only place this is *directly* used by the client is in `steam.core.CMClient.boostrap_from_webapi`, which is only called on the initial connection. Letting that call be synchronous, if the user doesn't want to use gevent directly seems reasonable.
|
Kudos, SonarCloud Quality Gate passed!
|
|
You are correct. I've been intending to remove monkey patch to make the code easier to use in conjunction with other libraries and features of python. That webapi call, and another webapi method, are the only places where library might needed. Of course the user could be using |
|
This will also affect |
For somebody using this package as a library, it would be preferable to leave
whether to monkeypatch gevent into the standard library up to the user, rather
than forcing it on every consumer.
As far as I can tell, the only place that monkeypatching is used, is for
interacting with requests. The only place this is directly used by
the client is in
steam.core.CMClient.boostrap_from_webapi, which isonly called on the initial connection. Letting that call be synchronous,
if the user doesn't want to use gevent directly seems reasonable.