2fc3a20b6f0c0f1282bc773b3555b4e23139f42e
[sdc/sdc-distribution-client.git] /
1 Metadata-Version: 1.1
2 Name: unicodecsv
3 Version: 0.14.1
4 Summary: Python2's stdlib csv module is nice, but it doesn't support unicode. This module is a drop-in replacement which *does*.
5 Home-page: https://github.com/jdunck/python-unicodecsv
6 Author: Jeremy Dunck
7 Author-email: jdunck@gmail.com
8 License: BSD License
9 Description: unicodecsv
10         ==========
11         
12         The unicodecsv is a drop-in replacement for Python 2.7's csv module which supports unicode strings without a hassle.  Supported versions are python 2.7, 3.3, 3.4, 3.5, and pypy 2.4.0.
13         
14         More fully
15         ----------
16         
17         Python 2's csv module doesn't easily deal with unicode strings, leading to the dreaded "'ascii' codec can't encode characters in position ..." exception.
18         
19         You can work around it by encoding everything just before calling write (or just after read), but why not add support to the serializer?
20         
21         .. code-block:: pycon
22         
23            >>> import unicodecsv as csv
24            >>> from io import BytesIO
25            >>> f = BytesIO()
26            >>> w = csv.writer(f, encoding='utf-8')
27            >>> _ = w.writerow((u'é', u'ñ'))
28            >>> _ = f.seek(0)
29            >>> r = csv.reader(f, encoding='utf-8')
30            >>> next(r) == [u'é', u'ñ']
31            True
32         
33         Note that unicodecsv expects a bytestream, not unicode -- so there's no need to use `codecs.open` or similar wrappers.  Plain `open(..., 'rb')` will do.
34         
35         (Version 0.14.0 dropped support for python 2.6, but 0.14.1 added it back.  See c0b7655248c4249 for the mistaken, breaking change.)
36         
37 Platform: UNKNOWN
38 Classifier: Development Status :: 5 - Production/Stable
39 Classifier: Intended Audience :: Developers
40 Classifier: License :: OSI Approved :: BSD License
41 Classifier: Natural Language :: English
42 Classifier: Programming Language :: Python :: 2.6
43 Classifier: Programming Language :: Python :: 2.7
44 Classifier: Programming Language :: Python :: 3.3
45 Classifier: Programming Language :: Python :: 3.4
46 Classifier: Programming Language :: Python :: 3.5
47 Classifier: Programming Language :: Python :: Implementation :: PyPy
48 Classifier: Programming Language :: Python :: Implementation :: CPython