OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Developer Tools & SDKs

Syda

Syda is a Python library for generating synthetic test data with large language models. It supports structured datasets with relationships such as foreign keys, schema inference from existing databases, and unstructured documents generated from templates, including PDF output.

Independent OpenViST project profile, based on linked sources.

Syda — Relational test datasets with defined table relationships
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use Syda when test fixtures need linked synthetic records, document outputs, or both, and a Python code workflow with an LLM provider suits the project.

Who it is for

  • Python developers preparing realistic relational test datasets.
  • Teams testing data-processing workflows that need synthetic documents linked to structured records.
  • Developers who want to generate data from schemas inferred from a database.

Documented uses

  • Generate linked records across tables while preserving foreign-key relationships.
  • Create synthetic test data from an existing database's inferred schemas.
  • Produce template-based documents such as invoices, contracts or reports using generated data.
  • Create PDF test fixtures from HTML or Markdown templates.
Before you choose

Requirements & limits

  • The quick start requires a valid API key for the chosen model provider.
  • The documentation names OpenAI, Anthropic and Google providers; its quick-start example uses Anthropic.
  • Existing-database generation uses SQLAlchemy and requires the relevant database driver.
  • The document-generation guide describes HTML templates using Jinja2 and PDF output from HTML or Markdown templates.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Prepare Syda for schema-based data generation

Install Syda, configure a provider key and define a relational schema for the documented generation example.

Before you start

  • Python environment with pip
  • Valid API key for the chosen model provider
  • A provider and model name for ModelConfig

Steps

  1. Install the package with the command below.

    Documented command
    pip install syda
  2. Set the chosen provider's API key in a .env file or as an environment variable.

  3. Create a ModelConfig with the provider and model name, then initialize SyntheticDataGenerator.

  4. Define schemas, foreign-key relationships and sample sizes, then call generate_for_schemas with an output directory.

Expected outcome

The example is configured to generate related synthetic records for the supplied schemas in the specified output directory.

Guide limitations

  • Generation requires a valid provider API key.
  • The documented example describes a code workflow; it does not establish that it was executed.
Source-based practical guide

Generate data from an existing database

Use the documented database loader workflow to infer schemas and generate related synthetic rows.

Before you start

  • Syda and SQLAlchemy installed
  • A SQLAlchemy-compatible database and connection string
  • The database's required driver; the documentation gives psycopg2-binary for PostgreSQL and pymysql for MySQL
  • A valid model-provider API key

Steps

  1. Install Syda and SQLAlchemy, plus the driver required for the database.

  2. Create a SyntheticDataGenerator with a ModelConfig and initialize DatabaseSchemaLoader with the database connection string.

  3. Call load_schemas() and pass the returned schemas to generate_for_schemas with an output directory.

  4. Use write_to_database(results) to write generated rows back in foreign-key-safe order.

Expected outcome

The documented workflow infers schemas from the database, generates synthetic data and provides a step for writing rows back.

Guide limitations

  • The example requires database credentials and an appropriate SQLAlchemy driver.
  • The documentation lists compatible database families but does not establish execution against a particular database.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
20 November 2026
Original website title
Syda - AI-Powered Synthetic Test Data Generation | Python Library - Syda Documentation · Official homepage title · retained in its source language