Version 4.0.0
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 methodPerson().name()
- Added an alias
.sex(*args, **kwargs)
for the methodPerson().gender()
- Added method
randstr()
for classRandom()
- Added method
complexes()
for the providerNumbers()
- Added method
matrix
for the providerNumbers()
- Added method
integer_number()
for the providerNumbers()
- Added method
float_number()
for the providerNumbers()
- Added method
complex_number()
for the providerNumbers()
- Added method
decimal_number()
for the providerNumbers()
- Added method
ip_v4_object()
andip_v6_object
for the providerInternet()
. Now you can generate IP objects, not just strings. - Added new parameter
port_range
for methodip_v4()
- Added new parameter
separator
for methodCryptographic().mnemonic_phrase()
Fixed:
- Fixed issue with invalid email addresses on using custom domains without
@
forPerson().email()
Updated:
- Updated names and surnames for locale
ru
- The
floats()
function in theNumbers
provider now accepts arguments about the range of the generated float
numbers and the rounding used. By default, it generates a list ofn
float numbers insted of a list of 10^n elements. - The argument
length
of the functionintegers
is renamed ton
.
Removed:
- Removed the
rating()
method from theNumbers
provider. It can be replaced withfloat_number()
. - Removed the
primes()
method from theNumbers
provider. - Removed the
digit()
method from theNumbers
provider. Useinteger_number()
instead. - Removed the
between()
method from theNumbers
provider. Useinteger_number()
instead. - Removed the
math_formula()
method from theScience
provider. - Removed the
rounding
argument fromfloats()
. Now it'sprecision
.