Mimesis is a powerful Python library that empowers developers to generate massive amounts of synthetic data efficiently.
factory_boy
plugin.mimesis-factory
into Mimesis itself. See mimesis-factory#246 and mimesis#1494 for more information.Locale.HR
.pytest-mimesis
a part of Mimesis itself. See #1473Generic
. See #1471birthdate()
method to the Person
provider. See #1470.age()
and work_experience()
methods have been removed from the Person
provider due to a lack of practical utility. Use person.random.randint()
when you need to generate random integer.Great news for fellow Croatians! Mimesis now supports the Croatian language (Locale.HR
). A big appreciation to @CerealKiller0807 for this contribution.
gender_code()
and gender_symbol()
have been added for the Person
provider.gender()
and sex()
no longer accept arguments like iso5218
and symbol
. Please use gender_code()
and gender_symbol()
instead.mimesis.providers.generic.py
, enabling type hints for Generic
.calver
for Development
.stage
for Development
.country_emoji_flag
for Address
.hashtags
from the Internet
provider. Use the words
method from the Text
provider instead.providers
parameter for Field
and Fieldset
. Use custom field handlers instead.pre_release
and calver
for Development.version
. Use the stage
and calver
methods instead.emoji
from the Internet
provider to the Text
provider.dsn
from the Development
provider to the Internet
provider.Text().emoji()
method now supports the category
parameter and EmojiCategory
enum. It also returns an emoji instead of an emoji shortcut string.@handle
for Field
and Fieldset
to register custom fields.register_field
to register_handler
for Field
and Fieldset
.register_fields
to register_handlers
for Field
and Fieldset
.unregister_field
to unregister_handler
for Field
and Fieldset
.unregister_fields
to unregister_handlers
for Field
and Fieldset
.unregister_all_fields
to unregister_all_handlers
for Field
and Fieldset
.What's changed: