zope.mimetype


Namezope.mimetype JSON
Version 3.1 PyPI version JSON
download
home_pagehttps://github.com/zopefoundation/zope.mimetype
SummaryA simple package for working with MIME content types
upload_time2024-02-08 11:05:14
maintainer
docs_urlNone
authorZope Foundation and Contributors
requires_python>=3.7
licenseZPL 2.1
keywords file content mimetype
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            zope.mimetype
=============

.. image:: https://img.shields.io/pypi/v/zope.mimetype.svg
        :target: https://pypi.python.org/pypi/zope.mimetype/
        :alt: Latest release

.. image:: https://img.shields.io/pypi/pyversions/zope.mimetype.svg
        :target: https://pypi.org/project/zope.mimetype/
        :alt: Supported Python versions

.. image:: https://github.com/zopefoundation/zope.mimetype/actions/workflows/tests.yml/badge.svg
        :target: https://github.com/zopefoundation/zope.mimetype/actions/workflows/tests.yml

.. image:: https://coveralls.io/repos/github/zopefoundation/zope.mimetype/badge.svg?branch=master
        :target: https://coveralls.io/github/zopefoundation/zope.mimetype?branch=master

.. image:: https://readthedocs.org/projects/zopemimetype/badge/?version=latest
        :target: https://zopemimetype.readthedocs.io/en/latest/
        :alt: 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
=========

3.1 (2024-02-08)
================

- Add support for Python 3.12.


3.0 (2023-02-27)
================

- Add support for Python 3.9, 3.10, 3.11.

- Drop support for Python 2.7, 3.5, 3.6.

- Drop support for deprecated ``python setup.py test``.


2.5.1 (2021-04-15)
==================

- Fix test compatibility with zope.interface 5.4.


2.5.0 (2020-03-30)
==================

- Add support for Python 3.8.

- Drop support for Python 3.4.

- Ensure all objects have consistent interface resolution orders. See
  `issue 17 <https://github.com/zopefoundation/zope.mimetype/issues/17>`_.


2.4.0 (2018-10-16)
==================

- Add support for Python 3.7.

- Fix DeprecationWarnings for ``IObjectEvent`` and ``ObjectEvent`` by
  importing them from ``zope.interface.interfaces``. See `issue 14
  <https://github.com/zopefoundation/zope.mimetype/issues/14>`_.


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 <https://github.com/zopefoundation/zope.mimetype/pull/8>`_.

2.2.0 (2017-04-24)
==================

- Fix `issue 6 <https://github.com/zopefoundation/zope.mimetype/issues/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.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/zopefoundation/zope.mimetype",
    "name": "zope.mimetype",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "file content mimetype",
    "author": "Zope Foundation and Contributors",
    "author_email": "zope-dev@zope.dev",
    "download_url": "https://files.pythonhosted.org/packages/c5/18/feb9bf3b302001055c5d0748f2426f60734df819e5400edb4b8ed018d3bb/zope.mimetype-3.1.tar.gz",
    "platform": null,
    "description": "zope.mimetype\n=============\n\n.. image:: https://img.shields.io/pypi/v/zope.mimetype.svg\n        :target: https://pypi.python.org/pypi/zope.mimetype/\n        :alt: Latest release\n\n.. image:: https://img.shields.io/pypi/pyversions/zope.mimetype.svg\n        :target: https://pypi.org/project/zope.mimetype/\n        :alt: Supported Python versions\n\n.. image:: https://github.com/zopefoundation/zope.mimetype/actions/workflows/tests.yml/badge.svg\n        :target: https://github.com/zopefoundation/zope.mimetype/actions/workflows/tests.yml\n\n.. image:: https://coveralls.io/repos/github/zopefoundation/zope.mimetype/badge.svg?branch=master\n        :target: https://coveralls.io/github/zopefoundation/zope.mimetype?branch=master\n\n.. image:: https://readthedocs.org/projects/zopemimetype/badge/?version=latest\n        :target: https://zopemimetype.readthedocs.io/en/latest/\n        :alt: Documentation Status\n\nThis package provides a way to work with MIME content types.  There\nare several interfaces defined here, many of which are used primarily\nto look things up based on different bits of information.\n\nSee complete documentation at https://zopemimetype.readthedocs.io/en/latest/\n\n\n=========\n Changes\n=========\n\n3.1 (2024-02-08)\n================\n\n- Add support for Python 3.12.\n\n\n3.0 (2023-02-27)\n================\n\n- Add support for Python 3.9, 3.10, 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\n2.5.1 (2021-04-15)\n==================\n\n- Fix test compatibility with zope.interface 5.4.\n\n\n2.5.0 (2020-03-30)\n==================\n\n- Add support for Python 3.8.\n\n- Drop support for Python 3.4.\n\n- Ensure all objects have consistent interface resolution orders. See\n  `issue 17 <https://github.com/zopefoundation/zope.mimetype/issues/17>`_.\n\n\n2.4.0 (2018-10-16)\n==================\n\n- Add support for Python 3.7.\n\n- Fix DeprecationWarnings for ``IObjectEvent`` and ``ObjectEvent`` by\n  importing them from ``zope.interface.interfaces``. See `issue 14\n  <https://github.com/zopefoundation/zope.mimetype/issues/14>`_.\n\n\n2.3.2 (2018-07-30)\n==================\n\n- Documentation was moved to https://zopemimetype.readthedocs.io\n\n- Fix an AttributeError accessing the ``preferredCharset`` of an\n  ``ICodecTerm`` when no ``ICodecPreferredCharset`` was registered.\n\n- Reach and automatically require 100% test coverage.\n\n2.3.1 (2018-01-09)\n==================\n\n- Only try to register the browser stuff in the ZCA when `zope.formlib` is\n  available as it breaks otherwise.\n\n\n2.3.0 (2017-09-28)\n==================\n\n- Drop support for Python 3.3.\n\n- Move the dependencies on ``zope.browser``, ``zope.publisher`` and\n  ``zope.formlib`` (only needed to use the ``source`` and ``widget``\n  modules) into a new ``browser`` extra.\n  See `PR 8 <https://github.com/zopefoundation/zope.mimetype/pull/8>`_.\n\n2.2.0 (2017-04-24)\n==================\n\n- Fix `issue 6 <https://github.com/zopefoundation/zope.mimetype/issues/6>`_:\n  ``typegetter.smartMimeTypeGuesser`` would raise ``TypeError`` on Python 3\n  when the data was ``bytes`` and the ``content_type`` was ``text/html``.\n\n- Add support for Python 3.6.\n\n\n2.1.0 (2016-08-09)\n==================\n\n- Add support for Python 3.5.\n\n- Drop support for Python 2.6.\n\n- Fix configuring the package via its included ZCML on Python 3.\n\n2.0.0 (2014-12-24)\n==================\n\n- Add support for PyPy and PyPy3.\n\n- Add support for Python 3.4.\n\n- Restore the ability to write ``from zope.mimetype import types``.\n\n- Make ``configure.zcml`` respect the renaming of the ``types`` module\n  so that it can be loaded.\n\n\n2.0.0a1 (2013-02-27)\n====================\n\n- Add support for Python 3.3.\n\n- Replace deprecated ``zope.component.adapts`` usage with equivalent\n  ``zope.component.adapter`` decorator.\n\n- Replace deprecated ``zope.interface.implements`` usage with equivalent\n  ``zope.interface.implementer`` decorator.\n\n- Rename ``zope.mimetype.types`` to ``zope.mimetype.mtypes``.\n\n- Drop support for Python 2.4 and 2.5.\n\n\n1.3.1 (2010-11-10)\n==================\n\n- No longer dependg on ``zope.app.form`` in ``configure.zcml`` by using\n  ``zope.formlib`` instead, where the needed interfaces are living now.\n\n1.3.0 (2010-06-26)\n==================\n\n- Add testing dependency on ``zope.component[test]``.\n\n- Use zope.formlib instead of zope.app.form.browser for select widget.\n\n- Conform to repository policy.\n\n1.2.0 (2009-12-26)\n==================\n\n- Convert functional tests to unit tests and get rid of all extra test\n  dependencies as a result.\n\n- Use the ITerms interface from zope.browser.\n\n- Declare missing dependencies, resolved direct dependency on\n  zope.app.publisher.\n\n- Import content-type parser from ``zope.contenttype``, adding a dependency on\n  that package.\n\n1.1.2 (2009-05-22)\n==================\n\n- No longer depend on ``zope.app.component``.\n\n1.1.1 (2009-04-03)\n==================\n\n- Fix wrong package version (version ``1.1.0`` was released as ``0.4.0`` at\n  `pypi` but as ``1.1dev`` at `download.zope.org/distribution`)\n\n- Fix author email and home page address.\n\n1.1.0 (2007-11-01)\n==================\n\n- Package data update.\n\n- First public release.\n\n1.0.0 (2007-??-??)\n==================\n\n- Initial release.\n",
    "bugtrack_url": null,
    "license": "ZPL 2.1",
    "summary": "A simple package for working with MIME content types",
    "version": "3.1",
    "project_urls": {
        "Homepage": "https://github.com/zopefoundation/zope.mimetype"
    },
    "split_keywords": [
        "file",
        "content",
        "mimetype"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c08df9a25bc6788affe154a1844655cc859c16590daa8f29f91fa388e68b96aa",
                "md5": "bb2caf921bcc16e0d54cf5fd44935df5",
                "sha256": "dc64e94391bb8ae31b02a9435dca51ed17c448e008467aad7e1833f2aa4a4f79"
            },
            "downloads": -1,
            "filename": "zope.mimetype-3.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bb2caf921bcc16e0d54cf5fd44935df5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 68636,
            "upload_time": "2024-02-08T11:05:12",
            "upload_time_iso_8601": "2024-02-08T11:05:12.234115Z",
            "url": "https://files.pythonhosted.org/packages/c0/8d/f9a25bc6788affe154a1844655cc859c16590daa8f29f91fa388e68b96aa/zope.mimetype-3.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c518feb9bf3b302001055c5d0748f2426f60734df819e5400edb4b8ed018d3bb",
                "md5": "0803156eeaa92c5174db5912f3a40929",
                "sha256": "964c589676ec5367801b573156372da520cb4779f8c0cf14419221557da63b27"
            },
            "downloads": -1,
            "filename": "zope.mimetype-3.1.tar.gz",
            "has_sig": false,
            "md5_digest": "0803156eeaa92c5174db5912f3a40929",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 59598,
            "upload_time": "2024-02-08T11:05:14",
            "upload_time_iso_8601": "2024-02-08T11:05:14.404915Z",
            "url": "https://files.pythonhosted.org/packages/c5/18/feb9bf3b302001055c5d0748f2426f60734df819e5400edb4b8ed018d3bb/zope.mimetype-3.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-08 11:05:14",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "zopefoundation",
    "github_project": "zope.mimetype",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "zope.mimetype"
}
        
Elapsed time: 0.17144s