Basic Usage
Learn more by reading the documentation!
from sandpaper import SandPaper
paper = SandPaper('my-sandpaper')\
.strip( # strip whitespace from column comment
column_filter=r'comment'
)\
.translate_text({ # get group id from column group
r'^group_(\d+)$': '{0}'
}, column_filter=r'group')\
.translate_date({ # normalize date from column date
'%Y-%m-%d': '%c',
'%m-%d': '%c'
}, column_filter=r'date')
# apply sandpaper rules to a source file and write results to a target file
paper.apply('/home/you/source.csv', '/home/you/target.csv')
Release files for sandpaper 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sandpaper-0.0.6.tar.gz | 13.7 kB | Details |
Release files / sandpaper-0.0.6.tar.gz
| Download URL | sandpaper-0.0.6.tar.gz |
|---|---|
| Size | 13.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a523d4ff98f30dcf2912f7915ccf0ac718514a6fc85cdd9e7cfa1297e75bb332
|
|
BLAKE2b-256 checksum How to use checksums |
d4aa08911dc5b99b44722bf56754c450df0074810f8c82f1e7d868f126af4c6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |