DataDesigner Engine
raw JSON → 0.5.9 verified Fri May 01 auth: no python
Generation engine for DataDesigner synthetic data generation. Current version 0.5.9, requires Python >=3.10. Pre-release/early stage, rapid development.
pip install data-designer-engine Common errors
error ModuleNotFoundError: No module named 'data-designer-engine' ↓
cause Trying to import using pip package name (with hyphens) instead of Python module name (with underscores).
fix
Use 'from data_designer_engine import ...' (underscores).
error ConnectionError: 401 Client Error: Unauthorized for url ↓
cause No or invalid API key provided.
fix
Set DATADESIGNER_API_KEY environment variable or pass api_key parameter.
error TypeError: __init__() got an unexpected keyword argument 'api_key' ↓
cause The API or class signature changed in a minor version update.
fix
Check version compatibility; ensure you have version 0.5.9 or later. Upgrade: pip install --upgrade data-designer-engine
Warnings
breaking The package is in pre-release (0.x). Expect breaking changes between minor versions. ↓
fix Pin to exact version: data-designer-engine==0.5.9
gotcha The import path uses underscores, not hyphens. Common mistake: from data-designer-engine import ... causes SyntaxError. ↓
fix Use: from data_designer_engine import ...
gotcha API key is required; engine will raise ConnectionError if missing. Not handled in default init. ↓
fix Set DATADESIGNER_API_KEY environment variable or pass it explicitly.
Imports
- DataDesignerEngine
from data_designer_engine import DataDesignerEngine
Quickstart
from data_designer_engine import DataDesignerEngine
engine = DataDesignerEngine(
api_key=os.environ.get('DATADESIGNER_API_KEY', ''),
api_base=os.environ.get('DATADESIGNER_API_BASE', 'https://api.datadesigner.com/v1')
)
result = engine.generate(
prompt="Create a CSV with 10 rows of customer data",
output_format="csv"
)
print(result)