__init__.py 483 B

123456789101112131415161718192021
  1. import logging
  2. import sys
  3. # Current version of the library
  4. __version__ = '0.1.0'
  5. def get_version():
  6. """
  7. Returns a string with the current version of the library (e.g., "0.1.0")
  8. """
  9. return __version__
  10. def init_logging():
  11. """
  12. Temporary workaround for build timeouts by enabling logging to
  13. stdout so that travis doesn't think the build has hung.
  14. """
  15. logging.basicConfig(stream=sys.stdout)
  16. logging.getLogger(__name__).setLevel(logging.DEBUG)