cam.utilities.version_utils

cam.utilities.version_utils#

Fabex ‘version_utils.py’ © 2012 Vilem Novak

Functions#

opencamlib_version()

Return the version of the OpenCamLib library.

shapely_version()

Return the version of the Shapely library.

Module Contents#

opencamlib_version()[source]#

Return the version of the OpenCamLib library.

This function attempts to import the OpenCamLib library and returns its version. If the library is not available, it will return None. The function first tries to import the library using the name ‘ocl’, and if that fails, it attempts to import it using ‘opencamlib’ as an alias. If both imports fail, it returns None.

Returns:

The version of OpenCamLib if available, None otherwise.

Return type:

str or None

shapely_version()[source]#

Return the version of the Shapely library.

This function attempts to import the Shapely library and returns its version. If the library is not available, it will return None.

Returns:

The version of Shapely if available, None otherwise.

Return type:

str or None