Skip to main content

generate_schema

Generate a schema file from a data file.

Module

Functions

gen_schema

def gen_schema(data_file: str, schema_file: str, **datasource_kwargs: Any)> None:

Generates a schema file from a data file.

Arguments

  • data_file: The path to the data file.
  • schema_file: The path to save the generated schema to.
  • datasource_kwargs: Additional keyword arguments to pass to the schema alongside the data.