data-validation-engine 0.6.2__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.
- data_validation_engine-0.6.2/LICENSE +21 -0
- data_validation_engine-0.6.2/PKG-INFO +104 -0
- data_validation_engine-0.6.2/README.md +74 -0
- data_validation_engine-0.6.2/pyproject.toml +685 -0
- data_validation_engine-0.6.2/src/dve/__init__.py +0 -0
- data_validation_engine-0.6.2/src/dve/common/__init__.py +0 -0
- data_validation_engine-0.6.2/src/dve/common/error_utils.py +189 -0
- data_validation_engine-0.6.2/src/dve/core_engine/__init__.py +0 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/__init__.py +1 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/base/__init__.py +1 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/base/auditing.py +618 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/base/backend.py +240 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/base/contract.py +454 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/base/core.py +124 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/base/reader.py +176 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/base/reference_data.py +217 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/base/rules.py +685 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/base/utilities.py +146 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/exceptions.py +311 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/implementations/__init__.py +1 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/implementations/duckdb/__init__.py +26 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/implementations/duckdb/auditing.py +234 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/implementations/duckdb/contract.py +213 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/implementations/duckdb/duckdb_helpers.py +288 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/implementations/duckdb/readers/__init__.py +13 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/implementations/duckdb/readers/csv.py +222 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/implementations/duckdb/readers/json.py +50 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/implementations/duckdb/readers/xml.py +45 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/implementations/duckdb/reference_data.py +49 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/implementations/duckdb/rules.py +534 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/implementations/duckdb/types.py +47 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/implementations/duckdb/utilities.py +41 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/implementations/spark/__init__.py +22 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/implementations/spark/auditing.py +230 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/implementations/spark/backend.py +78 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/implementations/spark/contract.py +241 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/implementations/spark/readers/__init__.py +15 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/implementations/spark/readers/csv.py +77 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/implementations/spark/readers/json.py +66 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/implementations/spark/readers/xml.py +202 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/implementations/spark/reference_data.py +42 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/implementations/spark/rules.py +430 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/implementations/spark/spark_helpers.py +412 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/implementations/spark/types.py +21 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/implementations/spark/utilities.py +144 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/metadata/__init__.py +47 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/metadata/contract.py +80 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/metadata/reporting.py +374 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/metadata/rules.py +737 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/readers/__init__.py +41 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/readers/csv.py +232 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/readers/utilities.py +21 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/readers/xml.py +432 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/readers/xml_linting.py +142 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/types.py +26 -0
- data_validation_engine-0.6.2/src/dve/core_engine/backends/utilities.py +177 -0
- data_validation_engine-0.6.2/src/dve/core_engine/configuration/__init__.py +1 -0
- data_validation_engine-0.6.2/src/dve/core_engine/configuration/base.py +56 -0
- data_validation_engine-0.6.2/src/dve/core_engine/configuration/v1/__init__.py +351 -0
- data_validation_engine-0.6.2/src/dve/core_engine/configuration/v1/filters.py +60 -0
- data_validation_engine-0.6.2/src/dve/core_engine/configuration/v1/rule_stores/__init__.py +1 -0
- data_validation_engine-0.6.2/src/dve/core_engine/configuration/v1/rule_stores/models.py +57 -0
- data_validation_engine-0.6.2/src/dve/core_engine/configuration/v1/steps.py +365 -0
- data_validation_engine-0.6.2/src/dve/core_engine/constants.py +8 -0
- data_validation_engine-0.6.2/src/dve/core_engine/engine.py +265 -0
- data_validation_engine-0.6.2/src/dve/core_engine/exceptions.py +29 -0
- data_validation_engine-0.6.2/src/dve/core_engine/functions/__init__.py +6 -0
- data_validation_engine-0.6.2/src/dve/core_engine/functions/implementations.py +200 -0
- data_validation_engine-0.6.2/src/dve/core_engine/loggers.py +57 -0
- data_validation_engine-0.6.2/src/dve/core_engine/message.py +512 -0
- data_validation_engine-0.6.2/src/dve/core_engine/models.py +196 -0
- data_validation_engine-0.6.2/src/dve/core_engine/templating.py +114 -0
- data_validation_engine-0.6.2/src/dve/core_engine/type_hints.py +255 -0
- data_validation_engine-0.6.2/src/dve/core_engine/validation.py +160 -0
- data_validation_engine-0.6.2/src/dve/metadata_parser/__init__.py +2 -0
- data_validation_engine-0.6.2/src/dve/metadata_parser/domain_types.py +682 -0
- data_validation_engine-0.6.2/src/dve/metadata_parser/exc.py +44 -0
- data_validation_engine-0.6.2/src/dve/metadata_parser/function_library.py +64 -0
- data_validation_engine-0.6.2/src/dve/metadata_parser/function_wrapper.py +201 -0
- data_validation_engine-0.6.2/src/dve/metadata_parser/model_generator.py +119 -0
- data_validation_engine-0.6.2/src/dve/metadata_parser/models.py +410 -0
- data_validation_engine-0.6.2/src/dve/metadata_parser/utilities.py +54 -0
- data_validation_engine-0.6.2/src/dve/parser/__init__.py +1 -0
- data_validation_engine-0.6.2/src/dve/parser/exceptions.py +50 -0
- data_validation_engine-0.6.2/src/dve/parser/file_handling/__init__.py +31 -0
- data_validation_engine-0.6.2/src/dve/parser/file_handling/helpers.py +29 -0
- data_validation_engine-0.6.2/src/dve/parser/file_handling/implementations/__init__.py +7 -0
- data_validation_engine-0.6.2/src/dve/parser/file_handling/implementations/base.py +97 -0
- data_validation_engine-0.6.2/src/dve/parser/file_handling/implementations/dbfs.py +81 -0
- data_validation_engine-0.6.2/src/dve/parser/file_handling/implementations/file.py +203 -0
- data_validation_engine-0.6.2/src/dve/parser/file_handling/implementations/s3.py +371 -0
- data_validation_engine-0.6.2/src/dve/parser/file_handling/log_handler.py +215 -0
- data_validation_engine-0.6.2/src/dve/parser/file_handling/service.py +441 -0
- data_validation_engine-0.6.2/src/dve/parser/file_handling/utilities.py +53 -0
- data_validation_engine-0.6.2/src/dve/parser/type_hints.py +46 -0
- data_validation_engine-0.6.2/src/dve/parser/utilities.py +113 -0
- data_validation_engine-0.6.2/src/dve/pipeline/__init__.py +0 -0
- data_validation_engine-0.6.2/src/dve/pipeline/duckdb_pipeline.py +56 -0
- data_validation_engine-0.6.2/src/dve/pipeline/foundry_ddb_pipeline.py +171 -0
- data_validation_engine-0.6.2/src/dve/pipeline/pipeline.py +935 -0
- data_validation_engine-0.6.2/src/dve/pipeline/spark_pipeline.py +69 -0
- data_validation_engine-0.6.2/src/dve/pipeline/utils.py +96 -0
- data_validation_engine-0.6.2/src/dve/reporting/__init__.py +1 -0
- data_validation_engine-0.6.2/src/dve/reporting/error_report.py +153 -0
- data_validation_engine-0.6.2/src/dve/reporting/excel_report.py +319 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Crown Copyright NHS England.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: data-validation-engine
|
|
3
|
+
Version: 0.6.2
|
|
4
|
+
Summary: `nhs data validation engine` is a framework used to validate data
|
|
5
|
+
License-File: LICENSE
|
|
6
|
+
Author: NHS England
|
|
7
|
+
Author-email: england.contactus@nhs.net
|
|
8
|
+
Requires-Python: >=3.10,<3.12
|
|
9
|
+
Classifier: Operating System :: OS Independent
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
13
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
14
|
+
Classifier: Typing :: Typed
|
|
15
|
+
Requires-Dist: Jinja2 (==3.1.*)
|
|
16
|
+
Requires-Dist: boto3 (>=1.34.162,<1.36)
|
|
17
|
+
Requires-Dist: botocore (>=1.34.162,<1.36)
|
|
18
|
+
Requires-Dist: delta-spark (==2.4.*)
|
|
19
|
+
Requires-Dist: duckdb (==1.1.*)
|
|
20
|
+
Requires-Dist: lxml (>=4.9.1,<5.0.0)
|
|
21
|
+
Requires-Dist: openpyxl (>=3.1,<4.0)
|
|
22
|
+
Requires-Dist: pandas (>=2.2.2,<3.0.0)
|
|
23
|
+
Requires-Dist: polars (==0.20.*)
|
|
24
|
+
Requires-Dist: pyarrow (>=17.0.0,<18.0.0)
|
|
25
|
+
Requires-Dist: pydantic (==1.10.15)
|
|
26
|
+
Requires-Dist: pyspark (==3.4.*)
|
|
27
|
+
Requires-Dist: typing_extensions (>=4.6.2,<5.0.0)
|
|
28
|
+
Description-Content-Type: text/markdown
|
|
29
|
+
|
|
30
|
+
<h1 style="display: flex; align-items: center; gap: 10px;">
|
|
31
|
+
<img src="overrides/.icons/nhseng.svg" alt="NHS Logo" width="5%" height="100%" align="left">
|
|
32
|
+
Data Validation Engine
|
|
33
|
+
</h1>
|
|
34
|
+
|
|
35
|
+

|
|
36
|
+

|
|
37
|
+
[](https://github.com/NHSDigital/data-validation-engine/actions/workflows/ci_testing.yml)
|
|
38
|
+
[](https://github.com/NHSDigital/data-validation-engine/actions/workflows/ci_linting.yml)
|
|
39
|
+
|
|
40
|
+
The Data Validation Engine (DVE) is a configuration driven data validation library built and utilised by NHS England. Currently the package has been reverted from v1.0.0 release to a 0.x as we feel the package is not yet mature enough to be considered a 1.0.0 release. So please bear this in mind if reading through the commits and references to a v1+ release when on v0.x.
|
|
41
|
+
|
|
42
|
+
As mentioned above, the DVE is "configuration driven" which means the majority of development for you as a user will be building a JSON document to describe how the data will be validated. The JSON document is known as a `dischema` file and example files can be accessed [here](./tests/testdata/). If you'd like to learn more about JSON document and how to build one from scratch, then please read the documentation [here](./docs/).
|
|
43
|
+
|
|
44
|
+
Once a dischema file has been defined, you are ready to use the DVE. The DVE is typically orchestrated based on four key "services". These are...
|
|
45
|
+
|
|
46
|
+
| | Service | Purpose |
|
|
47
|
+
| -- | ------- | ------- |
|
|
48
|
+
| 1. | File Transformation | This service will take submitted files and turn them into stringified parquet file(s) to ensure that a consistent data structure can be passed through the other services. |
|
|
49
|
+
| 2. | Data Contract | This service will validate and perform type casting against a stringified parquet file using [pydantic models](https://docs.pydantic.dev/1.10/). |
|
|
50
|
+
| 3. | Business Rules | The business rules service will perform more complex validations such as comparisons between fields and tables, aggregations, filters etc to generate new entities. |
|
|
51
|
+
| 4. | Error Reports | The error reports service will take all the errors raised in previous services and surface them into a readable format for a downstream users/service. Currently, this implemented to be an excel spreadsheet but could be reconfigured to meet other requirements/use cases. |
|
|
52
|
+
|
|
53
|
+
If you'd like more detailed documentation around these services the please read the extended documentation [here](./docs/).
|
|
54
|
+
|
|
55
|
+
The DVE has been designed in a way that's modular and can support users who just want to utilise specific "services" from the DVE (i.e. just the file transformation + data contract). Additionally, the DVE is designed to support different backend implementations. As part of the base installation of DVE, you will find backend support for `Spark` and `DuckDB`. So, if you need a `MySQL` backend implementation, you can implement this yourself. Given our organisations requirements, it will be unlikely that we add anymore specific backend implementations into the base package beyond Spark and DuckDB. So, if you are unable to implement this yourself, I would recommend reading the guidance on [requesting new features and raising bug reports here](#requesting-new-features-and-raising-bug-reports).
|
|
56
|
+
|
|
57
|
+
Additionally, if you'd like to contribute a new backend implementation into the base DVE package, then please look at the [Contributing][#Contributing] section.
|
|
58
|
+
|
|
59
|
+
## Installation and usage
|
|
60
|
+
|
|
61
|
+
The DVE is a Python package and can be installed using `pip`. As of release v0.6.1 we currently support Python 3.10 & 3.11, with Spark version 3.4 and DuckDB version of 1.1. In the future we will be looking to upgrade the DVE to working on a higher versions of Python, DuckDB and Spark.
|
|
62
|
+
|
|
63
|
+
If you're planning to use the Spark backend implementation, you will also need OpenJDK 11 installed.
|
|
64
|
+
|
|
65
|
+
Python dependencies are listed in `pyproject.toml`.
|
|
66
|
+
|
|
67
|
+
To install the DVE package you can simply install using a package manager such as [pip](https://pypi.org/project/pip/).
|
|
68
|
+
|
|
69
|
+
```
|
|
70
|
+
pip install git+https://github.com/NHSDigital/data-validation-engine.git@v0.6.1
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Once you have installed the DVE you are ready to use it. For guidance on how to create your dischema JSON document (configuration), please read the [documentation](./docs/).
|
|
74
|
+
|
|
75
|
+
Please note - The long term aim is to make the DVE available via PyPi and Conda but we are not quite there yet. Once available this documentation will be updated to contain the new installation options.
|
|
76
|
+
|
|
77
|
+
Version 0.0.1 does support a working Python 3.7 installation. However, we will not be supporting any issues with that version of the DVE if you choose to use it. __Use at your own risk__.
|
|
78
|
+
|
|
79
|
+
## Requesting new features and raising bug reports
|
|
80
|
+
**Before creating new issues, please check to see if the same bug/feature has been created already. Where a duplicate is created, the ticket will be closed and referenced to an existing issue.**
|
|
81
|
+
|
|
82
|
+
If you have spotted a bug with the DVE then please raise an issue [here](https://github.com/nhsengland/Data-Validation-Engine/issues) using the "bug template".
|
|
83
|
+
|
|
84
|
+
If you have feature request then please follow the same process whilst using the "Feature request template".
|
|
85
|
+
|
|
86
|
+
## Upcoming features
|
|
87
|
+
Below is a list of features that we would like to implement or have been requested.
|
|
88
|
+
| Feature | Release Version | Released? |
|
|
89
|
+
| ------- | --------------- | --------- |
|
|
90
|
+
| Open source release | 0.1.0 | Yes |
|
|
91
|
+
| Uplift to Python 3.11 | 0.2.0 | Yes |
|
|
92
|
+
| Upgrade to Pydantic 2.0 | Not yet confirmed | No |
|
|
93
|
+
| Create a more user friendly interface for building and modifying dischema files | Not yet confirmed | No |
|
|
94
|
+
|
|
95
|
+
Beyond the Python upgrade, we cannot confirm the other features will be made available anytime soon. Therefore, if you have the interest and desire to make these features available, then please read the [Contributing](#contributing) section and get involved.
|
|
96
|
+
|
|
97
|
+
## Contributing
|
|
98
|
+
Please see guidance [here](./CONTRIBUTE.md).
|
|
99
|
+
|
|
100
|
+
## Legal
|
|
101
|
+
This codebase is released under the MIT License. This covers both the codebase and any sample code in the documentation.
|
|
102
|
+
|
|
103
|
+
Any HTML or Markdown documentation is [© Crown copyright](https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/uk-government-licensing-framework/crown-copyright/) and available under the terms of the [Open Government 3.0 licence](https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/).
|
|
104
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
<h1 style="display: flex; align-items: center; gap: 10px;">
|
|
2
|
+
<img src="overrides/.icons/nhseng.svg" alt="NHS Logo" width="5%" height="100%" align="left">
|
|
3
|
+
Data Validation Engine
|
|
4
|
+
</h1>
|
|
5
|
+
|
|
6
|
+

|
|
7
|
+

|
|
8
|
+
[](https://github.com/NHSDigital/data-validation-engine/actions/workflows/ci_testing.yml)
|
|
9
|
+
[](https://github.com/NHSDigital/data-validation-engine/actions/workflows/ci_linting.yml)
|
|
10
|
+
|
|
11
|
+
The Data Validation Engine (DVE) is a configuration driven data validation library built and utilised by NHS England. Currently the package has been reverted from v1.0.0 release to a 0.x as we feel the package is not yet mature enough to be considered a 1.0.0 release. So please bear this in mind if reading through the commits and references to a v1+ release when on v0.x.
|
|
12
|
+
|
|
13
|
+
As mentioned above, the DVE is "configuration driven" which means the majority of development for you as a user will be building a JSON document to describe how the data will be validated. The JSON document is known as a `dischema` file and example files can be accessed [here](./tests/testdata/). If you'd like to learn more about JSON document and how to build one from scratch, then please read the documentation [here](./docs/).
|
|
14
|
+
|
|
15
|
+
Once a dischema file has been defined, you are ready to use the DVE. The DVE is typically orchestrated based on four key "services". These are...
|
|
16
|
+
|
|
17
|
+
| | Service | Purpose |
|
|
18
|
+
| -- | ------- | ------- |
|
|
19
|
+
| 1. | File Transformation | This service will take submitted files and turn them into stringified parquet file(s) to ensure that a consistent data structure can be passed through the other services. |
|
|
20
|
+
| 2. | Data Contract | This service will validate and perform type casting against a stringified parquet file using [pydantic models](https://docs.pydantic.dev/1.10/). |
|
|
21
|
+
| 3. | Business Rules | The business rules service will perform more complex validations such as comparisons between fields and tables, aggregations, filters etc to generate new entities. |
|
|
22
|
+
| 4. | Error Reports | The error reports service will take all the errors raised in previous services and surface them into a readable format for a downstream users/service. Currently, this implemented to be an excel spreadsheet but could be reconfigured to meet other requirements/use cases. |
|
|
23
|
+
|
|
24
|
+
If you'd like more detailed documentation around these services the please read the extended documentation [here](./docs/).
|
|
25
|
+
|
|
26
|
+
The DVE has been designed in a way that's modular and can support users who just want to utilise specific "services" from the DVE (i.e. just the file transformation + data contract). Additionally, the DVE is designed to support different backend implementations. As part of the base installation of DVE, you will find backend support for `Spark` and `DuckDB`. So, if you need a `MySQL` backend implementation, you can implement this yourself. Given our organisations requirements, it will be unlikely that we add anymore specific backend implementations into the base package beyond Spark and DuckDB. So, if you are unable to implement this yourself, I would recommend reading the guidance on [requesting new features and raising bug reports here](#requesting-new-features-and-raising-bug-reports).
|
|
27
|
+
|
|
28
|
+
Additionally, if you'd like to contribute a new backend implementation into the base DVE package, then please look at the [Contributing][#Contributing] section.
|
|
29
|
+
|
|
30
|
+
## Installation and usage
|
|
31
|
+
|
|
32
|
+
The DVE is a Python package and can be installed using `pip`. As of release v0.6.1 we currently support Python 3.10 & 3.11, with Spark version 3.4 and DuckDB version of 1.1. In the future we will be looking to upgrade the DVE to working on a higher versions of Python, DuckDB and Spark.
|
|
33
|
+
|
|
34
|
+
If you're planning to use the Spark backend implementation, you will also need OpenJDK 11 installed.
|
|
35
|
+
|
|
36
|
+
Python dependencies are listed in `pyproject.toml`.
|
|
37
|
+
|
|
38
|
+
To install the DVE package you can simply install using a package manager such as [pip](https://pypi.org/project/pip/).
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
pip install git+https://github.com/NHSDigital/data-validation-engine.git@v0.6.1
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Once you have installed the DVE you are ready to use it. For guidance on how to create your dischema JSON document (configuration), please read the [documentation](./docs/).
|
|
45
|
+
|
|
46
|
+
Please note - The long term aim is to make the DVE available via PyPi and Conda but we are not quite there yet. Once available this documentation will be updated to contain the new installation options.
|
|
47
|
+
|
|
48
|
+
Version 0.0.1 does support a working Python 3.7 installation. However, we will not be supporting any issues with that version of the DVE if you choose to use it. __Use at your own risk__.
|
|
49
|
+
|
|
50
|
+
## Requesting new features and raising bug reports
|
|
51
|
+
**Before creating new issues, please check to see if the same bug/feature has been created already. Where a duplicate is created, the ticket will be closed and referenced to an existing issue.**
|
|
52
|
+
|
|
53
|
+
If you have spotted a bug with the DVE then please raise an issue [here](https://github.com/nhsengland/Data-Validation-Engine/issues) using the "bug template".
|
|
54
|
+
|
|
55
|
+
If you have feature request then please follow the same process whilst using the "Feature request template".
|
|
56
|
+
|
|
57
|
+
## Upcoming features
|
|
58
|
+
Below is a list of features that we would like to implement or have been requested.
|
|
59
|
+
| Feature | Release Version | Released? |
|
|
60
|
+
| ------- | --------------- | --------- |
|
|
61
|
+
| Open source release | 0.1.0 | Yes |
|
|
62
|
+
| Uplift to Python 3.11 | 0.2.0 | Yes |
|
|
63
|
+
| Upgrade to Pydantic 2.0 | Not yet confirmed | No |
|
|
64
|
+
| Create a more user friendly interface for building and modifying dischema files | Not yet confirmed | No |
|
|
65
|
+
|
|
66
|
+
Beyond the Python upgrade, we cannot confirm the other features will be made available anytime soon. Therefore, if you have the interest and desire to make these features available, then please read the [Contributing](#contributing) section and get involved.
|
|
67
|
+
|
|
68
|
+
## Contributing
|
|
69
|
+
Please see guidance [here](./CONTRIBUTE.md).
|
|
70
|
+
|
|
71
|
+
## Legal
|
|
72
|
+
This codebase is released under the MIT License. This covers both the codebase and any sample code in the documentation.
|
|
73
|
+
|
|
74
|
+
Any HTML or Markdown documentation is [© Crown copyright](https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/uk-government-licensing-framework/crown-copyright/) and available under the terms of the [Open Government 3.0 licence](https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/).
|