“cmd.read_pdbstr” in an API-only function which reads a pdb file from a Python string. This feature can be used to load or update structures into PyMOL without involving any temporary files.
PYMOL API ONLY
cmd.read_pdbstr( string pdb-content, string object name [ ,int state [ ,int finish [ ,int discrete ] ] ] )
def read_pdbstr(pdb,name,state=0,finish=1,discrete=0,quiet=1, zoom=-1,multiplex=-2):