Glossary¶
- field¶
A string that represents a method of a data provider.
- field handler¶
A custom callable that generates data for a field. Field handlers accept a
Randominstance and keyword arguments, and can be registered usingregister_handler()or thehandle()decorator.- fieldset¶
A list of fields.
- key function¶
A callable that transforms the result of a field after generation. Key functions are applied using the
keyparameter in field operations.See
keys- locale¶
A locale that represents country-specific data for locale-dependent data providers.
See
Locale- localized provider¶
A provider that depends on external JSON files with localized data.
- provider¶
A class that provides various data generators.
- schema builder¶
A declarative builder for generating related fake datasets with foreign keys, nested schemas, and automatic dependency resolution.
See
SchemaBuilder- schema context¶
A context object passed to
map()transformers that need more than the item itself. It exposes the current row index, schema seed, and shared run metadata set viawith_context()(for example tenant or environment labels).See
SchemaContextand the guide section Transforming Items with map() and SchemaContext in Structured Data Generation.- universal provider¶
A provider without external dependencies that can be used for any locale.