The python component that is linked to from the following discussion should work. It is overkill in that there are options for several attributes but you can use that as a start.
Direct link to the definition: python_attributes8.gh
The python component that is linked to from the following discussion should work. It is overkill in that there are options for several attributes but you can use that as a start.
Direct link to the definition: python_attributes8.gh