(self, **kw)
return meta
Get metadata for a single blob

        All arguments must be passed as keyword arguments.

        :param parent_id: `BlobMeta.parent_id`
        :param type_code: `BlobMeta.type_code`
        :param name: `BlobMeta.name`
        :param key: `BlobMeta.key`
        :raises: `BlobMeta.DoesNotExist` if the metadata is not found.
        :returns: A `BlobMeta` object.
Get metadata for a single blob
Get metadata for a single blob
def get(self, **kw):
        """Get metadata for a single blob

        All arguments must be passed as keyword arguments.

        :param parent_id: `BlobMeta.parent_id`
        :param type_code: `BlobMeta.type_code`
        :param name: `BlobMeta.name`
        :param key: `BlobMeta.key`
        :raises: `BlobMeta.DoesNotExist` if the metadata is not found.
        :returns: A `BlobMeta` object.
        """
        keywords = set(kw)
        if 'key' in keywords and keywords != {'key', 'parent_id'}:
            kw.pop('key', None)
            if 'parent_id' not in keywords:
                raise TypeError("Missing argument 'parent_id'")
            else:
                kw.pop('parent_id')
                raise TypeError("Unexpected arguments: {}".format(", ".join(kw)))
        elif 'key' not in keywords and keywords != {"parent_id", "type_code", "name"}:
            # arg check until on Python 3 -> PEP 3102: required keyword args
            kw.pop("parent_id", None)
            kw.pop("type_code", None)
            kw.pop("name", None)
            if not kw:
                raise TypeError("Missing argument 'parent_id', 'type_code' and/or 'name'")
            raise TypeError("Unexpected arguments: {}".format(", ".join(kw)))
        meta = BlobMeta.objects.partitioned_query(kw["parent_id"]).filter(**kw).first()
        if meta is None:
            raise BlobMeta.DoesNotExist(repr(kw))
        return meta
def get ( self , * * kw ) : keywords = set ( kw ) if 'key' in keywords and keywords != { 'key' , 'parent_id' } : kw . pop ( 'key' , None ) if 'parent_id' not in keywords : raise TypeError ( "Missing argument 'parent_id'" ) else : kw . pop ( 'parent_id' ) raise TypeError ( "Unexpected arguments: {}" . format ( ", " . join ( kw ) ) ) elif 'key' not in keywords and keywords != { "parent_id" , "type_code" , "name" } : # arg check until on Python 3 -> PEP 3102: required keyword args kw . pop ( "parent_id" , None ) kw . pop ( "type_code" , None ) kw . pop ( "name" , None ) if not kw : raise TypeError ( "Missing argument 'parent_id', 'type_code' and/or 'name'" ) raise TypeError ( "Unexpected arguments: {}" . format ( ", " . join ( kw ) ) ) meta = BlobMeta . objects . partitioned_query ( kw [ "parent_id" ] ) . filter ( * * kw ) . first ( ) if meta is None : raise BlobMeta . DoesNotExist ( repr ( kw ) ) return meta