This commit is contained in:
qianlifeng
2015-01-13 09:47:56 +08:00
parent acfad7ec5b
commit 3ad2b2bfcc
56 changed files with 7807 additions and 0 deletions

View File

@@ -0,0 +1,70 @@
Metadata-Version: 1.1
Name: chardet
Version: 2.3.0
Summary: Universal encoding detector for Python 2 and 3
Home-page: https://github.com/chardet/chardet
Author: Ian Cordasco
Author-email: graffatcolmingov@gmail.com
License: LGPL
Description: Chardet: The Universal Character Encoding Detector
--------------------------------------------------
Detects
- ASCII, UTF-8, UTF-16 (2 variants), UTF-32 (4 variants)
- Big5, GB2312, EUC-TW, HZ-GB-2312, ISO-2022-CN (Traditional and Simplified Chinese)
- EUC-JP, SHIFT_JIS, CP932, ISO-2022-JP (Japanese)
- EUC-KR, ISO-2022-KR (Korean)
- KOI8-R, MacCyrillic, IBM855, IBM866, ISO-8859-5, windows-1251 (Cyrillic)
- ISO-8859-2, windows-1250 (Hungarian)
- ISO-8859-5, windows-1251 (Bulgarian)
- windows-1252 (English)
- ISO-8859-7, windows-1253 (Greek)
- ISO-8859-8, windows-1255 (Visual and Logical Hebrew)
- TIS-620 (Thai)
Requires Python 2.6 or later
Installation
------------
Install from `PyPI <https://pypi.python.org/pypi/chardet>`_::
pip install chardet
Command-line Tool
-----------------
chardet comes with a command-line script which reports on the encodings of one
or more files::
% chardetect somefile someotherfile
somefile: windows-1252 with confidence 0.5
someotherfile: ascii with confidence 1.0
About
-----
This is a continuation of Mark Pilgrim's excellent chardet. Previously, two
versions needed to be maintained: one that supported python 2.x and one that
supported python 3.x. We've recently merged with `Ian Cordasco <https://github.com/sigmavirus24>`_'s
`charade <https://github.com/sigmavirus24/charade>`_ fork, so now we have one
coherent version that works for Python 2.6+.
:maintainer: Dan Blanchard
Keywords: encoding,i18n,xml
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Text Processing :: Linguistic

View File

@@ -0,0 +1,48 @@
LICENSE
MANIFEST.in
README.rst
setup.cfg
setup.py
chardet/__init__.py
chardet/big5freq.py
chardet/big5prober.py
chardet/chardetect.py
chardet/chardistribution.py
chardet/charsetgroupprober.py
chardet/charsetprober.py
chardet/codingstatemachine.py
chardet/compat.py
chardet/constants.py
chardet/cp949prober.py
chardet/escprober.py
chardet/escsm.py
chardet/eucjpprober.py
chardet/euckrfreq.py
chardet/euckrprober.py
chardet/euctwfreq.py
chardet/euctwprober.py
chardet/gb2312freq.py
chardet/gb2312prober.py
chardet/hebrewprober.py
chardet/jisfreq.py
chardet/jpcntx.py
chardet/langbulgarianmodel.py
chardet/langcyrillicmodel.py
chardet/langgreekmodel.py
chardet/langhebrewmodel.py
chardet/langhungarianmodel.py
chardet/langthaimodel.py
chardet/latin1prober.py
chardet/mbcharsetprober.py
chardet/mbcsgroupprober.py
chardet/mbcssm.py
chardet/sbcharsetprober.py
chardet/sbcsgroupprober.py
chardet/sjisprober.py
chardet/universaldetector.py
chardet/utf8prober.py
chardet.egg-info/PKG-INFO
chardet.egg-info/SOURCES.txt
chardet.egg-info/dependency_links.txt
chardet.egg-info/entry_points.txt
chardet.egg-info/top_level.txt

View File

@@ -0,0 +1,3 @@
[console_scripts]
chardetect = chardet.chardetect:main

View File

@@ -0,0 +1,85 @@
..\chardet\big5freq.py
..\chardet\big5prober.py
..\chardet\chardetect.py
..\chardet\chardistribution.py
..\chardet\charsetgroupprober.py
..\chardet\charsetprober.py
..\chardet\codingstatemachine.py
..\chardet\compat.py
..\chardet\constants.py
..\chardet\cp949prober.py
..\chardet\escprober.py
..\chardet\escsm.py
..\chardet\eucjpprober.py
..\chardet\euckrfreq.py
..\chardet\euckrprober.py
..\chardet\euctwfreq.py
..\chardet\euctwprober.py
..\chardet\gb2312freq.py
..\chardet\gb2312prober.py
..\chardet\hebrewprober.py
..\chardet\jisfreq.py
..\chardet\jpcntx.py
..\chardet\langbulgarianmodel.py
..\chardet\langcyrillicmodel.py
..\chardet\langgreekmodel.py
..\chardet\langhebrewmodel.py
..\chardet\langhungarianmodel.py
..\chardet\langthaimodel.py
..\chardet\latin1prober.py
..\chardet\mbcharsetprober.py
..\chardet\mbcsgroupprober.py
..\chardet\mbcssm.py
..\chardet\sbcharsetprober.py
..\chardet\sbcsgroupprober.py
..\chardet\sjisprober.py
..\chardet\universaldetector.py
..\chardet\utf8prober.py
..\chardet\__init__.py
..\chardet\big5freq.pyc
..\chardet\big5prober.pyc
..\chardet\chardetect.pyc
..\chardet\chardistribution.pyc
..\chardet\charsetgroupprober.pyc
..\chardet\charsetprober.pyc
..\chardet\codingstatemachine.pyc
..\chardet\compat.pyc
..\chardet\constants.pyc
..\chardet\cp949prober.pyc
..\chardet\escprober.pyc
..\chardet\escsm.pyc
..\chardet\eucjpprober.pyc
..\chardet\euckrfreq.pyc
..\chardet\euckrprober.pyc
..\chardet\euctwfreq.pyc
..\chardet\euctwprober.pyc
..\chardet\gb2312freq.pyc
..\chardet\gb2312prober.pyc
..\chardet\hebrewprober.pyc
..\chardet\jisfreq.pyc
..\chardet\jpcntx.pyc
..\chardet\langbulgarianmodel.pyc
..\chardet\langcyrillicmodel.pyc
..\chardet\langgreekmodel.pyc
..\chardet\langhebrewmodel.pyc
..\chardet\langhungarianmodel.pyc
..\chardet\langthaimodel.pyc
..\chardet\latin1prober.pyc
..\chardet\mbcharsetprober.pyc
..\chardet\mbcsgroupprober.pyc
..\chardet\mbcssm.pyc
..\chardet\sbcharsetprober.pyc
..\chardet\sbcsgroupprober.pyc
..\chardet\sjisprober.pyc
..\chardet\universaldetector.pyc
..\chardet\utf8prober.pyc
..\chardet\__init__.pyc
.\
dependency_links.txt
entry_points.txt
PKG-INFO
SOURCES.txt
top_level.txt
..\..\..\Scripts\chardetect-script.py
..\..\..\Scripts\chardetect.exe
..\..\..\Scripts\chardetect.exe.manifest

View File

@@ -0,0 +1 @@
chardet