Skip to main content

A simple package for working with MIME content types

Project description

zope.mimetype

Latest release Supported Python versions https://travis-ci.org/zopefoundation/zope.mimetype.svg?branch=master https://coveralls.io/repos/github/zopefoundation/zope.mimetype/badge.svg?branch=master Documentation Status

This package provides a way to work with MIME content types. There are several interfaces defined here, many of which are used primarily to look things up based on different bits of information.

See complete documentation at https://zopemimetype.readthedocs.io/en/latest/

Changes

2.3.2 (2018-07-30)

  • Documentation was moved to https://zopemimetype.readthedocs.io

  • Fix an AttributeError accessing the preferredCharset of an ICodecTerm when no ICodecPreferredCharset was registered.

  • Reach and automatically require 100% test coverage.

2.3.1 (2018-01-09)

  • Only try to register the browser stuff in the ZCA when zope.formlib is available as it breaks otherwise.

2.3.0 (2017-09-28)

  • Drop support for Python 3.3.

  • Move the dependencies on zope.browser, zope.publisher and zope.formlib (only needed to use the source and widget modules) into a new browser extra. See PR 8.

2.2.0 (2017-04-24)

  • Fix issue 6: typegetter.smartMimeTypeGuesser would raise TypeError on Python 3 when the data was bytes and the content_type was text/html.

  • Add support for Python 3.6.

2.1.0 (2016-08-09)

  • Add support for Python 3.5.

  • Drop support for Python 2.6.

  • Fix configuring the package via its included ZCML on Python 3.

2.0.0 (2014-12-24)

  • Add support for PyPy and PyPy3.

  • Add support for Python 3.4.

  • Restore the ability to write from zope.mimetype import types.

  • Make configure.zcml respect the renaming of the types module so that it can be loaded.

2.0.0a1 (2013-02-27)

  • Add support for Python 3.3.

  • Replace deprecated zope.component.adapts usage with equivalent zope.component.adapter decorator.

  • Replace deprecated zope.interface.implements usage with equivalent zope.interface.implementer decorator.

  • Rename zope.mimetype.types to zope.mimetype.mtypes.

  • Drop support for Python 2.4 and 2.5.

1.3.1 (2010-11-10)

  • No longer dependg on zope.app.form in configure.zcml by using zope.formlib instead, where the needed interfaces are living now.

1.3.0 (2010-06-26)

  • Add testing dependency on zope.component[test].

  • Use zope.formlib instead of zope.app.form.browser for select widget.

  • Conform to repository policy.

1.2.0 (2009-12-26)

  • Convert functional tests to unit tests and get rid of all extra test dependencies as a result.

  • Use the ITerms interface from zope.browser.

  • Declare missing dependencies, resolved direct dependency on zope.app.publisher.

  • Import content-type parser from zope.contenttype, adding a dependency on that package.

1.1.2 (2009-05-22)

  • No longer depend on zope.app.component.

1.1.1 (2009-04-03)

  • Fix wrong package version (version 1.1.0 was released as 0.4.0 at pypi but as 1.1dev at download.zope.org/distribution)

  • Fix author email and home page address.

1.1.0 (2007-11-01)

  • Package data update.

  • First public release.

1.0.0 (2007-??-??)

  • Initial release.

Download files

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

Source Distribution

zope.mimetype-2.3.2.tar.gz (58.7 kB view details)

Uploaded Source

Built Distribution

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

zope.mimetype-2.3.2-py2.py3-none-any.whl (68.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file zope.mimetype-2.3.2.tar.gz.

File metadata

  • Download URL: zope.mimetype-2.3.2.tar.gz
  • Upload date:
  • Size: 58.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.15

File hashes

Hashes for zope.mimetype-2.3.2.tar.gz
Algorithm Hash digest
SHA256 cd2ba18c9fc09163f5e9087013a7cd924d11b9a35416b1d0314f7cc28830267b
MD5 600259ab38d61f9de97c770428a3365b
BLAKE2b-256 bafc082ee11ba17e91256a66b4e0061ebdd346540b6f5c890f7e627128cb578d

See more details on using hashes here.

File details

Details for the file zope.mimetype-2.3.2-py2.py3-none-any.whl.

File metadata

  • Download URL: zope.mimetype-2.3.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 68.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.15

File hashes

Hashes for zope.mimetype-2.3.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ac3a2694b195fa4e2fa2819d9a0fb1446f0071d25055fae1a30c17c2fd30e68c
MD5 5804b0516f86ff177e72e5d66e5cc258
BLAKE2b-256 8cb424f1201cd08190a84b1a2599fd85b7dbf92b3a19641f3da81f9f906d7179

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