-
Notifications
You must be signed in to change notification settings - Fork 4
YAML Schema Profile Examples
Ravi Kiran Pagidi edited this page Jun 28, 2026
·
1 revision
Planned. YAML schema files are not accepted by generate_from_schema today.
A YAML schema profile would let teams version reusable types and generation rules outside Python code.
# Planned, not runnable today
table: customers
fields:
customer_id:
type: string
prefix: CUST
age:
type: int
min: 18
max: 85
status:
type: string
values: [Active, Inactive, Pending]# Future shape
df = generate_from_schema("schemas/customers.yml", rows=1000)customer_id age status
CUST000001 34 Active
Use a Python type mapping plus custom_rules, then write the returned DataFrame:
df.to_csv("customers.csv", index=False)
df.to_parquet("customers.parquet", index=False)Simple YAML dataset recipes are supported through generate_from_recipe. Recipe support is separate from schema profile support.