zope.contenttype
Zope contenttype
Decision gist · record as of 2026-08-14
Yes, if you need MIME type detection with minimal overhead. The package is stable, has no known vulnerabilities, and installs with low friction. The unclear license treatment requires verification before use in proprietary or GPL-licensed projects. The aging maintenance status is not a blocker for a mature utility.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction install with a single setuptools dependency.
- Marked as aging (336 days since last release), but repo shows recent activity with last commit on 2026-02-03.
License · maintenance · safety
ZPL-2.1 (unclear) — Licensed under ZPL-2.1, marked as unclear in treatment. Verify compatibility with your project's license requirements before use.
last release 2025-09-12 (336 days) · last repo commit 2026-02-03 · 1 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 172,811 downloads/mo, #10,323 on PyPI
Alternatives
Verify before relying
pip install zope.contenttype
from zope.contenttype import guess_content_type
guess_content_type(name='document.pdf')- Whether ZPL-2.1 is compatible with your project's licensing constraints
- Whether the aging maintenance status affects your production use case
What it is and what it does
zope.contenttype is a lightweight utility for working with MIME types in Python applications. It provides functions to guess content types from filenames with optional body data inspection, detect text content types from raw text, and parse MIME type strings into their components. The package wraps and extends Python's standard mimetypes module with additional MIME type mappings and convenience functions.
The package has minimal dependencies—only setuptools—making it easy to integrate into existing projects. It supports Python 3.9, 3.10, 3.11, 3.12, and 3.13 on both CPython and PyPy. The codebase is stable and production-ready, though releases are infrequent; it is typically used as a dependency in larger Zope ecosystem projects rather than as a standalone tool.
Use it for
- Determine the MIME type of uploaded files before processing or storage in a web application
- Detect whether raw data is HTML, XML, or plain text for content routing decisions
- Parse and validate MIME type strings in HTTP headers or configuration files
- Extend file type detection beyond the standard library with additional MIME mappings
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need MIME type detection with minimal overhead.
The package is stable, has no known vulnerabilities, and installs with low friction. The unclear license treatment requires verification before use in proprietary or GPL-licensed projects. The aging maintenance status is not a blocker for a mature utility.
Install
zope-contenttype on PyPI
Before you install
Low friction install with a single setuptools dependency. Marked as aging (336 days since last release), but repo shows recent activity with last commit on 2026-02-03.
License in practice
Licensed under ZPL-2.1, marked as unclear in treatment. Verify compatibility with your project's license requirements before use.
Quickstart
pip install zope.contenttype
from zope.contenttype import guess_content_type
guess_content_type(name='document.pdf')
Verify before relying
- Whether ZPL-2.1 is compatible with your project's licensing constraints
- Whether the aging maintenance status affects your production use case
Package facts
| License | ZPL-2.1 unclear |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagesetuptools |
| Maintenance | Aging 336 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 172,811 / month, #10,323 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Zope Public LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Internet :: WWW/HTTPTopic :: Software Development |
Evidence: zope_contenttype-6.0-py3-none-any.whl
Tags
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 › “mime type detection”
- zope.contenttypeGuesses MIME types from filenames and body data, parses MIME type…
- typecodeDetects file types and MIME types using libmagic and Pygments, with…
- cigamDetects and reports file types, MIME types, and extensions by…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also zope.datetime · mediatype · python-mimeparse · zope.publisher · zope.viewlet · zope.exceptions · zope.filerepresentation · zope.contentprovider · zope.structuredtext · zope.configuration