Cutplace¶
Cutplace is a tool and API to validate that tabular and flat data conform to an interface definition (CID). Cutplace checks CSV, PRN (fixed length), Excel and ODS files using configurable separators, delimiters and fillers. It supports error conditions for single cells, across rows or concerning the whole set of data.
CID’s are simple spread sheets that describe the basic file format of the data to validate, the fields provided and additional conditions to check across rows or the whole data set.
Additionally cutplace offers an API to validate and read data described
by a CID. It provides a uniform interface to csv.reader()
and
packages to read other formats, saving you from having to learn the
intrinsics of each package.
Download cutplace from PyPI or run
pip install cutplace
.Read the tutorial to find out what cutplace can do for you and how it works.
Visit the project site.
Take a look at the roadmap to find out what the future has in store.
Read the application programmer interface tutorial to learn how to integrate cutplace based validations in your own application. For a complete reference, browse the Module Index of the API reference documentation.
Read the developer guide to learn how to obtain the source code, build a distribution archive and contribute patches.
Contents¶
- Cutplace
- Installation
- Tutorial
- A simple set of customer data
- Describing data format and and field names
- Using comments
- How and where to store the CID
- Running cutplace for the first time
- Summary so far
- Adding examples
- Allowing fields to be empty
- Limiting the length of field values
- Field types and rules
- Checking general conditions
- Conclusion
- Writing a Cutplace Interface Definition
- Command line usage
- Application programmer interface
- Getting support
- Development
- Revision history
- Version 0.9.0, 2021-12-26
- Version 0.8.9, 2021-12-25
- Version 0.8.8, 2015-11-13
- Version 0.8.7, 2015-07-18
- Version 0.8.6, 2015-07-14
- Version 0.8.5, 2015-03-09
- Version 0.8.4, 2015-03-01
- Version 0.8.3, 2015-01-31
- Version 0.8.2, 2015-01-19
- Version 0.8.1, 2015-01-11
- Version 0.8.0, 2015-01-11
- Version 0.7.1, 2012-05-20
- Version 0.7.0, 2012-01-09
- Version 0.6.8, 2011-07-26
- Version 0.6.7, 2011-05-24
- Version 0.6.6, 2011-05-18
- Version 0.6.5, 2011-05-17
- Version 0.6.4, 2011-03-19
- Version 0.6.3, 2010-10-25
- Version 0.6.2, 2010-09-29
- Version 0.6.1, 2010-04-25
- Version 0.6.0, 2010-03-29
- Version 0.5.8, 2009-10-12
- Version 0.5.7, 2009-09-07
- Version 0.5.6, 2009-08-19
- Version 0.5.5, 2009-07-26
- Version 0.5.4, 2009-07-21
- Version 0.5.3, 2009-07-18
- Version 0.5.2, 2009-06-11
- Version 0.5.1, 2009-06-11
- Version 0.5.0, 2009-06-02
- Version 0.4.4, 2009-05-23
- Version 0.4.3, 2009-05-18
- Version 0.4.2, 2009-05-17
- Version 0.4.1, 2009-05-10
- Version 0.4.0, 2009-05-06
- Version 0.3.1, 2009-05-03
- Version 0.3.0, 2009-04-28
- Version 0.2.2, 2009-04-07
- Version 0.2.1, 2009-03-29
- Version 0.2.0, 2009-03-27
- Version 0.1.2, 2009-03-22
- Version 0.1.1, 2009-03-17
- License