-
Notifications
You must be signed in to change notification settings - Fork 346
Open
Labels
featureFeature requestFeature request
Description
Let's say I have this typed dict:
class User(TypedDict):
email: str
password: strI would love to just pass this metadata to mimesis to get my random data without any code duplication. Example of API that I am thinking of:
mf = Field(locale=Locale.RU)
schema = Schema(iterations=1, typed_dict_provider=User, schema=lambda: {
# Customization is still fine:
'email': mf(
'person.email',
domains=settings.TRUSTED_DOMAINS,
),
})So, this will:
- Generate
passwordas a text, with no modifications - Generate
emailwith a given modification
lk-geimfari
Metadata
Metadata
Assignees
Labels
featureFeature requestFeature request