update readme

This commit is contained in:
PyYoshi 2015-09-07 16:40:27 +09:00
parent 38394877eb
commit 7caa7af010

View file

@ -1,5 +1,3 @@
<!-- markdown to rst: http://johnmacfarlane.net/pandoc/try -->
cChardet cChardet
======== ========
cChardet is high speed universal character encoding detector. - binding to [charsetdetect](https://bitbucket.org/medoc/uchardet-enhanced/overview). cChardet is high speed universal character encoding detector. - binding to [charsetdetect](https://bitbucket.org/medoc/uchardet-enhanced/overview).
@ -53,13 +51,13 @@ $ cd /tmp
$ git clone git://github.com/PyYoshi/cChardet.git $ git clone git://github.com/PyYoshi/cChardet.git
$ cd cChardet $ cd cChardet
$ python setup.py build $ python setup.py build
$ sudo python setup.py install $ python setup.py install
``` ```
or or
```bash ```bash
$ sudo easy_install cchardet $ pip install -U cchardet
``` ```
## Example ## Example
@ -76,13 +74,13 @@ print(result)
## Test ## Test
```bash ```bash
$ sudo easy_install or pip install -U chardet nose $ pip install -U chardet nose
$ cd test $ cd test
$ nosetests --nocapture tests.py $ nosetests --nocapture tests.py
``` ```
## Benchmark ## Benchmark
code: [tests.TestCchardetSpeed](https://github.com/PyYoshi/cChardet/blob/master/test/tests.py#L461) code: [tests.TestCchardetSpeed](https://github.com/PyYoshi/cChardet/blob/master/test/tests.py#L468)
sample: [test/testdata/wikipediaJa_One_Thousand_and_One_Nights_SJIS.txt](https://github.com/PyYoshi/cChardet/blob/master/test/testdata/wikipediaJa_One_Thousand_and_One_Nights_SJIS.txt) sample: [test/testdata/wikipediaJa_One_Thousand_and_One_Nights_SJIS.txt](https://github.com/PyYoshi/cChardet/blob/master/test/testdata/wikipediaJa_One_Thousand_and_One_Nights_SJIS.txt)
@ -118,8 +116,5 @@ Platform: Kubuntu 12.04 amd64, Python 2.7.3 64-bit
* [Cython](http://www.cython.org/) * [Cython](http://www.cython.org/)
## Contact ## Contact
[My blog](http://blog.remu.biz)
[Issues](https://github.com/PyYoshi/cChardet/issues?page=1&state=open) [Issues](https://github.com/PyYoshi/cChardet/issues?page=1&state=open)
Sorry for my poor English :)