Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
Metadata-Version: 1.1
Name: unicodecsv
Version: 0.11.0
Summary: Python2's stdlib csv module is nice, but it doesn't support unicode. This module is a drop-in replacement which *does*.
Home-page: https://github.com/jdunck/python-unicodecsv
Author: Jeremy Dunck
Author-email: jdunck@gmail.com
License: BSD License
Description: unicodecsv
        ==========
        
        The unicodecsv is a drop-in replacement for Python 2's csv module which supports unicode strings without a hassle.
        
        More fully
        ----------
        
        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.
        
        You can work around it by encoding everything just before calling write (or just after read), but why not add support to the serializer?
        
        ::
        
           >>> import unicodecsv
           >>> from cStringIO import StringIO
           >>> f = StringIO()
           >>> w = unicodecsv.writer(f, encoding='utf-8')
           >>> w.writerow((u'é', u'ñ'))
           >>> f.seek(0)
           >>> r = unicodecsv.reader(f, encoding='utf-8')
           >>> row = r.next()
           >>> print row[0], row[1]
           é ñ
        
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 2.5
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: Implementation :: CPython