pythonthread-safetygithub3.py

Is github3py thread-safe?


Does anytone knows if github3py is threadsafe.
Specifically:

None of the threads edit the objects, just share the instances and call the methods.

Thanks


Solution

  • To give you a more thorough answer, Aviv, since you're simply sharing instances and calling methods, then it is absolutely threadsafe. Some of the questions of requests thread-safety are mostly around cookies, their expiration, and their revocation. Cookies aren't used by github3.py to talk to the GitHub API so you should be fine.