@core_helper
def get_pkg_dict_extra(pkg_dict, key, default=None):
 extras = (pkg_dict['extras'] if ('extras' in pkg_dict) else [])
 for extra in extras:
  if (extra['key'] == key):
   return extra['value']
 return default

@ core_helper def get_pkg_dict_extra ( pkg_dict , key , default = None ) : extras = ( pkg_dict [ 'extras' ] if ( 'extras' in pkg_dict ) else [ ] ) for extra in extras : if ( extra [ 'key' ] == key ) : return extra [ 'value' ] return default
returns the value for the dataset extra with the provided key .