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.1459310240

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.1459310240
File Size Uploaded
csvx-0.1.1459310240.tar.gz 4.4 kB Details

Built distribution (wheel)

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

Total release size: 10.8 kB

Release files / csvx-0.1.1459310240.tar.gz

Download URL csvx-0.1.1459310240.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3b511a280fdd74c64cddd0dbeee814f0de744c67234718e717c4df53bac96f9a
BLAKE2b-256 checksum
How to use checksums
e38cd8a0000476f62c3e38d2197689633fd63784292e2cc99a0143a5191c5685
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL csvx-0.1.1459310240-py2.py3-none-any.whl
Size 6.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
6b7d1c35c21ee395e7177fe382e0601ca9d6ecaa758f8ac80f0f23683c87faf3
BLAKE2b-256 checksum
How to use checksums
0b41ce939c3f47c6b2c98778effc4365106c860acc8b441ba593c53396a9db35
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.1459310240 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