__init__.py 353 B

12345678910111213141516171819202122
  1. from .parser import parse # noqa
  2. _MAJOR = 0
  3. _MINOR = 1
  4. _PATCH = 0
  5. def version_tuple():
  6. '''
  7. Returns a 3-tuple of ints that represent the version
  8. '''
  9. return (_MAJOR, _MINOR, _PATCH)
  10. def version():
  11. '''
  12. Returns a string representation of the version
  13. '''
  14. return '%d.%d.%d' % (version_tuple())
  15. __version__ = version()