Mimesis v1.0.0 Release Notes

  • This is a first major version of mimesis and here are breaking ๐Ÿ”„ changes (including changes related to support for only the latest ๐Ÿ”– versions of Python, i.e Python 3.5 and Python 3.6), so there is no backwards compatibility with early versions of this library.

    โž• Added:

    • โž• Added Field for generating data by schema
    • โž• Added new module typing.py for custom types
    • โž• Added new module enums.py and support of enums in arguments of methods
    • Added category_of_website and port to Internet data provider
    • โž• Added mnemonic_phrase for Cryptography data provider
    • Added price_in_btc and currency_symbol to Business data provider
    • โž• Added dna, rna and atomic_number to Science data provider
    • Added vehicle_registration_code to Transport data provider
    • โž• Added generate_string method for Random
    • โž• Added alias last_name for surname in Personal data provider
    • โž• Added alias province, region, federal_subject for state in Address data provider
    • โž• Added annotations for all methods and functions for supporting type hints
    • โž• Added new data provider Payment
    • Added new methods to Payment: credit_card_network, credit_card_owner

    ๐Ÿ›  Fixed:

    • ๐Ÿ›  Fixed issue with primes in Numbers data provider
    • ๐Ÿ›  Fixed issue with repeated output on using Code().custom code
    • Other minor fix and improvements

    ๐Ÿšš Mover/Removed:

    • Moved credit_card, credit_card_expiration_date, cid, cvv, paypal and bitcoin to Payment from Personal

    • ๐Ÿšš Moved custom_code to utils.py from providers.code.Code

    • โœ‚ Removed some useless methods

    • โœ‚ Removed module constants, in view of adding more convenient and useful module enums

    • โœ‚ Removed non informative custom exception WrongArgument and replaced one with KeyError and NonEnumerableError

    • ๐Ÿšš Parameter category of method hashtags is deprecated and was removed

    • โœ‚ Removed all methods from UnitSystem and replaced ones with unit().

    โšก๏ธ Updated/Renamed:

    • โšก๏ธ Updated data for de-at, en, fr, pl, pt-br, pt, ru, uk
    • โšก๏ธ Other minor updates in other languages
    • Renamed currency_iso to currency_iso_code in Business data provider