All Versions
22
Latest Version
Avg Release Cycle
63 days
Latest Release
-

Changelog History
Page 1

  • v5.0.0 Changes

    Note: This release is still under active development.

    โš  Warning: This release contains some breaking changes in API.

    Python compatibility:

    ๐Ÿ‘ Mimesis 5.0 supports Python 3.8, 3.9, and 3.10.

    ๐Ÿ‘ The Mimesis 4.1.3 is the last to support Python 3.6 and 3.7.

    Reworked:

    • A method Person().username(), now it accepts a parameters mask and drange.

    ๐Ÿ“‡ Renamed:

    • ๐Ÿ“‡ Renamed enums.UnitName to enums.MeasureUnit
    • ๐Ÿ“‡ Renamed enums.PrefixSign to enums.MetricPrefixSign
    • ๐Ÿ“‡ Renamed Business() to Finance()
    • Renamed BaseDataProvider.pull to BaseDataProvider._load_datafile
    • ๐Ÿ“‡ Renamed mimesis.providers.numbers.Numbers to mimesis.providers.numeric.Numeric

    ๐Ÿ›  Fixed:

    • ๐Ÿ›  Fix inheritance issues for Generic, now it inherits BaseProvider instead of BaseDataProvider
    • ๐Ÿ›  Fix locale-independent provider to make them accepts keyword-only arguments
    • ๐Ÿ›  Fix DenmarkSpecProvider CPR to generate valid CPR numbers.
    • ๐Ÿ›  Fix .cvv() to make it return string
    • ๐Ÿ›  Fix .cid() to make it return string
    • ๐Ÿ›  Fix .price() of Finance to make it return float.

    โž• Added:

    • Added support of **kwargs for a method add_provider of Generic() provider
    • โž• Added enum Locale to mimesis.enums and mimesis.locales
    • Added measure_unit and metric_prefix methods for the Science provider.
    • โž• Added .iterator() for schema.Schema
    • Added methods .slug() and ip_v4_with_port() for Internet()
    • โž• Added increment() method for Numbers()
    • Added methods .stock_ticker(), .stock_name() and .stock_exchange() for Finance()
    • โž• Added BinaryFile data provider which provides binary data files, such as .mp3, .mp4, .png, etc.

    โœ‚ Removed:

    • โœ‚ Removed module decorators. Use shortcuts.romanize to romanize Cyrillic strings.
    • 0๏ธโƒฃ Removed as_object parameter for .uuid(). Now it returns string by default, if you need uuid4 object then use .uuid_object()
    • โœ‚ Removed invalid names and surnames from person.json for ru locale
    • โœ‚ Removed data provider UnitSystem(), use Science() instead
    • โœ‚ Removed data provider Structure(), use schema.Schema instead
    • โœ‚ Removed builtin provider GermanySpecProvider
    • โœ‚ Removed data provider Clothing, use Numbers instead
    • โœ‚ Removed method copyright() of Finance()
    • โœ‚ Removed method network_protocol() of Internet()
    • Removed params with_port and port_range for ip_v4() of Internet(). Use ip_v4_with_port() instead.
    • Removed methods sexual_orientation, social_media_profile and avatar of the Person() provider.
    • โœ‚ Removed a bunch of useless custom exceptions and replaced them with FieldError.
    • Removed completely useless chemical_element and atomic_number methods of Science data provider and made it locale-independent.
  • v4.1.3 Changes

    โž• Added:

    • โž• Added py.typed file to the package
    • โž• Added Python 3.9 support
  • v4.1.2 Changes

    August 29, 2020

    ๐Ÿ›  Fix:

    • ๐Ÿ›  Fixed type hint issue for schema.Schema (#928 <https://github.com/lk-geimfari/mimesis/issues/928>_)
  • v4.1.1 Changes

    August 16, 2020

    ๐Ÿ”– Version 4.1.1

    ๐Ÿ›  Fix :

    • ๐Ÿ›  Fixed issue with non-unique uuid

    ๐Ÿ”– Version 4.1.0

    โž• Added :

    • โž• Added method manufacturer() for class Transport()
    • โž• Added sk (Slovak) locale support
    • โž• Added new parameter unique for method Person().email()
    • โž• Added new parameter as_object for method Cryptographic().uuid()

    โšก๏ธ Updated :

    • โšก๏ธ Update parameter end for some methods of provider Datetime() (Fix #870)
    • โšก๏ธ Update .price() to make it supported locales (Fix #875)

    ๐Ÿ“‡ Rename :

    • ๐Ÿ“‡ Renamed decorators.romanized to decorators.romanize
    • ๐Ÿ“‡ Renamed Random.schoice to Random.generate_string
    • ๐Ÿ“‡ Renamed BaseDataProvider.pull to BaseDataProvider._pull

    โœ‚ Removed :

    • โœ‚ Removed the deprecated download_image() function from the shortcuts module, use your own custom downloader instead.
    • โœ‚ Removed parameter version for method Cryptographic().uuid()
  • v4.1.0 Changes

    โž• Added:

    • โž• Added method manufacturer() for class Transport()
    • โž• Added sk (Slovak) locale support
    • โž• Added new parameter unique for method Person().email()
    • โž• Added new parameter as_object for method Cryptographic().uuid()

    โšก๏ธ Updated:

    • โšก๏ธ Updated parameter end for some methods of provider Datetime() (Fix #870)
    • โšก๏ธ Updated .price() to make it supported locales (Fix #875)

    ๐Ÿ“‡ Rename:

    • ๐Ÿ“‡ Renamed decorators.romanized to decorators.romanize
    • ๐Ÿ“‡ Renamed Random.schoice to Random.generate_string
    • ๐Ÿ“‡ Renamed BaseDataProvider.pull to BaseDataProvider._pull

    โœ‚ Removed:

    • โœ‚ Removed the deprecated download_image() function from the shortcuts module, use your own custom downloader instead.
    • โœ‚ Removed parameter version for method Cryptographic().uuid()
  • v4.0.0 Changes

    February 10, 2020

    ๐Ÿš€ .. warning:: This release (4.0.0) contains some insignificant but breaking changes in API, please be careful.

    โž• Added:

    • Added an alias first_name(*args, **kwargs) for the method Person().name()
    • Added an alias sex(*args, **kwargs) for the method Person().gender()
    • โž• Added method randstr() for class Random()
    • โž• Added method complexes() for the provider Numbers()
    • โž• Added method matrix for the provider Numbers()
    • โž• Added method integer_number() for the provider Numbers()
    • โž• Added method float_number() for the provider Numbers()
    • โž• Added method complex_number() for the provider Numbers()
    • โž• Added method decimal_number() for the provider Numbers()
    • Added method ip_v4_object() and ip_v6_object for the provider Internet(). Now you can generate IP objects, not just strings.
    • Added new parameter port_range for method ip_v4()
    • โž• Added new parameter separator for method Cryptographic().mnemonic_phrase()

    ๐Ÿ›  Fixed:

    • ๐Ÿ›  Fixed issue with invalid email addresses on using custom domains without @ for Person().email()

    โšก๏ธ Updated:

    • โšก๏ธ Updated names and surnames for locale ru
    • 0๏ธโƒฃ The floats() function in the Numbers provider now accepts arguments about the range of the generated float numbers and the rounding used. By default, it generates a list of n float numbers instead of a list of 10n elements.
    • The argument length of the function integers is renamed to n.

    โœ‚ Removed:

    • โœ‚ Removed the rating() method from the Numbers provider. It can be replaced with float_number().
    • โœ‚ Removed the primes() method from the Numbers provider.
    • โœ‚ Removed the digit() method from the Numbers provider. Use integer_number() instead.
    • โœ‚ Removed the between() method from the Numbers provider. Use integer_number() instead.
    • โœ‚ Removed the math_formula() method from the Science provider.
    • โœ‚ Removed rounding argument from floats(). Now it's precision.
  • v3.4.0 Changes

    .. note:: This version is still under development.

    โž• Added:

    • โž• Added an alias first_name() for Person().name()
    • โž• Added method randstr() for class Random()

    ๐Ÿ›  Fixed:

    • ๐Ÿ›  Fixed issue with invalid email addresses on using custom domains without @ for Person().email()

    โšก๏ธ Updated:

    • โšก๏ธ Updated names and surnames for locale ru
  • v3.3.1 Changes

    .. note:: This version is still under development.

    โž• Added:

    • โž• Added an alias first_name() for Person().name()
    • โž• Added method randstr() for class Random()
    • โž• Added method complexes() for provider Numbers()
    • โž• Added method matrix for provider Numbers()

    ๐Ÿ›  Fixed:

    • ๐Ÿ›  Fixed issue with invalid email addresses on using custom domains without @ for Person().email()

    โšก๏ธ Updated:

    • โšก๏ธ Updated names and surnames for locale ru
    • 0๏ธโƒฃ The floats() function in the Numbers provider now accepts arguments about the range of the generated float numbers and the rounding used. By default, it generates a list of n float numbers insted of a list of 10n elements.
    • The argument length of the function integers is renamed with n.

    โœ‚ Removed:

    • โœ‚ Removed the rating() function in the Numbers provider. It can be replaced with floats(end=5, n=0, rounding=1)[0].
  • v3.3.0 Changes

    July 31, 2019

    ๐Ÿ›  Fixed:

    • 0๏ธโƒฃ country() from the Address() provider now by default returns the country name of the current locale.
    • Separated Europe and Asia continents in Italian locale.

    โœ‚ Removed:

    • โœ‚ Removed duplicated names in the countries of et locale.
  • v3.2.0 Changes

    May 18, 2019

    Added :

    • โž• Added built-in provider DenmarkSpecProvider()
    • โž• Added built-in provider ItalianSpecProvider()
    • โž• Added meta classes for providers for internal usage (see #621)
    • โž• Added support for custom templates in Person().username()

    ๐Ÿ›  Fixed :

    • ๐Ÿ‘Œ Support of seed for custom providers
    • currency_iso_code from the Business() provider now by default returns the currency code of the current locale.

    โœ‚ Removed :

    • โœ‚ Removed multiple_choice() in the random module because it was unused and it could be replaced with random.choices.
    • โœ‚ Removed legacy method child_count() from provider Person()