def package(self, name):
        """
        ::
        
            GET /:login/packages/:package
        
        :param name: the name identifying the package
        :type dataset_id: :py:class:`basestring` or :py:class:`dict`
        
        :rtype: :py:class:`dict`
        
        Gets a dict representing resource values for a package by name. If 
        passed a dict containing a `name` key, it uses the corresponding 
        value.
        """
        if isinstance(name, dict):
            name = name.get('id', name.get('name'))
        j, _ = self.request('GET', '/packages/' + str(name))
        return j
def package ( self , name ) : if isinstance ( name , dict ) : name = name . get ( 'id' , name . get ( 'name' ) ) j , _ = self . request ( 'GET' , '/packages/' + str ( name ) ) return j
::
        
            GET /:login/packages/:package
        
        :param name: the name identifying the package
        :type dataset_id: :py:class:`basestring` or :py:class:`dict`
        
        :rtype: :py:class:`dict`
        
        Gets a dict representing resource values for a package by name. If 
        passed a dict containing a `name` key, it uses the corresponding 
        value.