| 1 |
Metadata-Version: 2.1 |
| 2 |
Name: chardet |
| 3 |
Version: 5.2.0 |
| 4 |
Summary: Universal encoding detector for Python 3 |
| 5 |
Home-page: https://github.com/chardet/chardet |
| 6 |
Author: Mark Pilgrim |
| 7 |
Author-email: [email protected] |
| 8 |
Maintainer: Daniel Blanchard |
| 9 |
Maintainer-email: [email protected] |
| 10 |
License: LGPL |
| 11 |
Project-URL: Documentation, https://chardet.readthedocs.io/ |
| 12 |
Project-URL: GitHub Project, https://github.com/chardet/chardet |
| 13 |
Project-URL: Issue Tracker, https://github.com/chardet/chardet/issues |
| 14 |
Keywords: encoding,i18n,xml |
| 15 |
Classifier: Development Status :: 5 - Production/Stable |
| 16 |
Classifier: Intended Audience :: Developers |
| 17 |
Classifier: License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+) |
| 18 |
Classifier: Operating System :: OS Independent |
| 19 |
Classifier: Programming Language :: Python |
| 20 |
Classifier: Programming Language :: Python :: 3 |
| 21 |
Classifier: Programming Language :: Python :: 3.7 |
| 22 |
Classifier: Programming Language :: Python :: 3.8 |
| 23 |
Classifier: Programming Language :: Python :: 3.9 |
| 24 |
Classifier: Programming Language :: Python :: 3.10 |
| 25 |
Classifier: Programming Language :: Python :: 3.11 |
| 26 |
Classifier: Programming Language :: Python :: Implementation :: CPython |
| 27 |
Classifier: Programming Language :: Python :: Implementation :: PyPy |
| 28 |
Classifier: Topic :: Software Development :: Libraries :: Python Modules |
| 29 |
Classifier: Topic :: Text Processing :: Linguistic |
| 30 |
Requires-Python: >=3.7 |
| 31 |
License-File: LICENSE |
| 32 |
|
| 33 |
Chardet: The Universal Character Encoding Detector |
| 34 |
-------------------------------------------------- |
| 35 |
|
| 36 |
.. image:: https://img.shields.io/travis/chardet/chardet/stable.svg |
| 37 |
:alt: Build status |
| 38 |
:target: https://travis-ci.org/chardet/chardet |
| 39 |
|
| 40 |
.. image:: https://img.shields.io/coveralls/chardet/chardet/stable.svg |
| 41 |
:target: https://coveralls.io/r/chardet/chardet |
| 42 |
|
| 43 |
.. image:: https://img.shields.io/pypi/v/chardet.svg |
| 44 |
:target: https://warehouse.python.org/project/chardet/ |
| 45 |
:alt: Latest version on PyPI |
| 46 |
|
| 47 |
.. image:: https://img.shields.io/pypi/l/chardet.svg |
| 48 |
:alt: License |
| 49 |
|
| 50 |
|
| 51 |
Detects |
| 52 |
- ASCII, UTF-8, UTF-16 (2 variants), UTF-32 (4 variants) |
| 53 |
- Big5, GB2312, EUC-TW, HZ-GB-2312, ISO-2022-CN (Traditional and Simplified Chinese) |
| 54 |
- EUC-JP, SHIFT_JIS, CP932, ISO-2022-JP (Japanese) |
| 55 |
- EUC-KR, ISO-2022-KR, Johab (Korean) |
| 56 |
- KOI8-R, MacCyrillic, IBM855, IBM866, ISO-8859-5, windows-1251 (Cyrillic) |
| 57 |
- ISO-8859-5, windows-1251 (Bulgarian) |
| 58 |
- ISO-8859-1, windows-1252, MacRoman (Western European languages) |
| 59 |
- ISO-8859-7, windows-1253 (Greek) |
| 60 |
- ISO-8859-8, windows-1255 (Visual and Logical Hebrew) |
| 61 |
- TIS-620 (Thai) |
| 62 |
|
| 63 |
.. note:: |
| 64 |
Our ISO-8859-2 and windows-1250 (Hungarian) probers have been temporarily |
| 65 |
disabled until we can retrain the models. |
| 66 |
|
| 67 |
Requires Python 3.7+. |
| 68 |
|
| 69 |
Installation |
| 70 |
------------ |
| 71 |
|
| 72 |
Install from `PyPI <https://pypi.org/project/chardet/>`_:: |
| 73 |
|
| 74 |
pip install chardet |
| 75 |
|
| 76 |
Documentation |
| 77 |
------------- |
| 78 |
|
| 79 |
For users, docs are now available at https://chardet.readthedocs.io/. |
| 80 |
|
| 81 |
Command-line Tool |
| 82 |
----------------- |
| 83 |
|
| 84 |
chardet comes with a command-line script which reports on the encodings of one |
| 85 |
or more files:: |
| 86 |
|
| 87 |
% chardetect somefile someotherfile |
| 88 |
somefile: windows-1252 with confidence 0.5 |
| 89 |
someotherfile: ascii with confidence 1.0 |
| 90 |
|
| 91 |
About |
| 92 |
----- |
| 93 |
|
| 94 |
This is a continuation of Mark Pilgrim's excellent original chardet port from C, and `Ian Cordasco <https://github.com/sigmavirus24>`_'s |
| 95 |
`charade <https://github.com/sigmavirus24/charade>`_ Python 3-compatible fork. |
| 96 |
|
| 97 |
:maintainer: Dan Blanchard |