Skip to main content
docs/source/_static/logo.png

PyPi Status Supported Versions Release Status License Documentation Status Build Status Code Coverage Requirements Status Say Thanks

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)

Source distribution for sandpaper 0.0.6
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

Release history Release notifications | RSS feed

This release

0.0.6 This release

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

0.0.0

1 release file

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