snowfakery
Snowfakery is a tool for generating fake data that has relations between tables. Every row is faked data, but also unique and random, like a snowflake.
What it is and what it does
Snowfakery is a data generation tool designed to create fake but realistic relational datasets from declarative YAML recipes. It generates unique, random rows across related tables while maintaining referential integrity—useful for testing, development, and populating Salesforce orgs. The tool depends on faker for base data generation, SQLAlchemy for database connectivity, and Jinja2 for template rendering within recipes.
You define what data to generate in a YAML recipe file, specifying tables, relationships, and field patterns. Snowfakery then produces output to stdout, any SQLAlchemy-compatible database, or directly to Salesforce when run through CumulusCI. The package is actively maintained, supports Python 3.11–3.13, and carries no known security vulnerabilities.
Use it for:
- Populate test databases with realistic relational data for integration tests without hardcoding fixtures
- Generate sample Salesforce orgs with linked records for UAT or demo environments
- Create anonymized or synthetic datasets for development when production data cannot be used
- Seed databases with consistent, reproducible fake data across multiple test runs
- Rapidly prototype data models by generating sample data matching a schema
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Snowfakery generates fake relational data from YAML recipes, writing output to stdout, databases via SQLAlchemy, or Salesforce orgs when embedded in CumulusCI.
Yes. Snowfakery is actively maintained, has no known vulnerabilities, installs with low friction, and solves a real problem—generating realistic relational test data from declarative recipes. It is particularly valuable if you work with Salesforce via CumulusCI or need repeatable synthetic datasets for testing. The BSD license imposes no practical restrictions.
Install
snowfakery on PyPI
pip
pip install snowfakeryuv
uv add snowfakerypoetry
poetry add snowfakeryInstalling snowfakery
Before you install
Low friction install with a pure-Python wheel and 13 runtime dependencies. Actively maintained with a recent commit on 2026-04-27 and no known vulnerabilities.
License in practice
BSD 3-Clause License is permissive; you can use, modify, and distribute this package with minimal restrictions, provided you include the license notice.
Quickstart
pip install snowfakery
snowfakery generate recipe.yaml
Or in Python:
from snowfakery import generate_data
generate_data(recipe_file='recipe.yaml')
Requires Python 3.11 or later. Output to Salesforce requires CumulusCI integration.
Verify before relying
- Whether the package can generate data to custom output formats beyond stdout and SQLAlchemy databases without code modification
- Performance characteristics when generating large datasets or deeply nested relational structures
Package facts
| License | BSD 3-Clause License (permissive) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 13 — click, faker, faker-edu, faker-nonprofit, gvgen, jinja2, pydantic, python-baseconv, python-dateutil, pyyaml, requests, setuptools, sqlalchemy |
| Maintenance | actively maintained — 217 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 237,104/month — #8,966 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: snowfakery-4.2.1-py3-none-any.whl
Keywords: data generation, fake data, salesforce, snowfakery
Tags
More Testing packages
Pluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
virtualenvvirtualenv creates isolated Python environments…
permissive · top 100 on PyPI
coverageCoverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
pytest-asynciopytest-asyncio is a pytest plugin that enables…
permissive · top 1,000 on PyPI
pytest-json-ctrfA pytest plugin that generates test reports in…
permissive · top 1,000 on PyPI
faker-nonprofitExtends Faker with methods to generate…
permissive · top 15,000 on PyPI
cumulusciCumulusCI automates Salesforce application…
permissive · top 15,000 on PyPI
faker-eduGenerates fake data for educational…
permissive · top 15,000 on PyPI
fakesnowRuns a fake Snowflake database locally for…
permissive · top 5,000 on PyPI
streamlit-fakerGenerates random fake data to populate…
unclear · top 15,000 on PyPI
FakerFaker generates realistic fake data—names,…
permissive · top 1,000 on PyPI
robotframework-fakerWraps Faker's random test data generation as…
permissive · top 15,000 on PyPI
mimesisMimesis generates realistic fake data across 47…
permissive · top 5,000 on PyPI
fake-factoryfake-factory is a deprecated package that…
permissive · top 15,000 on PyPI
jsfGenerates realistic fake JSON data from JSON…
permissive · top 15,000 on PyPI