Skip to content

Repository files navigation

pystagegate

Automated quality assurance methods for demographic outputs. Work in progress.

Contact: Christoffer.Soderberg@ons.gov.uk

Instuctions

This package uses uv for virtual environments and dependency management.

Running the pipeline

Install the package into your Python environment of choice:

pip install git+https://github.com/ONSdigital/pystagegate.git

Download a copy of the configuration and save it to your working directory.

Running from the command line

Open your Python environment of choice and in your working directory use the console command provfin to run the provisional-final migration data quality assurance pipeline:

provfin pipeline_config.json

Running in Jupyter Notebooks

Import the prov_fin_main function from the pipelines module:

from pystagegate.pipelines import prov_fin_main

Call the function with the filepath to the configuration JSON file as an argument (or pass a Python dictionary):

prov_fin_main("pipeline_config.json")

See the demo for more detail.

Pure synthetic data for testing is available in tests/data

Contributing

  • uv sync to read dependencies
  • uv run pytest for testing
  • uv run ruff check and uv run ruff format for linting

About

Automated quality assurance methods for demographic outputs

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages