Skip to main content

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
PDF 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)

Table of built distributions (wheels) for whatfile 1.0.0
File Interpreter ABI Platform
whatfile-1.0.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page