Skip to main content

Zope contenttype

Project description

zope.contenttype

Latest release Supported Python versions https://travis-ci.org/zopefoundation/zope.contenttype.svg?branch=master 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

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-4.5.0.tar.gz (22.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zope.contenttype-4.5.0-py2.py3-none-any.whl (14.2 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: zope.contenttype-4.5.0.tar.gz
  • Upload date:
  • Size: 22.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.8.0

File hashes

Hashes for zope.contenttype-4.5.0.tar.gz
Algorithm Hash digest
SHA256 c12d929c67ab3eaef9b8a7fba3d19cce8500c8fd25afed8058c8e15f324cbd5b
MD5 62cdb86083c6c94d4c1622165b1297a7
BLAKE2b-256 93b0e798ee7f6ad27519f6dc8f0e479552b559e2ad70e8ca4c40cacbd0388ecb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zope.contenttype-4.5.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.8.0

File hashes

Hashes for zope.contenttype-4.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3bfe9012f61474d8612a72604d21d83b48f50cf4d18db08eab836e8d08737076
MD5 fd0a29b518dbde951513ba3d2a50810c
BLAKE2b-256 4d6af9446830eb7f249823a8d23105db60d6648bf388423f1dcb9be94562f5b4

See more details on using hashes here.

Supported by

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