MCPcopy
hub / github.com/USArmyResearchLab/Dshell / info

Method info

dshell/core.py:1870–1881  ·  view source on GitHub ↗

Provides a dictionary with information about a blob. Useful for calls to a plugin's write() function, e.g. self.write(\\*\\*blob.info()) Returns: Dictionary with information

(self)

Source from the content-addressed store, hash-verified

1868 # return data
1869
1870 def info(self):
1871 """
1872 Provides a dictionary with information about a blob. Useful for
1873 calls to a plugin's write() function, e.g. self.write(\\*\\*blob.info())
1874
1875 Returns:
1876 Dictionary with information
1877 """
1878 d = {k: v for k, v in self.__dict__.items() if not k.startswith('_')}
1879 del d['hidden']
1880 del d['packets']
1881 return d
1882
1883
1884 # TODO: Trying to determine if we should do this or take into account acknowledgement numbers

Callers 15

read_packetsFunction · 0.45
_postmoduleMethod · 0.45
_prefileMethod · 0.45
_postmoduleMethod · 0.45
json_defaultMethod · 0.45
packet_handlerMethod · 0.45
http_handlerMethod · 0.45
http_handlerMethod · 0.45
http_handlerMethod · 0.45
http_handlerMethod · 0.45
http_handlerMethod · 0.45
packet_handlerMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected