0

how to check the version of suds installed in python, i look over in the net but i cannot find one.

i try this one. in running python manage.py shell

>>> import suds
>>> suds

but i got the python version on running it.

<module 'suds' from '/usr/local/lib/python2.7/dist-packages/suds/__init__.pyc'>

how can I check the suds version?

i try also suds version but i got this error

>>> import suds
>>> suds version
  File "<console>", line 1
    suds version
               ^
SyntaxError: invalid syntax
gadss
  • 21,687
  • 41
  • 104
  • 154

1 Answers1

6
>>>> import suds
>>>> print suds.__version__
0.4.1

Tada.

Edit: A more generic question was asked about this, and here's a kind-of-hacky script that checks for common names for the version constant.

Community
  • 1
  • 1
Etienne Perot
  • 4,764
  • 7
  • 40
  • 50
  • 2
    +1. To further this, since the place a `version` is stored differs from lib to lib, I always start with `>>> dir(module)` – sberry Apr 09 '12 at 07:17