circe/core.py
def peek(self, cid: int) -> Dict:
        """ Returns information about the specified CID.

        Args:
            cid (int): The integer prefix of the CID of interest.

        Returns:
            Dict: If the prefix / corresponding CID is present in Bookmarks, this function will returns a small
                dictionary of metadata about the corresponding, Circe-encoded file. If the prefix / corresponding CID
                is *not* present, the dictionary will be blank.
        """
        for folder in self.bookmarks["roots"]["other"]["children"]:
            if folder.get("cid"):
                identifier, encoded_name = folder["cid"].split("/", maxsplit=1)
                if int(identifier) == cid:
                    decoded_name = base64.b64decode(encoded_name.encode()).decode()
                    return {
                        "file": decoded_name,
                        "title": folder["name"],
                        "num_data_chunks": len(folder["children"])
                    }
        return {}
 Returns information about the specified CID.

        Args:
            cid (int): The integer prefix of the CID of interest.

        Returns:
            Dict: If the prefix / corresponding CID is present in Bookmarks, this function will returns a small
                dictionary of metadata about the corresponding, Circe-encoded file. If the prefix / corresponding CID
                is *not* present, the dictionary will be blank.
        
Returns information about the specified CID.
Returns information about the specified CID .
def peek(self, cid: int) -> Dict:
        for folder in self.bookmarks["roots"]["other"]["children"]:
            if folder.get("cid"):
                identifier, encoded_name = folder["cid"].split("/", maxsplit=1)
                if int(identifier) == cid:
                    decoded_name = base64.b64decode(encoded_name.encode()).decode()
                    return {
                        "file": decoded_name,
                        "title": folder["name"],
                        "num_data_chunks": len(folder["children"])
                    }
        return {}
def peek ( self , cid : int ) -> Dict : for folder in self . bookmarks [ "roots" ] [ "other" ] [ "children" ] : if folder . get ( "cid" ) : identifier , encoded_name = folder [ "cid" ] . split ( "/" , maxsplit = 1 ) if int ( identifier ) == cid : decoded_name = base64 . b64decode ( encoded_name . encode ( ) ) . decode ( ) return { "file" : decoded_name , "title" : folder [ "name" ] , "num_data_chunks" : len ( folder [ "children" ] ) } return { }
Returns information about the specified CID.
Returns information about the specified CID .
""" Returns information about the specified CID.

        Args:
            cid (int): The integer prefix of the CID of interest.

        Returns:
            Dict: If the prefix / corresponding CID is present in Bookmarks, this function will returns a small
                dictionary of metadata about the corresponding, Circe-encoded file. If the prefix / corresponding CID
                is *not* present, the dictionary will be blank.
        """
If the prefix / corresponding CID is present in Bookmarks, this function will returns a small
dictionary of metadata about the corresponding, Circe-encoded file. If the prefix / corresponding CID
is *not* present, the dictionary will be blank.
If the prefix / corresponding CID is present in Bookmarks this function will returns a small dictionary of metadata about the corresponding Circe - encoded file . If the prefix / corresponding CID is * not * present the dictionary will be blank .
Dict
self
cid
int
The integer prefix of the CID of interest.
The integer prefix of the CID of interest .