β Added:
mimesis/locales.pyβ‘οΈ Updated:
Internet provider works with stock_imagerandom module works, now exposing global Random instancechoice to make it a provider with more output typesπ Fixed:
ROMANIZED_DICT from mutatingappveyour buildsflake8-builtins checksmypy issues with strict modechoice with unique=Trueβ Removed:
utils.locale_info which duplicate utils.setup_localeπ .. note:: This release (2.0.0) contains some breaking changes and this means that you should update names of classes and methods in your code.
β Added:
IOC and FIFA for enum object CountryCodeschema.Fielddms for coordinates, longitude, latitudeβ Added method Text.rgb_color
β Added support of parameter safe for method Text.hex_color
Added an alias zip_code for Address.postal_code
Optimizations:
schema.Fieldβ‘οΈ Updated/Renamed:
integersPersonal to PersonStructured to StructureClothingSizes to Clothingpersonal.json to person.json for all localescountry_iso_code to country_code in Address data providerβ Added :
RussiaSpecProvider.innπ Fixed :
providers.Cryptographic.bytesOptimizations :
Text.hex_colorAddress.coordinatesInternet.ip_v6β Tests :
β Added:
helpers.Random.multiple_choiceπ Fixed:
seed #325 <https://github.com/lk-geimfari/mimesis/issues/325>__Optimizations:
username()π Mover/Removed:
custom_code to helpers.RandomOptimizations:
custom_code and it works faster by β 50%β Added:
ethereum_address for Paymentget_current_locale for BaseProviderboolean for Development which returns random boolean valueintegers for NumbersUkraineSpecProviderkey functions for the object schema.Fieldschema.Schema which helps generate data by schemaπ Fixed:
full_name when method return female surname for male name and vice versaschema.Fieldβ‘οΈ Updated:
version for supporting pre-releases and calendar versioninginternational, european and custom to international_size, european_size and custom_sizeβ‘οΈ Updated:
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:
Field for generating data by schematyping.py for custom typesenums.py and support of enums in arguments of methodscategory_of_website and port to Internet data providermnemonic_phrase for Cryptography data providerprice_in_btc and currency_symbol to Business data providerdna, rna and atomic_number to Science data providervehicle_registration_code to Transport data providergenerate_string method for Randomlast_name for surname in Personal data providerprovince, region, federal_subject for state in Address data providerPaymentPayment: credit_card_network, credit_card_ownerπ Fixed:
primes in Numbers data providerCode().custom codeπ 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:
de-at, en, fr, pl, pt-br, pt, ru, ukcurrency_iso to currency_iso_code in Business data provider