Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

filetype

Detect file type and MIME type from file data without external dependencies.

Files, images and mediaPYPI

GitHubWebsite

1. License

License from PyPI classifier.

github.com/h2non/filetype.py

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What filetype does

Detect file type and MIME type from file data without external dependencies.

filetype popularity

58 / 100
Gid Score, #1156 overall
11.8M
downloads a week, pypi
779
GitHub stars
3
agent projects use it
filetype: downloads per weekPyPI, filetype 11,734,411
filetype: GitHub starsh2non/filetype.py 779

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How filetype is used

  • filetype is a dependency in 3 of the 6,258 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750); counting those, it appears in 363 projects, and what it is used with below comes from all of them.
  • Projects that use it most often also use Pydantic (96.7%), NumPy (96.4%), AnyIO (95.3%).

Often used with

In 96.7% of its projects
In 96.4% of its projects
In 95.3% of its projects
In 95.0% of its projects
In 94.8% of its projects
In 94.5% of its projects
In 93.9% of its projects

More about filetype

More in Files, images and media

Alternatives

filetype This page

MITGid 5811.8M/wk

Compare filetype with another tool

Get started

Install it.

pip install filetype

No step-by-step start for filetype yet: we have not written its hand-checked card.