$npx skillfedfor your agent

standard-imghdr

Standard library imghdr redistribution. "dead battery".

With conditionsPyPI LibrariesReleased Oct 2024987.7K downloads / moPSF-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — standard_imghdr-3.13.0-py3-none-any.whl
v3.13.0 · released 2024-10-30

Yes, if you have existing code that depends on `imghdr` and need to run it on Python 3.13+. Install it as a drop-in replacement for the removed standard library module. No, if you are starting a new project—consider a more actively maintained image library instead. The package itself is stable (it is a static archive of removed code) but receives no active development.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low install friction with no runtime dependencies.
  • Maintenance is dormant (last release 653 days ago), but the package is archived only as a redistribution of removed standard library code, so inactivity is expected and not a signal of neglect.

License · maintenance · safety

PSF-2.0 (permissive) — Licensed under PSF-2.0 (Python Software Foundation License), a permissive license. You can use this package freely in most contexts without license concerns.

last release 2024-10-30 (653 days) · last repo commit 2025-01-27 · 37 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 987,665 downloads/mo, #4,571 on PyPI

Verify before relying

pip install standard-imghdr

import imghdr

image_type = imghdr.what('image.png')
print(image_type)  # Returns 'png' or None if not recognized
  • Whether the redistributed imghdr module maintains full compatibility with the original standard library implementation across all supported Python versions.
  • Whether this package will receive updates if Python's removal of imghdr introduces breaking changes in future versions.
Same gist for agents: .md · .json

What it is and what it does

This package redistributes the `imghdr` module, which was removed from Python's standard library in version 3.13 as part of PEP 594's "dead batteries" initiative. The module provides a simple utility to determine image file types by reading and analyzing their file headers, returning a string identifier like 'png', 'jpeg', 'gif', or None if the format is not recognized.

It is intended for projects that depend on the original `imghdr` module and need to maintain compatibility with Python 3.13 and later. The package contains minimal compatibility support only—it is an archive of the removed standard library code made installable via pip, not an actively developed alternative. If you need advanced image format detection or additional features, you should consider other actively maintained packages.

Use it for

  • Migrate legacy code that uses `imghdr` to Python 3.13+ without rewriting image type detection logic.
  • Quickly identify image file formats in batch processing or validation workflows where only basic format detection is needed.
  • Maintain backward compatibility in libraries that expose `imghdr` as part of their public API.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you have existing code that depends on `imghdr` and need to run it on Python 3.13+.

Install it as a drop-in replacement for the removed standard library module. No, if you are starting a new project—consider a more actively maintained image library instead. The package itself is stable (it is a static archive of removed code) but receives no active development.

Install

standard-imghdr on PyPI

Before you install

Low install friction with no runtime dependencies. Maintenance is dormant (last release 653 days ago), but the package is archived only as a redistribution of removed standard library code, so inactivity is expected and not a signal of neglect.

License in practice

Licensed under PSF-2.0 (Python Software Foundation License), a permissive license. You can use this package freely in most contexts without license concerns.

Quickstart

pip install standard-imghdr

import imghdr

image_type = imghdr.what('image.png')
print(image_type)  # Returns 'png' or None if not recognized

Verify before relying

  • Whether the redistributed imghdr module maintains full compatibility with the original standard library implementation across all supported Python versions.
  • Whether this package will receive updates if Python's removal of imghdr introduces breaking changes in future versions.

Package facts

LicensePSF-2.0 permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceDormant 653 days since the last release
Last repo commit
First released
Downloads987,665 / month, #4,571 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: Python Software Foundation LicenseProgramming Language :: Python :: 3Topic :: Software Development :: Libraries

Evidence: standard_imghdr-3.13.0-py3-none-any.whl

Tags

Capabilities
image file type detectionimghdr standard libraryremoved stdlib modulesimage format identificationpython dead batteriesidentify image headers
Topics
stdlib-redistributionimage-detection
PyPI keywords
stdlib

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “image file type detection”

  • standard-imghdrProvides the `imghdr` module, a Python standard library utility…
  • crewai-filesProvides file type abstractions for CrewAI multimodal inputs,…
  • filetypeInfers file type and MIME type by examining magic number signatures…

Give your agent the search over MCP, or paste the wish link into any chat.

More Libraries packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
python-dateutil Worth it
PyPI · Libraries · released Mar 2024

Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.

Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.

Apache-2.0pure Python
1.2Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo

See also standard-distutils · standard-sunau · standard-telnetlib · standard-chunk · standard-aifc · legacy-cgi · flake8-eradicate · sgmllib3k · eradicate · none