whatfile
Show detailed metadata for any file — images, audio, video, archives, PDFs, and more.
pip install whatfile
whatfile image.jpg song.mp3 video.mp4
Backends
| Format | Info shown | Required |
|---|---|---|
| JPEG, PNG, GIF, WebP, etc. | dimensions, color mode, format | Pillow (pip) |
| MP3, FLAC, OGG, WAV, etc. | duration, bitrate, tags | tinytag (pip) or ffprobe |
| MP4, MKV, AVI, MOV, etc. | codec, resolution, duration | ffprobe |
| ZIP, TAR, GZ, BZ2, XZ | file count, compression ratio | stdlib |
| pages, version, title, author | pypdf (pip) or pdfinfo | |
| Any file | size, permissions, MIME type | — |
Examples
whatfile photo.jpg
whatfile *.mp3
whatfile document.pdf archive.tar.gz script.py
License
MIT
Metadata
Release files for whatfile 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| whatfile-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for whatfile-1.0.0-py3-none-any.whl |
Release files / whatfile-1.0.0-py3-none-any.whl
| Download URL | whatfile-1.0.0-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
50e40e7c030d9794a364fbab863528d54a25da734418821066a35192cdd25960
|
|
BLAKE2b-256 checksum How to use checksums |
0bf24da39588d392d724186a44cdf75e6061cd563378fee2f1c4c7a86ea4f0f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for whatfile 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.