“cmd.phi_psi” return the phi and psi angles for a protein atom selection.
def phi_psi(selection="(byres pk1)", quiet=1):
phi_psi | api