__init__.py 520 B

12345678910111213141516171819202122232425
  1. """
  2. oauthlib
  3. ~~~~~~~~
  4. A generic, spec-compliant, thorough implementation of the OAuth
  5. request-signing logic.
  6. :copyright: (c) 2011 by Idan Gazit.
  7. :license: BSD, see LICENSE for details.
  8. """
  9. __author__ = 'Idan Gazit <idan@gazit.me>'
  10. __version__ = '2.0.2'
  11. import logging
  12. try: # Python 2.7+
  13. from logging import NullHandler
  14. except ImportError:
  15. class NullHandler(logging.Handler):
  16. def emit(self, record):
  17. pass
  18. logging.getLogger('oauthlib').addHandler(NullHandler())