It is much simpler and only slightly more verbose to export an auxiliary function that just invokes the constructor.
export_name
export_attribute