Releases: lk-geimfari/mimesis
Releases · lk-geimfari/mimesis
Version 5.1.0
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
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
toenums.MeasureUnit
- Rename
enums.PrefixSign
toenums.MetricPrefixSign
- Rename
Business()
toFinance()
Fixed:
- Fix inheritance issues for
Generic
, now it inheritsBaseProvider
instead ofBaseDataProvider
- 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()
ofFinance
to make it return float.
Added:
- Added class
Locale
tomimesis.locales
- Added
measure_unit()
and.metric_prefix()
methods forScience
- Added methods
.iterator()
and.loop()
forschema.Schema
- Added methods
.slug()
andip_v4_with_port()
forInternet()
- Added
incremental()
method forNumbers()
- Added methods
.stock_ticker()
,.stock_name()
and.stock_exchange()
forFinance()
- Added
BinaryFile
data provider which provides binary data files, such as.mp3
,.mp4
,.png
, etc.
Removed:
- Removed invalid names and surnames from
person.json
forru
locale - Removed data provider
UnitSystem()
, use insteadScience()
- Removed data provider
Structure()
, use insteadschema.Schema
- Removed
GermanySpecProvider
- Removed method
copyright()
ofFinance()
- Removed method
network_protocol()
ofInternet()
- Removed params
with_port
andport_range
for.ip_v4()
ofInternet()
. Use.ip_v4_with_port()
instead - Removed method
.sexual_orientation()
,.social_media_profile()
and.avatar()
ofPerson()
- Removed a bunch of useless custom exceptions and replaced them with
FieldError
- Removed completely useless
chemical_element
andatomic_number
methods ofScience
data provider and made it locale-independent
Version 4.1.3
Added:
- Added
py.typed
file to the package - Added
Python 3.9
support
Version 4.1.2
- Fixed #928
Version 4.1.1
Version 4.1.1
Fix:
- Fixed issue with non-unique uuid
Version 4.1.0
Added:
- Added method
manufacturer()
for classTransport()
- Added
sk
(Slovak) locale support - Added new parameter
unique
for methodPerson().email()
- Added new parameter
as_object
for methodCryptographic().uuid()
Updated:
- Update parameter
end
for some methods of providerDatetime()
(Fix #870) - Update
.price()
to make it supported locales (Fix #875)
Rename:
- Renamed
decorators.romanized
todecorators.romanize
- Renamed
Random.schoice
toRandom.generate_string
- Renamed
BaseDataProvider.pull
toBaseDataProvider._pull
Removed:
- Removed the deprecated
download_image()
function from theshortcuts
module, use your own custom downloader instead. - Removed parameter
version
for methodCryptographic().uuid()
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
.
Version v3.3.0
Fixed:
country()
from theAddress()
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
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 theBusiness()
provider now by default returns the currency code of the current locale.
Removed:
- Removed
multiple_choice()
in therandom
module because it was unused and it could be replaced withrandom.choices
. - Removed legacy method
child_count()
from providerPerson()
Version 3.1.0
Fixed:
- Fixed
UnsupportedField
on using fieldchoice
(#619)
Version 3.0.0
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()
forDatetime()
provider - Added method
formatted_date()
forDatetime()
provider - Added method
formatted_datetime()
forDatetime()
provider - Added support of timezones (optional) for
Datetime().datetime()
- Added method to bulk create datetime objects:
Datetime().bulk_create_datetimes()
- Added
kpp
forRussiaSpecProvider
- Added
PolandSpecProvider
builtin data provider - Added context manager to temporarily overriding locale -
BaseDataProvider.override_locale()
- Added method
token_urlsafe()
forCryptographic
provider - Added 6k+ username words
Updated:
- Updated documentation
- Updated data for
pl
andfr
- Updated SNILS algorithm for
RussiaSpecProvider
- Updated method
Datetime().time()
to return onlydatetime.time
object - Updated method
Datetime().date()
to return onlydatetime.date
object - Completely annotated all functions
- Locale independent providers inherit
BaseProvider
instead of
BaseDataProvider
(it's mean that locale independent providers does
not support parameterlocale
anymore) - Now you can add to Generic only providers which are subclasses of
BaseProvider
to ensure a single instance ofrandom.Random()
for
all providers
Renamed:
- Renamed provider
ClothingSizes
toClothing
, so now it can
contain any data related to clothing, not sizes only - Renamed
Science().dna()
toScience().dna_sequence()
- Renamed
Science().rna()
toScience().rna_sequence()
- Renamed module
helpers.py
torandom.py
- Renamed module
config.py
tolocales.py
- Renamed module
utils.py
toshortcuts.py
- Renamed
Cryptographic().bytes()
toCryptographic.token_bytes()
- Renamed
Cryptographic().token()
toCryptographic.token_hex()
Removed:
- Removed deprecated argument
fmt
forDatetime().date()
, useDatetime().formatted_date()
instead - Removed deprecated argument
fmt
forDatetime().time()
, useDatetime().formatted_time()
instead - Removed deprecated argument
humanize
forDatetime().datetime()
, useDatetime().formatted_datetime()
instead - Removed deprecated method
Science.scientific_article()
- Removed deprecated providers
Games
- Removed deprecated method
Structure().json()
, useschema.Schema()
andschema.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()