Skip to main content

Zope contenttype

Project description

zope.contenttype

Latest release Supported Python versions https://github.com/zopefoundation/zope.contenttype/actions/workflows/tests.yml/badge.svg https://coveralls.io/repos/github/zopefoundation/zope.contenttype/badge.svg?branch=master 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).

  • Add support for Python 3.8.

4.4 (2018-10-05)

  • Add support for Python 3.7.

4.3.0 (2017-08-10)

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)

3.4.1 (2009-02-04)

3.4.0 (2007-09-13)

  • First stable release as an independent package.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zope.contenttype-5.1.tar.gz (20.5 kB view details)

Uploaded Source

Built Distribution

zope.contenttype-5.1-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file zope.contenttype-5.1.tar.gz.

File metadata

  • Download URL: zope.contenttype-5.1.tar.gz
  • Upload date:
  • Size: 20.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for zope.contenttype-5.1.tar.gz
Algorithm Hash digest
SHA256 0001ef1b65ca650519056dce530c58d0b396957ccf0502323c8a1549db64d317
MD5 bbf72eb2753798102878bffd1f9072aa
BLAKE2b-256 40732d056480dd7ed2647eafb3cfb1509a076793432bfb20394da9a2df4c6052

See more details on using hashes here.

File details

Details for the file zope.contenttype-5.1-py3-none-any.whl.

File metadata

File hashes

Hashes for zope.contenttype-5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e3d029016cff3ef0a17f03281c3e12006acb14f526cdd185876ddc19945d4581
MD5 130b384dc64c16b1b336b57fbec57a58
BLAKE2b-256 19427b13bcca3fdf4f5970faf4b1be8904716a291e0b61451695615834a1d1dc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page