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    
  unicsv
  unicsv.egg-info
  PKG-INFO
  README
  setup.cfg
  setup.py
Size: Mime:
  README
A small package that wraps the standard python csv package. 

The csv package in python 2.7 doesnt support unicode and never will. Unicode support was added somewhere along the line in python 3. If you are stuck python2.7, you're stuck with this little wrapper package. Its a pretty simple little package consisting of 4 main classes:

```
  - UnicodeReader
  - UnicodeWriter
  - UnicodeDictReader
  - UnicodeDictWriter
```

They replace csv.reader, csv.writer, csv.DictReader, and csv.DictWriter respectively. They operate in almost the exact same way except that they all take an optional encoding parameter (which is defaulted to utf-8) and the readers return unicode normalized to Normalization Form C and the writers expect only unicode input.