__init__.py 548 B

1234567891011121314151617181920
  1. # ruff: noqa: F401
  2. import logging
  3. from .oauth1_auth import OAuth1
  4. from .oauth1_session import OAuth1Session
  5. from .oauth2_auth import OAuth2
  6. from .oauth2_session import OAuth2Session, TokenUpdated
  7. __version__ = "2.0.0"
  8. import requests
  9. if requests.__version__ < "2.0.0":
  10. msg = (
  11. "You are using requests version %s, which is older than "
  12. "requests-oauthlib expects, please upgrade to 2.0.0 or later."
  13. )
  14. raise Warning(msg % requests.__version__)
  15. logging.getLogger("requests_oauthlib").addHandler(logging.NullHandler())