Mimesis is a robust data generator for Python that can produce a wide range of fake data in multiple languages.
MIT License
Bot releases are hidden (Show)
mimesis.enums.DurationUnit
enum..duration()
method for Datetime
provider to generate random durations.Published by lk-geimfari 7 months ago
Published by lk-geimfari 8 months ago
factory_boy
plugin.Published by lk-geimfari 8 months ago
mimesis-factory
into Mimesis itself. See mimesis-factory#246 and mimesis#1494 for more information.Published by lk-geimfari 9 months ago
Locale.HR
.pytest-mimesis
a part of Mimesis itself. See #1473Published by lk-geimfari 9 months ago
Generic
. 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.Published by lk-geimfari 9 months ago
Great news for fellow Croatians! Mimesis now supports the Croatian language (Locale.HR
). A big appreciation to @CerealKiller0807 for this contribution.
Published by lk-geimfari 9 months ago
Published by lk-geimfari 10 months ago
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
.Published by lk-geimfari 10 months ago
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
.Published by lk-geimfari about 1 year ago
What's changed:
Published by lk-geimfari about 1 year ago
Published by lk-geimfari about 1 year ago
Published by lk-geimfari about 1 year ago
Added:
system_quality_attribute()
for Development
.Published by lk-geimfari over 1 year ago
Added:
TimestampFormat
for the timestamp()
method.Updated:
timestamp()
for Datetime()
now expects one of the following timestamp formats: TimestampFormat.POSIX
, TimestampFormat.RFC_3339
, or TimestampFormat.ISO_8601
. This method no longer accepts the posix
parameter.datetime()
method now has default parameters start and end set to the current year.Published by lk-geimfari over 1 year ago
Updated:
romanize()
is a key function now. See docs for more information.Removed:
swear_word()
of Text()
. This method is inappropriate and lacks practical utility.Published by lk-geimfari over 1 year ago
Updated:
random
.Removed:
loop
method for the Schema
, which was considered deprecated and unsafe, has been removed.iterations
parameter for all methods of Schema
has been removed. Instead, you now have to specify the number of iterations on instantiation of Schema
passing the iterations
parameter.iterator
method for Schema
has been removed. Instead, you can now use an instance of Schema
directly as an iterator.Schema
. Instead, you can use the iterations
parameter on instantiation of Schema
.Added:
weighted_choice()
method for Random()
. See docs for more information.keys
for generating key functions.Published by lk-geimfari over 1 year ago
Added
Fieldset()
to generate a set of fields at once. See docs for more information.bank()
method for Finance()
.default_country
for Address()
, which always returns the country associated with the current locale (i.e United States
for en
, Россия
for ru
).Removed:
allow_random
for country()
. Now method returns random country by default.Published by lk-geimfari over 1 year ago
Added
pytest-randomly
integration, not by default it will set the global seed for every provider and all fields. This can still be reseeded as usual.http_request_headers()
and http_response_headers()
methods for Internet
provider. These methods return a dictionary of common headers.reseed()
method for Field
.Removed:
stock_image()
method which required an active HTTP connection. Use stock_image_url
instead.Published by lk-geimfari almost 2 years ago
Updated:
Removed:
model_mask
for .airplane()
.truck()
of Transport()
, use .menufacturer()
instead..cpu_model()
of Hardware()
.