Repository URL to install this package:
|
Version:
1.0.9 ▾
|
| unicsv |
| unicsv.egg-info |
| PKG-INFO |
| README |
| setup.cfg |
| setup.py |
A small package that wraps the standard python csv package.
The csv package in python 2.7 doesn’t 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. It’s 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.