Skip to content

ONSdigital/sdx-transformer

Repository files navigation

SDX-Transformer

The sdx-transformer service provides data transformation functionality for SDX. It is used to transform both survey submission data into pck files on the journey downstream, and for transforming the data headed upstream for pre-population.

Getting Started

1. Install Poetry:

  • This project uses Poetry for dependency management. Ensure Poetry is installed on your system.
  • If you have poetry installed, you can skip this step.
  • If Poetry is not installed, you can install it using:
brew install poetry

or

brew install pipx
pipx install poetry
poetry --version

2. Install Dependencies:

  • Install the project dependencies using Poetry by running the following command at the project root:
poetry install

This will create a new virtual environment if one does not already exist and install the dependencies into it.

3. Run the tests:

  • To run all the tests, use the following command or use the Makefile:
poetry run pytest -v --cov-report term-missing --disable-warnings --cov=app tests/

4. Run the transformer:

  • To run the transformer, use the following command:
poetry run python run.py

Releases

No releases published

Packages

 
 
 

Contributors

Languages