Skip to main content

Generate privacy‑safe synthetic data from production Spark DataFrames

Project description

ReSpark

Status: Pre-release (0.0.x)

ReSpark is a Python library built on PySpark for generating privacy-preserving synthetic data from existing Spark DataFrames or schemas. It is designed to run in any environment where Spark is available, whether on a local machine, a cluster, or a cloud platform.

Modern data-driven solutions require realistic datasets for development, testing, and analytics. However, using production data introduces privacy risks and governance challenges. ReSpark provides a privacy-first approach to synthetic data generation, preserving the structure and statistical characteristics of your original data while minimising re-identification risk.

Vision

  • Runs Anywhere Spark Runs: Works in any environment where Spark DataFrames are processed, from local setups to large-scale clusters.
  • Privacy-First Design: Includes validation reporting to check for residual sensitive information or re-identification risk.
  • Relational Integrity: Maintains join consistency with appropriate handling of sensitive and non-sensitive fields.

Installation

pip install respark

This package requires pyspark (Apache-2.0)

Licence

© Crown Copyright 2025 Department for Education
Licensed under the MIT Licence.

Acknowledgements

Built on Apache Spark / PySpark (Apache License 2.0).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

respark-0.0.10.tar.gz (22.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

respark-0.0.10-py3-none-any.whl (38.8 kB view details)

Uploaded Python 3

File details

Details for the file respark-0.0.10.tar.gz.

File metadata

  • Download URL: respark-0.0.10.tar.gz
  • Upload date:
  • Size: 22.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for respark-0.0.10.tar.gz
Algorithm Hash digest
SHA256 da23976b44ab67bfbeb0bfd0d0ffedcce06fd6c11d39066fd8ef42d39f48a2cd
MD5 b2319de4b18fe10fa5512fce8efff10c
BLAKE2b-256 741b17ee6b7a8d28049cb27525c054c35ac9288d6cf6792eff82c1920c71b548

See more details on using hashes here.

File details

Details for the file respark-0.0.10-py3-none-any.whl.

File metadata

  • Download URL: respark-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 38.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for respark-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 c4cdbd71d6bf102ec625c9dec8076cc5aac8d6a2edee340c75577aaf213b9b51
MD5 c196d8296c243d1dc53faa7295ba5983
BLAKE2b-256 35e2cbbfe31198fe84970eb15caa1f77e712e59f80d1504b52f6c3dccc104c12

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page