obspy.core.util.base.get_dependency_version

get_dependency_version(package_name, raw_string=False)[source]

Get version information of a dependency package.

Parameters

package_name (str) – Name of package to return version info for

Returns

Package version as a list of three integers or None if import fails. With option raw_string=True returns raw version string instead (or None if import fails). The last version number can indicate different things like it being a version from the old svn trunk, the latest git repo, some release candidate version, … If the last number cannot be converted to an integer it will be set to 0.