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.5.tar.gz (5.2 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.5-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: respark-0.0.5.tar.gz
  • Upload date:
  • Size: 5.2 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.5.tar.gz
Algorithm Hash digest
SHA256 19ebdf7d92c1c3851d8ab1ee40fbe0f2fecfc0753f8523875e7892dde305b56e
MD5 c33070ddb1132f478dd0964692b3d540
BLAKE2b-256 241949ff0efd71855a0ab6eeb5c01f7036a35d43aa3b9117a8d7a0bb7b278e29

See more details on using hashes here.

File details

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

File metadata

  • Download URL: respark-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 8.1 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7cf40b8e5e88c787e76c481d87673c311f64abdd74b42dc80f06a01bc93efb7f
MD5 1a498e28d26401dce1729ddfb20f652e
BLAKE2b-256 a69ca1fb409b2866d0df562d9e3af314de7e968bbeb5d32d4ffb2d1b739667d4

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