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 ofPython
, i.ePython 3.5
andPython 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
andport
toInternet
data provider - โ Added
mnemonic_phrase
forCryptography
data provider - Added
price_in_btc
andcurrency_symbol
toBusiness
data provider - โ Added
dna
,rna
andatomic_number
toScience
data provider - Added
vehicle_registration_code
toTransport
data provider - โ Added
generate_string
method forRandom
- โ Added alias
last_name
forsurname
inPersonal
data provider - โ Added alias
province
,region
,federal_subject
forstate
inAddress
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
inNumbers
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
andbitcoin
toPayment
fromPersonal
๐ Moved
custom_code
toutils.py
fromproviders.code.Code
โ Removed some useless methods
โ Removed module
constants
, in view of adding more convenient and useful moduleenums
โ Removed non informative custom exception
WrongArgument
and replaced one withKeyError
andNonEnumerableError
๐ Parameter
category
of methodhashtags
is deprecated and was removedโ Removed all methods from
UnitSystem
and replaced ones withunit()
.
โก๏ธ Updated/Renamed:
- โก๏ธ Updated data for
de-at
,en
,fr
,pl
,pt-br
,pt
,ru
,uk
- โก๏ธ Other minor updates in other languages
- Renamed
currency_iso
tocurrency_iso_code
in Business
data provider
- โ Added