======================
``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/
================
Change History
================
5.1 (2023-09-21)
================
- Add some more MIME types and extensions.
5.0 (2023-03-27)
================
- Add support for Python 3.11.
- Drop support for Python 2.7, 3.5, 3.6.
- Drop support for deprecated ``python setup.py test``.
4.6 (2022-09-07)
================
- Add support for Python 3.9, 3.10.
- Drop support for Python 3.4.
4.5.0 (2019-12-19)
==================
- Fix tests on Python 3.8
(`#7 <https://github.com/zopefoundation/zope.contenttype/issues/7>`_).
- Add support for Python 3.8.
4.4 (2018-10-05)
================
- Add support for Python 3.7.
4.3.0 (2017-08-10)
==================
- Add support for Python 3.6.
- Drop support for Python 3.3.
- Host documentation at https://zopecontenttype.readthedocs.io
4.2.0 (2016-08-26)
==================
- Add support for Python 3.5.
- Drop support for Python 2.6.
4.1.0 (2014-12-26)
==================
- Add support for Python 3.4 and PyPy3.
- Add support for testing on Travis.
4.0.1 (2013-02-20)
==================
- Change the file contents argument of ``guess_content_type`` from string
to bytes. This change has no effect on Python 2.
4.0.0 (2013-02-11)
==================
- Add some tests for better coverage.
- Add ``tox.ini`` and manifest.
- Add support for Python 3.3 and PyPy.
- Drop support for Python 2.4 and 2.5.
3.5.5 (2011-07-27)
==================
- Properly restore the HTML snippet detection, by looking at the entire string
and not just its start.
3.5.4 (2011-07-26)
==================
- Restore detection of HTML snippets from 3.4 series.
3.5.3 (2011-03-18)
==================
- Add new mime types for web fonts, cache manifest and new media formats.
3.5.2 (2011-02-11)
==================
- LP #717289: add ``video/x-m4v`` mimetype for the ``.m4v`` extension.
3.5.1 (2010-03-23)
==================
- LP #242321: fix IndexError raised when testing strings consisting
solely of leading whitespace.
3.5.0 (2009-10-22)
==================
- Move the implementation of ``zope.publisher.contenttype`` to
``zope.contenttype.parse``, moved tests along.
3.4.3 (2009-12-28)
==================
- Update mime-type for ``.js`` to be application/javascript.
3.4.2 (2009-05-28)
==================
- Add MS Office 12 types based on:
http://www.therightstuff.de/2006/12/16/Office+2007+File+Icons+For+Windows+SharePoint+Services+20+And+SharePoint+Portal+Server+2003.aspx
3.4.1 (2009-02-04)
==================
- Improve ``text_type()``. Based on the patch from
http://www.zope.org/Collectors/Zope/2355/
- Add missing ``setuptools`` dependency to setup.py.
- Add reference documentation.
3.4.0 (2007-09-13)
==================
- First stable release as an independent package.
Raw data
{
"_id": null,
"home_page": "http://github.com/zopefoundation/zope.contenttype",
"name": "zope.contenttype",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "",
"author": "Zope Foundation and Contributors",
"author_email": "zope-dev@zope.org",
"download_url": "https://files.pythonhosted.org/packages/40/73/2d056480dd7ed2647eafb3cfb1509a076793432bfb20394da9a2df4c6052/zope.contenttype-5.1.tar.gz",
"platform": null,
"description": "======================\n ``zope.contenttype``\n======================\n\n.. image:: https://img.shields.io/pypi/v/zope.contenttype.svg\n :target: https://pypi.python.org/pypi/zope.contenttype/\n :alt: Latest release\n\n.. image:: https://img.shields.io/pypi/pyversions/zope.contenttype.svg\n :target: https://pypi.org/project/zope.contenttype/\n :alt: Supported Python versions\n\n.. image:: https://github.com/zopefoundation/zope.contenttype/actions/workflows/tests.yml/badge.svg\n :target: https://github.com/zopefoundation/zope.contenttype/actions/workflows/tests.yml\n\n.. image:: https://coveralls.io/repos/github/zopefoundation/zope.contenttype/badge.svg?branch=master\n :target: https://coveralls.io/github/zopefoundation/zope.contenttype?branch=master\n\n.. image:: https://readthedocs.org/projects/zopecontenttype/badge/?version=latest\n :target: https://zopecontenttype.readthedocs.io/en/latest/\n :alt: Documentation Status\n\nA utility module for content-type (MIME type) handling.\n\nFunctions include:\n\n- Guessing a content type given a name and (optional) body data.\n- Guessing a content type given some text.\n- Parsing MIME types.\n\nDocumentation is hosted at https://zopecontenttype.readthedocs.io/en/latest/\n\n================\n Change History\n================\n\n5.1 (2023-09-21)\n================\n\n- Add some more MIME types and extensions.\n\n\n5.0 (2023-03-27)\n================\n\n- Add support for Python 3.11.\n\n- Drop support for Python 2.7, 3.5, 3.6.\n\n- Drop support for deprecated ``python setup.py test``.\n\n\n4.6 (2022-09-07)\n================\n\n- Add support for Python 3.9, 3.10.\n\n- Drop support for Python 3.4.\n\n\n4.5.0 (2019-12-19)\n==================\n\n- Fix tests on Python 3.8\n (`#7 <https://github.com/zopefoundation/zope.contenttype/issues/7>`_).\n\n- Add support for Python 3.8.\n\n\n4.4 (2018-10-05)\n================\n\n- Add support for Python 3.7.\n\n\n4.3.0 (2017-08-10)\n==================\n\n- Add support for Python 3.6.\n\n- Drop support for Python 3.3.\n\n- Host documentation at https://zopecontenttype.readthedocs.io\n\n\n4.2.0 (2016-08-26)\n==================\n\n- Add support for Python 3.5.\n\n- Drop support for Python 2.6.\n\n4.1.0 (2014-12-26)\n==================\n\n- Add support for Python 3.4 and PyPy3.\n\n- Add support for testing on Travis.\n\n4.0.1 (2013-02-20)\n==================\n\n- Change the file contents argument of ``guess_content_type`` from string\n to bytes. This change has no effect on Python 2.\n\n4.0.0 (2013-02-11)\n==================\n\n- Add some tests for better coverage.\n\n- Add ``tox.ini`` and manifest.\n\n- Add support for Python 3.3 and PyPy.\n\n- Drop support for Python 2.4 and 2.5.\n\n3.5.5 (2011-07-27)\n==================\n\n- Properly restore the HTML snippet detection, by looking at the entire string\n and not just its start.\n\n3.5.4 (2011-07-26)\n==================\n\n- Restore detection of HTML snippets from 3.4 series.\n\n3.5.3 (2011-03-18)\n==================\n\n- Add new mime types for web fonts, cache manifest and new media formats.\n\n3.5.2 (2011-02-11)\n==================\n\n- LP #717289: add ``video/x-m4v`` mimetype for the ``.m4v`` extension.\n\n3.5.1 (2010-03-23)\n==================\n\n- LP #242321: fix IndexError raised when testing strings consisting\n solely of leading whitespace.\n\n3.5.0 (2009-10-22)\n==================\n\n- Move the implementation of ``zope.publisher.contenttype`` to\n ``zope.contenttype.parse``, moved tests along.\n\n3.4.3 (2009-12-28)\n==================\n\n- Update mime-type for ``.js`` to be application/javascript.\n\n3.4.2 (2009-05-28)\n==================\n\n- Add MS Office 12 types based on:\n http://www.therightstuff.de/2006/12/16/Office+2007+File+Icons+For+Windows+SharePoint+Services+20+And+SharePoint+Portal+Server+2003.aspx\n\n3.4.1 (2009-02-04)\n==================\n\n- Improve ``text_type()``. Based on the patch from\n http://www.zope.org/Collectors/Zope/2355/\n\n- Add missing ``setuptools`` dependency to setup.py.\n\n- Add reference documentation.\n\n3.4.0 (2007-09-13)\n==================\n\n- First stable release as an independent package.\n",
"bugtrack_url": null,
"license": "ZPL 2.1",
"summary": "Zope contenttype",
"version": "5.1",
"project_urls": {
"Homepage": "http://github.com/zopefoundation/zope.contenttype"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "19427b13bcca3fdf4f5970faf4b1be8904716a291e0b61451695615834a1d1dc",
"md5": "130b384dc64c16b1b336b57fbec57a58",
"sha256": "e3d029016cff3ef0a17f03281c3e12006acb14f526cdd185876ddc19945d4581"
},
"downloads": -1,
"filename": "zope.contenttype-5.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "130b384dc64c16b1b336b57fbec57a58",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 14288,
"upload_time": "2023-09-21T06:42:04",
"upload_time_iso_8601": "2023-09-21T06:42:04.141885Z",
"url": "https://files.pythonhosted.org/packages/19/42/7b13bcca3fdf4f5970faf4b1be8904716a291e0b61451695615834a1d1dc/zope.contenttype-5.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "40732d056480dd7ed2647eafb3cfb1509a076793432bfb20394da9a2df4c6052",
"md5": "bbf72eb2753798102878bffd1f9072aa",
"sha256": "0001ef1b65ca650519056dce530c58d0b396957ccf0502323c8a1549db64d317"
},
"downloads": -1,
"filename": "zope.contenttype-5.1.tar.gz",
"has_sig": false,
"md5_digest": "bbf72eb2753798102878bffd1f9072aa",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 20469,
"upload_time": "2023-09-21T06:42:06",
"upload_time_iso_8601": "2023-09-21T06:42:06.405312Z",
"url": "https://files.pythonhosted.org/packages/40/73/2d056480dd7ed2647eafb3cfb1509a076793432bfb20394da9a2df4c6052/zope.contenttype-5.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-09-21 06:42:06",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "zopefoundation",
"github_project": "zope.contenttype",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "zope.contenttype"
}