Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
The simple python script to gather count of installed SFP on ACI Fabric:https://github.com/jaghabalayev/NetworkScripts/blob/main/aci-get-transceiver-count.py