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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file csvx-0.1.1456544203.tar.gz.
File metadata
- Download URL: csvx-0.1.1456544203.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ccaef2b344689e14e7a603437dab35979187f9cfb33e137f187c7c3affac34d2
|
|
| MD5 |
e94e9487a808b6985f87d96d3219d2f9
|
|
| BLAKE2b-256 |
26fdc10463676f59bd2d29b695b9339a42e24dfc3303adf0c73f47b469d16828
|
File details
Details for the file csvx-0.1.1456544203-py2.py3-none-any.whl.
File metadata
- Download URL: csvx-0.1.1456544203-py2.py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b4567a382d124a7e039fb9e16861fee210ded75ec2c6f6a0672f0163a386324
|
|
| MD5 |
c1028745f5ebb2e7c3b5655be362c8e2
|
|
| BLAKE2b-256 |
c77206568f5434610f31ec9c9eb3d2b2b565c45eed90e0673371c5156f698d42
|