infi.dtypes.hctl provides a datatype for representing HCT and HCTL in such a way that is easy to extract each part and compare between objects.
HCTL:
>>> from infi.dtypes.hctl import HCTL
>>> hctl = HCTL(1,0,0,1)
>>> hctl.get_host()
1
>>> hctl.get_channel()
0
>>> hctl.get_target()
0
>>> hctl.get_lun()
1
To check out the code for development purposes, clone the git repository and run the following commands:
easy_install -U infi.projector
projector devenv build