Skip to content

Releases: lk-geimfari/mimesis

Version 12.0.0

07 Jan 11:45
v12.0.0
cf10100
Compare
Choose a tag to compare
  • 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.

Version 11.1.0

19 Aug 20:40
v11.1.0
2a4f838
Compare
Choose a tag to compare

What's changed:

  • Added validation for custom field names.

Version 11.0.0

19 Aug 11:47
v11.0.0
e30943b
Compare
Choose a tag to compare

What's Changed

Version 10.2.1

06 Aug 18:17
v10.2.1
779d47b
Compare
Choose a tag to compare
  • Fix order of imports

Version 10.2.0

06 Aug 18:04
v10.2.0
e1f69ab
Compare
Choose a tag to compare

Version 10.2.0

Added:

  • Improved imports
  • Added a new method system_quality_attribute() for Development.

Version 10.1.0

26 May 18:25
v10.1.0
ca214b8
Compare
Choose a tag to compare

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.

Version 10.0.0

20 May 11:47
v10.0.0
07d1c56
Compare
Choose a tag to compare

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.

Version 9.0.0

30 Apr 12:40
v9.0.0
ca57f38
Compare
Choose a tag to compare

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:

Version 8.0.0

16 Apr 14:18
v8.0.0
991f721
Compare
Choose a tag to compare

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.

Version 7.1.0

06 Apr 21:10
v7.1.0
6b9df62
Compare
Choose a tag to compare

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.