I'm writing a python program to get rsa public key. Is there a way to get it via paramiko or I just read it like plain text and with the assumption from id_rsa.pub?
If you don't know where the public key file is located, Paramiko can't help you either - it also needs you to specify where it is.  You can of course try the usual places (starting by parsing ~/.ssh/config if available), but you don't need Paramiko for that.
Can we get public key using Paramiko? Or just read it like plain text?