csv-validation 0.0.13__tar.gz → 0.0.14__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {csv_validation-0.0.13 → csv_validation-0.0.14}/Cargo.lock +1 -1
- {csv_validation-0.0.13 → csv_validation-0.0.14}/Cargo.toml +1 -1
- {csv_validation-0.0.13 → csv_validation-0.0.14}/PKG-INFO +1 -1
- {csv_validation-0.0.13 → csv_validation-0.0.14}/README.md +3 -2
- {csv_validation-0.0.13 → csv_validation-0.0.14}/src/lib.rs +1 -0
- {csv_validation-0.0.13 → csv_validation-0.0.14}/.github/workflows/CI.yml +0 -0
- {csv_validation-0.0.13 → csv_validation-0.0.14}/.gitignore +0 -0
- {csv_validation-0.0.13 → csv_validation-0.0.14}/LICENSE +0 -0
- {csv_validation-0.0.13 → csv_validation-0.0.14}/MANIFEST.in +0 -0
- {csv_validation-0.0.13 → csv_validation-0.0.14}/build.sh +0 -0
- {csv_validation-0.0.13 → csv_validation-0.0.14}/csv_validation.pyi +0 -0
- {csv_validation-0.0.13 → csv_validation-0.0.14}/pyproject.toml +0 -0
- {csv_validation-0.0.13 → csv_validation-0.0.14}/test/empty_values.csv +0 -0
- {csv_validation-0.0.13 → csv_validation-0.0.14}/test/test_file.csv +0 -0
- {csv_validation-0.0.13 → csv_validation-0.0.14}/test/test_file.csv.gz +0 -0
- {csv_validation-0.0.13 → csv_validation-0.0.14}/test/test_validations.yml +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: csv_validation
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.14
|
|
4
4
|
Classifier: Programming Language :: Rust
|
|
5
5
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
6
6
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
@@ -98,8 +98,9 @@ columns:
|
|
|
98
98
|
- `decimal comma`: Validates decimal numbers using comma as decimal separator
|
|
99
99
|
- `positive decimal point/positive decimal`: Validates positive decimal numbers using point as decimal separator
|
|
100
100
|
- `positive decimal comma`: Validates positive decimal numbers using comma as decimal separator
|
|
101
|
-
- `decimal scientific`: Validates decimal numbers in scientific notation (e.g. 23.02e-12)
|
|
102
|
-
|
|
101
|
+
- `decimal scientific`: Validates decimal numbers in scientific notation (e.g. -23.02e-12)
|
|
102
|
+
- `positive decimal scientific`: Validates positive decimal numbers in scientific notation (e.g. 23.02e-12)
|
|
103
|
+
- More formats will be likely added in upcoming versions
|
|
103
104
|
|
|
104
105
|
3. **Minimum Value** (`min`)
|
|
105
106
|
- Check if numeric fields are greater than or equal to a specified value
|
|
@@ -287,6 +287,7 @@ fn get_regex_for_format(format: &str) -> PyResult<String> {
|
|
|
287
287
|
"positive decimal point" | "positive decimal" => Ok(String::from("^$|^\\d+(\\.\\d+)?$")),
|
|
288
288
|
"positive decimal comma" => Ok(String::from("^$|^\\d+(,\\d+)?$")),
|
|
289
289
|
"decimal scientific" => Ok(String::from("^$|^-?\\d+(\\.\\d+)?([eE][-+]?\\d+)?$")),
|
|
290
|
+
"positive decimal scientific" => Ok(String::from("^$|^\\d+(\\.\\d+)?([eE][-+]?\\d+)?$")),
|
|
290
291
|
_ => Err(PyRuntimeError::new_err(format!("Unknown format: {format}")))
|
|
291
292
|
}
|
|
292
293
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|