leforestier / yattag

Python library to generate HTML or XML in a readable, concise and pythonic way.
332 stars 31 forks source link

Method to get version of the library #47

Closed ogroef closed 5 years ago

ogroef commented 5 years ago

Hi

Is there a method to retrieve the library version. I am using your lib in my project, and I list all used library with there version. Now I hardcode the version of the lib, but it would be nice to retreive the version from the lib.

Regards Olivier

leforestier commented 5 years ago

Hi,

import yattag
print(yattag.__version__)

Is this what you were looking for?

ogroef commented 5 years ago

Works like a charm, thx