Check footprint type on Python

Using the Nightly new pcbnew API, how to check if a footprint is SMD, PTH or is just a drawing (with pads)? Is it by using the ft.GetAttribute()? But with which value should I compare?

It returns a bitmask with bits defined here https://gitlab.com/kicad/code/kicad/-/blob/master/pcbnew/footprint.h#L66
Example how to check for a bit https://github.com/openscopeproject/InteractiveHtmlBom/blob/master/InteractiveHtmlBom/ecad/kicad.py#L471

Thanks, this help a lot together with your last code to expose the internal field to Python.