python-webencodings
===================
This is a Python implementation of the `WHATWG Encoding standard
<http://encoding.spec.whatwg.org/>`_.
* Latest documentation: http://packages.python.org/webencodings/
* Source code and issue tracker:
https://github.com/gsnedders/python-webencodings
* PyPI releases: http://pypi.python.org/pypi/webencodings
* License: BSD
* Python 2.6+ and 3.3+
In order to be compatible with legacy web content
when interpreting something like ``Content-Type: text/html; charset=latin1``,
tools need to use a particular set of aliases for encoding labels
as well as some overriding rules.
For example, ``US-ASCII`` and ``iso-8859-1`` on the web are actually
aliases for ``windows-1252``, and an UTF-8 or UTF-16 BOM takes precedence
over any other encoding declaration.
The Encoding standard defines all such details so that implementations do
not have to reverse-engineer each other.
This module has encoding labels and BOM detection,
but the actual implementation for encoders and decoders is Python’s.
Raw data
{
"_id": null,
"home_page": "https://github.com/SimonSapin/python-webencodings",
"name": "webencodings",
"maintainer": "",
"docs_url": "https://pythonhosted.org/webencodings/",
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Geoffrey Sneddon",
"author_email": "me@gsnedders.com",
"download_url": "https://files.pythonhosted.org/packages/0b/02/ae6ceac1baeda530866a85075641cec12989bd8d31af6d5ab4a3e8c92f47/webencodings-0.5.1.tar.gz",
"platform": "",
"description": "python-webencodings\n===================\n\nThis is a Python implementation of the `WHATWG Encoding standard\n<http://encoding.spec.whatwg.org/>`_.\n\n* Latest documentation: http://packages.python.org/webencodings/\n* Source code and issue tracker:\n https://github.com/gsnedders/python-webencodings\n* PyPI releases: http://pypi.python.org/pypi/webencodings\n* License: BSD\n* Python 2.6+ and 3.3+\n\nIn order to be compatible with legacy web content\nwhen interpreting something like ``Content-Type: text/html; charset=latin1``,\ntools need to use a particular set of aliases for encoding labels\nas well as some overriding rules.\nFor example, ``US-ASCII`` and ``iso-8859-1`` on the web are actually\naliases for ``windows-1252``, and an UTF-8 or UTF-16 BOM takes precedence\nover any other encoding declaration.\nThe Encoding standard defines all such details so that implementations do\nnot have to reverse-engineer each other.\n\nThis module has encoding labels and BOM detection,\nbut the actual implementation for encoders and decoders is Python\u2019s.\n\n\n",
"bugtrack_url": null,
"license": "BSD",
"summary": "Character encoding aliases for legacy web content",
"version": "0.5.1",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "36654e7c7b772611b536014fa9e6e918",
"sha256": "a0af1213f3c2226497a97e2b3aa01a7e4bee4f403f95be16fc9acd2947514a78"
},
"downloads": -1,
"filename": "webencodings-0.5.1-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "36654e7c7b772611b536014fa9e6e918",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 11774,
"upload_time": "2017-04-05T20:21:32",
"upload_time_iso_8601": "2017-04-05T20:21:32.581689Z",
"url": "https://files.pythonhosted.org/packages/f4/24/2a3e3df732393fed8b3ebf2ec078f05546de641fe1b667ee316ec1dcf3b7/webencodings-0.5.1-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"md5": "32f6e261d52e57bf7e1c4d41546d15b8",
"sha256": "b36a1c245f2d304965eb4e0a82848379241dc04b865afcc4aab16748587e1923"
},
"downloads": -1,
"filename": "webencodings-0.5.1.tar.gz",
"has_sig": false,
"md5_digest": "32f6e261d52e57bf7e1c4d41546d15b8",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 9721,
"upload_time": "2017-04-05T20:21:34",
"upload_time_iso_8601": "2017-04-05T20:21:34.189869Z",
"url": "https://files.pythonhosted.org/packages/0b/02/ae6ceac1baeda530866a85075641cec12989bd8d31af6d5ab4a3e8c92f47/webencodings-0.5.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2017-04-05 20:21:34",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "SimonSapin",
"github_project": "python-webencodings",
"travis_ci": true,
"coveralls": true,
"github_actions": false,
"tox": true,
"lcname": "webencodings"
}