Skip to main content

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

Metadata

Release files for csvx 0.1.1459403998

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for csvx 0.1.1459403998
File Size Uploaded
csvx-0.1.1459403998.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for csvx 0.1.1459403998
File Interpreter ABI Platform
csvx-0.1.1459403998-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 11.0 kB

Release files / csvx-0.1.1459403998.tar.gz

Download URL csvx-0.1.1459403998.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8bb1171a2eb9d48e22301af8cf3949dadc7fa4052c46365b3dc1188d6a14f0c8
BLAKE2b-256 checksum
How to use checksums
4eec832c30e70fcc8d1cdf52053183dafdf5c007c7412b0a9fc837b52562e660
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / csvx-0.1.1459403998-py2.py3-none-any.whl

Download URL csvx-0.1.1459403998-py2.py3-none-any.whl
Size 6.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
80bb18e8a2ded31dd6ccb52b43b320e83137d9e85d155b83a13e8f237af34674
BLAKE2b-256 checksum
How to use checksums
3156d71b5e83f33a19807a6a60e04ef40eae8a0abf4b0534accb56948fea6077
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.1459403998 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page