This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

csvx: painless csv

Project Description

A csv library that supports 2 and 3, does the unicode thing properly, and lets you read rows as ordered dictionaries so that the ordering stays correct by default.

Which makes things pretty easy.

Example. You’ve got a csv you want to sanitize by removing a column of passwords.

Here’s how that looks.

import csvx

with csvx.OrderedDictReader('unsanitized.csv') as csv_in:
    rows = list(csv_in)

for r in rows:
    del r['password']

with csvx.DictWriter('sanitized.csv') as csv_out:
    csv_out.write_dicts(rows)

Documentation

Full documentation is at https://csvx.readthedocs.org.

Install

Simply install with pip:

$ pip install csvx
Release History

Release History

This version
History Node

0.1.1459403998

History Node

0.1.1459310240

History Node

0.1.1456544203

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
csvx-0.1.1459403998-py2.py3-none-any.whl (6.5 kB) Copy SHA256 Checksum SHA256 3.5 Wheel Mar 31, 2016
csvx-0.1.1459403998.tar.gz (4.5 kB) Copy SHA256 Checksum SHA256 Source Mar 31, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting