microdata-tools 2.2.1__py3-none-any.whl → 2.2.3__py3-none-any.whl

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.
@@ -34,10 +34,11 @@ def _validate_datatype_in_codelist_and_sentinels(
34
34
  ]
35
35
  if invalid_codes:
36
36
  error_message = (
37
- f"Specified data type for measure ({data_type}) does not match the "
38
- f"data type within the "
39
- f"{list_name} ({_determine_datatype(invalid_codes[0])}). "
40
- f"Codes with mismatching data type are: "
37
+ f"Specified data type for measure ({data_type}) "
38
+ f"does not match the data type within the {list_name} "
39
+ "in the metadata json. The codes appear to be of type "
40
+ f"{_determine_datatype(invalid_codes[0])}. "
41
+ "Codes with mismatching data type are: "
41
42
  f"{invalid_codes[:5] + ['...'] if len(invalid_codes) > 5 else invalid_codes}" # noqa
42
43
  )
43
44
  return error_message
@@ -1,17 +1,17 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: microdata-tools
3
- Version: 2.2.1
3
+ Version: 2.2.3
4
4
  Summary: Tools for the microdata.no platform
5
5
  Author: microdata-developers
6
6
  License: MIT
7
7
  License-File: LICENSE.md
8
8
  Requires-Python: >=3.10
9
- Requires-Dist: adbc-driver-manager==1.10.0
10
- Requires-Dist: adbc-driver-sqlite==1.10.0
11
- Requires-Dist: cryptography>=50.0.0
9
+ Requires-Dist: adbc-driver-manager==1.12.0
10
+ Requires-Dist: adbc-driver-sqlite==1.12.0
11
+ Requires-Dist: cryptography>=50.0.1
12
12
  Requires-Dist: numpy>=2.2.0
13
13
  Requires-Dist: pyarrow==25.0.1
14
- Requires-Dist: pydantic>=2.11.7
14
+ Requires-Dist: pydantic>=2.13.5
15
15
  Description-Content-Type: text/markdown
16
16
 
17
17
  # microdata-tools
@@ -95,8 +95,7 @@ Import microdata-tools in your script and validate your files:
95
95
  from microdata_tools import validate_dataset
96
96
 
97
97
  validation_errors = validate_dataset(
98
- "MY_DATASET_NAME",
99
- input_directory="path/to/my-input-directory"
98
+ "MY_DATASET_NAME", input_directory="path/to/my-input-directory"
100
99
  )
101
100
 
102
101
  if not validation_errors:
@@ -41,8 +41,8 @@ microdata_tools/validation/model/metadata.py,sha256=x987ZfR7ygVj46UTC4thKpR_Y9W6
41
41
  microdata_tools/validation/steps/data_reader.py,sha256=vJ_RzSHFsNDnMLIDFcG2fg4Z7hNHO7Q1T4r6Mfikm8E,12277
42
42
  microdata_tools/validation/steps/dataset_validator.py,sha256=4z1H4O3NreqVegxjoloJwJIMaIHpra26iIiEXO_EaY8,13186
43
43
  microdata_tools/validation/steps/metadata_enricher.py,sha256=TiyEjO6k5vEDNvUA9kAcTmmcu8L6JSu6sLBqK_q64pU,1055
44
- microdata_tools/validation/steps/metadata_reader.py,sha256=mMy-C9sBk9i6XBpwtbCGY1wegWZjjLLgmXcB6rGZ5eE,7606
45
- microdata_tools-2.2.1.dist-info/METADATA,sha256=7AoSyRq8pEzLD6x6g-QjUtvEnxuGTffH6KGM7IQOnWk,6195
46
- microdata_tools-2.2.1.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
47
- microdata_tools-2.2.1.dist-info/licenses/LICENSE.md,sha256=hxspefYgWP3U6OZFhCifqWMI5ksnKzgFxNKgQnG7Ozc,1074
48
- microdata_tools-2.2.1.dist-info/RECORD,,
44
+ microdata_tools/validation/steps/metadata_reader.py,sha256=erB46QQ2L3fmHvK3efzor_XfpaK8r0OTvrSaSlXOaU4,7671
45
+ microdata_tools-2.2.3.dist-info/METADATA,sha256=O-j2wIkny_-sMckX_OTretoBE_GNGyq37TM8-W1h1BI,6191
46
+ microdata_tools-2.2.3.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
47
+ microdata_tools-2.2.3.dist-info/licenses/LICENSE.md,sha256=hxspefYgWP3U6OZFhCifqWMI5ksnKzgFxNKgQnG7Ozc,1074
48
+ microdata_tools-2.2.3.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.32.0
2
+ Generator: hatchling 1.32.4
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any