Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ahupp/python-magic
/ magic_file
Function
magic_file
magic/__init__.py:296–297 ·
view source on GitHub ↗
(cookie, filename)
Source
from the content-addressed store, hash-verified
294
295
296
def
magic_file(cookie, filename):
297
return
_magic_file(cookie, coerce_filename(filename))
298
299
300
_magic_buffer = libmagic.magic_buffer
Callers
1
from_file
Method · 0.85
Calls
1
coerce_filename
Function · 0.85
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…