def get_pkg_msg_specs(package):
 _init()
 types = list_msg_types(package, False)
 specs = []
 failures = []
 for t in types:
  try:
   typespec = load_from_file(msg_file(package, t), package)
   specs.append(typespec)
  except Exception as e:
   failures.append(t)
   print(('ERROR: unable to load %s, %s' % (t, e)))
 return (specs, failures)

def get_pkg_msg_specs ( package ) : _init ( ) types = list_msg_types ( package , False ) specs = [ ] failures = [ ] for t in types : try : typespec = load_from_file ( msg_file ( package , t ) , package ) specs . append ( typespec ) except Exception as e : failures . append ( t ) print ( ( 'ERROR: unable to load %s, %s' % ( t , e ) ) ) return ( specs , failures )
list all messages that a package contains .