How to get the parameters of a segment with python?

Hi everyone,
I’m using a Slicer version 4.13.0-2021-12-01 for Ubuntu18.04.
I want to get the Maximum slicer, length and short diameter, CT value and maximum surface area of a segment with python. But I have no idea about that.

Thank you very much for your support!

I don’t understand exactly what you want to calculate for the segment using python but there are some examples in the script repository which may be similar to what you are trying to do.

Let me know if you need any more specific help and I may be able to figure it out