https://github.com/zopefoundation/zope.contenttype
Utility module for handling MIMEtypes, particularly the 'Content-Type' HTTP header
https://github.com/zopefoundation/zope.contenttype
maintained
Last synced: 8 months ago
JSON representation
Utility module for handling MIMEtypes, particularly the 'Content-Type' HTTP header
- Host: GitHub
- URL: https://github.com/zopefoundation/zope.contenttype
- Owner: zopefoundation
- License: other
- Created: 2013-02-19T18:39:07.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2025-09-12T07:02:36.000Z (9 months ago)
- Last Synced: 2025-09-12T08:35:17.142Z (9 months ago)
- Topics: maintained
- Language: Python
- Homepage:
- Size: 249 KB
- Stars: 1
- Watchers: 66
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
- Copyright: COPYRIGHT.txt
Awesome Lists containing this project
README
======================
``zope.contenttype``
======================
.. image:: https://img.shields.io/pypi/v/zope.contenttype.svg
:target: https://pypi.python.org/pypi/zope.contenttype/
:alt: Latest release
.. image:: https://img.shields.io/pypi/pyversions/zope.contenttype.svg
:target: https://pypi.org/project/zope.contenttype/
:alt: Supported Python versions
.. image:: https://github.com/zopefoundation/zope.contenttype/actions/workflows/tests.yml/badge.svg
:target: https://github.com/zopefoundation/zope.contenttype/actions/workflows/tests.yml
.. image:: https://coveralls.io/repos/github/zopefoundation/zope.contenttype/badge.svg?branch=master
:target: https://coveralls.io/github/zopefoundation/zope.contenttype?branch=master
.. image:: https://readthedocs.org/projects/zopecontenttype/badge/?version=latest
:target: https://zopecontenttype.readthedocs.io/en/latest/
:alt: Documentation Status
A utility module for content-type (MIME type) handling.
Functions include:
- Guessing a content type given a name and (optional) body data.
- Guessing a content type given some text.
- Parsing MIME types.
Documentation is hosted at https://zopecontenttype.readthedocs.io/en/latest/