def vcard_from_string(vcard_string):
 try:
  vcard = vobject.readOne(vcard_string)
 except vobject.base.ParseError as error:
  raise Exception(error)
 return vcard_from_vobject(vcard)

def vcard_from_string ( vcard_string ) : try : vcard = vobject . readOne ( vcard_string ) except vobject . base . ParseError as error : raise Exception ( error ) return vcard_from_vobject ( vcard )
vcard_string: str() or unicode() returns vcard() .