csv-validation 0.0.15__tar.gz → 0.0.16__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.15 → csv_validation-0.0.16}/.github/workflows/CI.yml +1 -1
- {csv_validation-0.0.15 → csv_validation-0.0.16}/Cargo.lock +1 -1
- {csv_validation-0.0.15 → csv_validation-0.0.16}/Cargo.toml +1 -1
- {csv_validation-0.0.15 → csv_validation-0.0.16}/PKG-INFO +1 -1
- {csv_validation-0.0.15 → csv_validation-0.0.16}/README.md +6 -2
- {csv_validation-0.0.15 → csv_validation-0.0.16}/src/lib.rs +2 -0
- {csv_validation-0.0.15 → csv_validation-0.0.16}/.gitignore +0 -0
- {csv_validation-0.0.15 → csv_validation-0.0.16}/LICENSE +0 -0
- {csv_validation-0.0.15 → csv_validation-0.0.16}/MANIFEST.in +0 -0
- {csv_validation-0.0.15 → csv_validation-0.0.16}/build.sh +0 -0
- {csv_validation-0.0.15 → csv_validation-0.0.16}/csv_validation.pyi +0 -0
- {csv_validation-0.0.15 → csv_validation-0.0.16}/pyproject.toml +0 -0
- {csv_validation-0.0.15 → csv_validation-0.0.16}/test/empty_values.csv +0 -0
- {csv_validation-0.0.15 → csv_validation-0.0.16}/test/test_file.csv +0 -0
- {csv_validation-0.0.15 → csv_validation-0.0.16}/test/test_file.csv.gz +0 -0
- {csv_validation-0.0.15 → csv_validation-0.0.16}/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.16
|
|
4
4
|
Classifier: Programming Language :: Rust
|
|
5
5
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
6
6
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
@@ -94,11 +94,15 @@ columns:
|
|
|
94
94
|
- Available formats:
|
|
95
95
|
- `integer`: Validates any integer number (positive or negative)
|
|
96
96
|
- `positive integer`: Validates positive integer numbers
|
|
97
|
-
- `
|
|
97
|
+
- `negative integer`: Validates negative integer numbers
|
|
98
|
+
- `decimal`/`decimal point`: Validates any decimal number (positive or negative) using point as decimal separator
|
|
99
|
+
- `negative decimal point`: Validates negative decimal numbers using point as decimal separator
|
|
98
100
|
- `decimal comma`: Validates decimal numbers using comma as decimal separator
|
|
99
|
-
- `positive decimal
|
|
101
|
+
- `positive decimal`/`positive decimal point`: Validates positive decimal numbers using point as decimal separator
|
|
100
102
|
- `positive decimal comma`: Validates positive decimal numbers using comma as decimal separator
|
|
101
103
|
- `decimal scientific`: Validates decimal numbers in scientific notation (e.g. 23.02e-12)
|
|
104
|
+
- `decimal scientific comma`: Validates decimal numbers in scientific notation using comma as decimal separator
|
|
105
|
+
- `positive decimal scientific`: Validates positive decimal numbers in scientific notation
|
|
102
106
|
- More formats will be added in upcoming versions
|
|
103
107
|
|
|
104
108
|
3. **Minimum Value** (`min`)
|
|
@@ -289,6 +289,8 @@ fn get_regex_for_format(format: &str) -> PyResult<String> {
|
|
|
289
289
|
"positive decimal point" | "positive decimal" => Ok(String::from("^$|^\\d+(\\.\\d+)?$")),
|
|
290
290
|
"positive decimal comma" => Ok(String::from("^$|^\\d+(,\\d+)?$")),
|
|
291
291
|
"decimal scientific" => Ok(String::from("^$|^-?\\d+(\\.\\d+)?([eE][-+]?\\d+)?$")),
|
|
292
|
+
"decimal scientific comma" => Ok(String::from("^$|^-?\\d+(\\,\\d+)?([eE][-+]?\\d+)?$")),
|
|
293
|
+
"positive decimal scientific" => Ok(String::from("^$|^\\d+(\\.\\d+)?([eE][-+]?\\d+)?$")),
|
|
292
294
|
_ => Err(PyRuntimeError::new_err(format!("Unknown format: {format}")))
|
|
293
295
|
}
|
|
294
296
|
}
|
|
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
|