Skip to content

Releases: lk-geimfari/mimesis

Version 5.1.0

05 Nov 21:29
4d0bde8
Compare
Choose a tag to compare

Fixed:

  • Fix mechanism of reseeding of the internal providers of Generic (See #1115).

Removed:

  • Removed inappropriate words from mimesis.data.int.USERNAMES.

Version 5.0.0

20 Jun 13:16
ff4a107
Compare
Choose a tag to compare

Version 5.0.0

Note: This release is still under active development.
Warning: This release contains some breaking changes in API.

Renamed:

  • Rename enums.UnitName to enums.MeasureUnit
  • Rename enums.PrefixSign to enums.MetricPrefixSign
  • Rename Business() to Finance()

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 class Locale to mimesis.locales
  • Added measure_unit() and .metric_prefix() methods for Science
  • Added methods .iterator() and .loop() for schema.Schema
  • Added methods .slug() and ip_v4_with_port() for Internet()
  • Added incremental() 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 invalid names and surnames from person.json for ru locale
  • Removed data provider UnitSystem(), use instead Science()
  • Removed data provider Structure(), use instead schema.Schema
  • Removed GermanySpecProvider
  • 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 method .sexual_orientation(), .social_media_profile() and .avatar() of Person()
  • 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

Version 4.1.3

21 Dec 11:10
310092c
Compare
Choose a tag to compare

Added:

  • Added py.typed file to the package
  • Added Python 3.9 support

Version 4.1.2

29 Aug 11:06
139c038
Compare
Choose a tag to compare

Version 4.1.1

16 Aug 12:23
8f2f259
Compare
Choose a tag to compare

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()

Version 4.0.0

10 Feb 08:58
Compare
Choose a tag to compare

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
  • 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 10^n 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 the rounding argument from floats(). Now it's precision.

Version v3.3.0

31 Jul 16:06
Compare
Choose a tag to compare

Fixed:

  • 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.

Version 3.2.0

18 May 10:36
Compare
Choose a tag to compare

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()

Version 3.1.0

18 May 10:38
Compare
Choose a tag to compare

Fixed:

  • Fixed UnsupportedField on using field choice (#619)

Version 3.0.0

15 Dec 15:49
Compare
Choose a tag to compare

Warning: This release (3.0.0) contains some breaking changes in API.
Warning: In this release (3.0.0) we've reject support of Python 3.5.

Added:

  • Added provider Choice()
  • Added method formatted_time() for Datetime() provider
  • Added method formatted_date() for Datetime() provider
  • Added method formatted_datetime() for Datetime() provider
  • Added support of timezones (optional) for Datetime().datetime()
  • Added method to bulk create datetime objects:
    Datetime().bulk_create_datetimes()
  • Added kpp for RussiaSpecProvider
  • Added PolandSpecProvider builtin data provider
  • Added context manager to temporarily overriding locale -
    BaseDataProvider.override_locale()
  • Added method token_urlsafe() for Cryptographic provider
  • Added 6k+ username words

Updated:

  • Updated documentation
  • Updated data for pl and fr
  • Updated SNILS algorithm for RussiaSpecProvider
  • Updated method Datetime().time() to return only datetime.time
    object
  • Updated method Datetime().date() to return only datetime.date
    object
  • Completely annotated all functions
  • Locale independent providers inherit BaseProvider instead of
    BaseDataProvider (it's mean that locale independent providers does
    not support parameter locale anymore)
  • Now you can add to Generic only providers which are subclasses of
    BaseProvider to ensure a single instance of random.Random() for
    all providers

Renamed:

  • Renamed provider ClothingSizes to Clothing, so now it can
    contain any data related to clothing, not sizes only
  • Renamed Science().dna() to Science().dna_sequence()
  • Renamed Science().rna() to Science().rna_sequence()
  • Renamed module helpers.py to random.py
  • Renamed module config.py to locales.py
  • Renamed module utils.py to shortcuts.py
  • Renamed Cryptographic().bytes() to Cryptographic.token_bytes()
  • Renamed Cryptographic().token() to Cryptographic.token_hex()

Removed:

  • Removed deprecated argument fmt for Datetime().date(), use Datetime().formatted_date() instead
  • Removed deprecated argument fmt for Datetime().time(), use Datetime().formatted_time() instead
  • Removed deprecated argument humanize for Datetime().datetime(), use Datetime().formatted_datetime() instead
  • Removed deprecated method Science.scientific_article()
  • Removed deprecated providers Games
  • Removed deprecated method Structure().json(), use schema.Schema() and schema.Field instead
  • Removed deprecated and useless method: Development().backend()
  • Removed deprecated and useless method: Development().frontend()
  • Removed deprecated and useless method:Development().version_control_system()
  • Removed deprecated and useless method: Development().container()
  • Removed deprecated and useless method: Development().database()