mimesis

Mimesis is a robust data generator for Python that can produce a wide range of fake data in multiple languages.

MIT License

Downloads
694.1K
Stars
4.3K
Committers
119

Bot releases are hidden (Show)

mimesis - Version 17.0.0 Latest Release

Published by lk-geimfari 5 months ago

  • Added mimesis.enums.DurationUnit enum.
  • Added .duration() method for Datetime provider to generate random durations.
mimesis - Version 16.0.0

Published by lk-geimfari 7 months ago

  • Fix file permissions in Windows.
  • Removed unsafe and inaproppriate words from datasets. See #1511.
mimesis - Version 15.1.0

Published by lk-geimfari 8 months ago

  • Minor fixes in factory_boy plugin.
mimesis - v15.0.0

Published by lk-geimfari 8 months ago

mimesis - Version 14.0.0

Published by lk-geimfari 9 months ago

  • Fixed street suffixes for locale Locale.HR.
  • Made pytest-mimesis a part of Mimesis itself. See #1473
mimesis - Version 13.1.0

Published by lk-geimfari 9 months ago

Version 13.1.0

  • Fixed type hints for Generic. See #1471
  • Added the birthdate() method to the Person provider. See #1470.
  • The 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.
mimesis - Version 13.0.0

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.

mimesis - Version 12.1.1

Published by lk-geimfari 9 months ago

  • Fixed minimal required version of Python.
mimesis - Version 12.1.0

Published by lk-geimfari 10 months ago

  • Methods gender_code() and gender_symbol() have been added for the Person provider.
  • The methods gender() and sex() no longer accept arguments like iso5218 and symbol. Please use gender_code() and gender_symbol() instead.
  • Added a stub for mimesis.providers.generic.py, enabling type hints for Generic.
mimesis - Version 12.0.0

Published by lk-geimfari 10 months ago

  • Python 3.8 and 3.9 are no longer supported.
  • Added support for field aliases.
  • Added the method calver for Development.
  • Added the method stage for Development.
  • Added the method country_emoji_flag for Address.
  • Removed the method hashtags from the Internet provider. Use the words method from the Text provider instead.
  • Removed the providers parameter for Field and Fieldset. Use custom field handlers instead.
  • Removed the parameters pre_release and calver for Development.version. Use the stage and calver methods instead.
  • Moved the method emoji from the Internet provider to the Text provider.
  • Moved the method dsn from the Development provider to the Internet provider.
  • The Text().emoji() method now supports the category parameter and EmojiCategory enum. It also returns an emoji instead of an emoji shortcut string.
  • Added the decorator @handle for Field and Fieldset to register custom fields.
  • Renamed register_field to register_handler for Field and Fieldset.
  • Renamed register_fields to register_handlers for Field and Fieldset.
  • Renamed unregister_field to unregister_handler for Field and Fieldset.
  • Renamed unregister_fields to unregister_handlers for Field and Fieldset.
  • Renamed unregister_all_fields to unregister_all_handlers for Field and Fieldset.
mimesis - Version 11.1.0

Published by lk-geimfari about 1 year ago

What's changed:

  • Added validation for custom field names.
mimesis - Version 11.0.0

Published by lk-geimfari about 1 year ago

What's Changed

mimesis - Version 10.2.1

Published by lk-geimfari about 1 year ago

  • Fix order of imports
mimesis - Version 10.2.0

Published by lk-geimfari about 1 year ago

Version 10.2.0

Added:

  • Improved imports
  • Added a new method system_quality_attribute() for Development.
mimesis - Version 10.1.0

Published by lk-geimfari over 1 year ago

Added:

  • Added a new enum TimestampFormat for the timestamp() method.

Updated:

  • The method 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.
  • The datetime() method now has default parameters start and end set to the current year.
mimesis - Version 10.0.0

Published by lk-geimfari over 1 year ago

Updated:

  • romanize() is a key function now. See docs for more information.

Removed:

  • Removed method swear_word() of Text(). This method is inappropriate and lacks practical utility.
mimesis - Version 9.0.0

Published by lk-geimfari over 1 year ago

Updated:

  • Key functions now may accept additional argument random.

Removed:

  • The loop method for the Schema, which was considered deprecated and unsafe, has been removed.
  • The 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.
  • The iterator method for Schema has been removed. Instead, you can now use an instance of Schema directly as an iterator.
  • The multiplication is no longer supported for Schema. Instead, you can use the iterations parameter on instantiation of Schema.

Added:

mimesis - Version 8.0.0

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:

  • Removed parameter allow_random for country(). Now method returns random country by default.
mimesis - Version 7.1.0

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.
mimesis - Version 7.0.0

Published by lk-geimfari almost 2 years ago

Version 7.0.0

Updated:

  • Actualized data
  • Removed outdated data

Removed:

  • Removed parameter model_mask for .airplane()
  • Removed method .truck() of Transport(), use .menufacturer() instead.
  • Removed method .cpu_model() of Hardware().