1. Ben Bangert
  2. WebHelpers
  3. Issues
Issue #36 resolved

Add version number

Thijs Triemstra
created an issue

For some reason a __version__ property is missing, or is there some other way I can check for the WebHelpers version?

Comments (4)

  1. Mike Orr
    >>> import pkg_resources
    >>> pkg_resources.get_distribution("WebHelpers").version

    That assumes you have pkg_resources, which comes with Setuptools and Distribute.

    I'll put the .__version__ attribute in the next version, but there's some controversy over whether it's proper. It's not an official Python attribute, and you're not supposed to define your own attributes that start and end with two underscores. However, some packages have defined .__version__, and WebHelpers does use .__html__.

  2. Log in to comment