Detect mime type, encoding and file type from bytes Returns a `FileMagic` namedtuple.
(byte_content)
| 278 | |
| 279 | |
| 280 | def detect_from_content(byte_content): |
| 281 | '''Detect mime type, encoding and file type from bytes |
| 282 | |
| 283 | Returns a `FileMagic` namedtuple. |
| 284 | ''' |
| 285 | |
| 286 | return _create_filemagic(mime_magic.buffer(byte_content), |
| 287 | none_magic.buffer(byte_content)) |
nothing calls this directly
no test coverage detected
searching dependent graphs…