MCPcopy Create free account
hub / github.com/daniel2005d/mapXplore / _get_format

Method _get_format

lib/file_reader.py:35–39  ·  view source on GitHub ↗
(self, content:bytearray)

Source from the content-addressed store, hash-verified

33 }
34
35 def _get_format(self, content:bytearray)->str:
36 for magic_file, file_type in self._magic_numbers.items():
37 if content.startswith(magic_file):
38 return file_type
39 return None
40
41 def _read_pdf(self, content:bytearray, max_pages=2)->str:
42 text = ""

Callers 1

get_officeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected