The standard csv module is very useful for parsing tabular data in CSV format. Typically though, one or more transformations need to be applied to the generated rows before being ready to be used; for instance “convert the 3rd column to int, the 5th to float and ignore all the rest”. This module provides an easy way to specify such transformations upfront instead of coding them every time by hand.
Two classes are currently available, SequenceTransformer and MappingTransformer, that represent each row as a list (like csv.reader) or dict (like csv.DictReader), respectively.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
csvutils-0.1.zip
(45.5 kB
view details)
File details
Details for the file csvutils-0.1.zip.
File metadata
- Download URL: csvutils-0.1.zip
- Upload date:
- Size: 45.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5f0f49ac98a65a632bc8490cfe98a077a0d48656930395f39dc504804637f7c
|
|
| MD5 |
6d9f60521e0a771954f54d46f1f8146f
|
|
| BLAKE2b-256 |
5b9f4b0f5db5d907b2679c0df7fd9ea65198e996098483a2667397a5c66dad1a
|