mkesicki / excel_validator Goto Github PK
View Code? Open in Web Editor NEWPython script to validate data in Excel files
License: MIT License
Python script to validate data in Excel files
License: MIT License
Exclude columns are still validated if the columns have blanks though it states that #default validator is used for not excluded columns for which no other validation rule is set
Code: excludes: ["L","M"]
Only if I remove the below code, the column validations excluded
default:
- NotBlank:
message: Value can not be blank
--dry-run
?
It is always set for first validator for column example:
C:
- Type:
type: integer
message: "Message"
trim: true
- Conditional:
message: "Message"
fieldB: "C"
operator: "lambda c, d: (False if (c > d) else True)"
trim: true
D:
- Type:
type: integer
message: "Message"
trim: true
in this case conditional validator will be not set
For now only one default validator can be used.
excel_validator/excel_validator.py
Line 282 in f1ef759
Hi,
I think this is a great tool, but there seems to be a limitation regarding the binary size of the error Excel file.
If I try to run against an input file that is between 76 -- 100 megabits Excel file, I receive an error saying that the output error file is too large and thus cannot be created.
As a user (with sufficient resource) my expectation is for a file to be generated.
Does anyone more versed in the code of the solution and/or supporting libraries provide me with enlightenment on how to bypass this situation?
Thank you.
Use https://docs.python.org/2/library/unittest.html or something similar.
Dear,
I was testing your script but it seems to fail with python 3.
Dict variables are not supported.
I'm getting errors on type = settings.keys()[0]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.