with this script you can convert the XML pinout file from this link https://github.com/STMicroelectronics/STM32_open_pin_data to csv file and you can import this data to the Schematic Capture program of your choice and have the complete pinout functionalities in your SCHEMATIC SYMBOLS
run this script by name or path :
python pinout_to_cvs.py pinout.xml or python pinout_to_cvs.py ~/home/user/pinout.xml