Skip to content
프로젝트

소개

Syncora SDK is a Python client library for interacting with the Syncora synthetic data platform. It allows you to generate high-quality synthetic datasets from a variety of sources including CSV, dataframes, and raw text. With just a few lines of code, you can bootstrap synthetic data pipelines in your analytics, testing, and machine learning workflows.

개발 도구

이 수치를 측정하는 방법

What you can do

  • Easy initialization with API key or environment variable
  • Multiple data sources: CSV, Pandas DataFrame, JSON text
  • Data types: Tabular, Time-series, JSONL
  • Flexible configuration: Control number of rows, target columns, constraints

측정된 스타 증가

in 24h
0
in 7 days
-1
in 15 days
-1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Syncora SDK

Syncora SDK is a Python client library for interacting with the Syncora synthetic data platform. It allows you to generate high-quality synthetic datasets from a variety of sources including CSV, dataframes, and raw text. With just a few lines of code, you can bootstrap synthetic data pipelines in your analytics, testing, and machine learning workflows.


Features

  • Easy initialization with API key or environment variable
  • Multiple data sources: CSV, Pandas DataFrame, JSON text
  • Data types: Tabular, Time-series, JSONL
  • Flexible configuration: Control number of rows, target columns, constraints
  • Asynchronous support for large datasets
  • Built‑in error handling and logging

Installation

Install the SDK via pip:

pip install syncora-sdk

Requires Python 3.7 or higher.


Quick Start

1. Set your API key

Head over to https://syncora.ai, register for an account, and generate your API key from the dashboard.

2. Initialize the client and generator

from syncora_sdk import SyncoraClient, SyntheticDataGenerator
from pathlib import Path


# Client with API key
client = SyncoraClient(api_key="your-syncora-api-key")

# Instantiate the synthetic data generator
syntheticDataGenerator = SyntheticDataGenerator(client)

3. Generate synthetic tabular data from a CSV file

file_path = Path("Sonar.csv")

response = syntheticDataGenerator.generate_from_file(
    file_path=file_path,
    type="Tabular",
    numberOfRows=100,
    targetColumn="Freq_1"
)

print(response)

This will return a JSON response with a link to download the generated synthetic dataset.


API Reference

SyncoraClient

Method Description
__init__(api_key) Initialize client with your api key.

SyntheticDataGenerator

Method Description
generate_from_file(file_path, type, ...) Generate synthetic data from a file (CSV, JSONL, etc.)

Common Parameters:

  • type (str): Type of data to generate. One of ["Tabular", "TimeSeries", "JSONL"]
  • numberOfRows (int): Number of rows or records to generate.
  • targetColumn (str, optional): Column on which to focus generation for tabular data.

Error Handling

All SDK methods raise SyncoraError on failure. You can catch and inspect:

from syncora_sdk import SyncoraError

try:
    syntheticDataGenerator.generate_from_file(...)
except SyncoraError as e:
    print(f"Error: {e.code} – {e.message}")

관련 프로젝트 살펴보기

불러오는 중…