def get_id_from_href(href):
 return urlparse.urlsplit(('%s' % href)).path.split('/')[(-1)]

def get_id_from_href ( href ) : return urlparse . urlsplit ( ( '%s' % href ) ) . path . split ( '/' ) [ ( - 1 ) ]
return the id or uuid portion of a url .