Releases: lk-geimfari/mimesis
Releases · lk-geimfari/mimesis
Version 12.0.0
- Python 3.8 and 3.9 are no longer supported.
- Added support for field aliases.
- Added the method
calver
forDevelopment
. - Added the method
stage
forDevelopment
. - Added the method
country_emoji_flag
forAddress
. - Removed the method
hashtags
from theInternet
provider. Use thewords
method from theText
provider instead. - Removed the
providers
parameter forField
andFieldset
. Use custom field handlers instead. - Removed the parameters
pre_release
andcalver
forDevelopment.version
. Use thestage
andcalver
methods instead. - Moved the method
emoji
from theInternet
provider to theText
provider. - Moved the method
dsn
from theDevelopment
provider to theInternet
provider. - The
Text().emoji()
method now supports thecategory
parameter andEmojiCategory
enum. It also returns an emoji instead of an emoji shortcut string. - Added the decorator
@handle
forField
andFieldset
to register custom fields. - Renamed
register_field
toregister_handler
forField
andFieldset
. - Renamed
register_fields
toregister_handlers
forField
andFieldset
. - Renamed
unregister_field
tounregister_handler
forField
andFieldset
. - Renamed
unregister_fields
tounregister_handlers
forField
andFieldset
. - Renamed
unregister_all_fields
tounregister_all_handlers
forField
andFieldset
.
Version 11.1.0
What's changed:
- Added validation for custom field names.
Version 11.0.0
What's Changed
- Custom field handlers by @lk-geimfari in #1399
Version 10.2.1
- Fix order of imports
Version 10.2.0
Version 10.2.0
Added:
- Improved imports
- Added a new method
system_quality_attribute()
forDevelopment
.
Version 10.1.0
Added:
- Added a new enum
TimestampFormat
for thetimestamp()
method.
Updated:
- The method
timestamp()
forDatetime()
now expects one of the following timestamp formats:TimestampFormat.POSIX
,TimestampFormat.RFC_3339
, orTimestampFormat.ISO_8601
. This method no longer accepts theposix
parameter. - The
datetime()
method now has default parameters start and end set to the current year.
Version 10.0.0
Updated:
romanize()
is a key function now. See docs for more information.
Removed:
- Removed method
swear_word()
ofText()
. This method is inappropriate and lacks practical utility.
Version 9.0.0
Updated:
- Key functions now may accept additional argument
random
.
Removed:
- The
loop
method for theSchema
, which was considered deprecated and unsafe, has been removed. - The
iterations
parameter for all methods ofSchema
has been removed. Instead, you now have to specify the number of iterations on instantiation ofSchema
passing theiterations
parameter. - The
iterator
method forSchema
has been removed. Instead, you can now use an instance ofSchema
directly as an iterator. - The multiplication is no longer supported for
Schema
. Instead, you can use theiterations
parameter on instantiation ofSchema
.
Added:
- Add
weighted_choice()
method forRandom()
. See docs for more information. - Add module
keys
for generating key functions.
Version 8.0.0
Added
Fieldset()
to generate a set of fields at once. See docs for more information.bank()
method forFinance()
.default_country
forAddress()
, which always returns the country associated with the current locale (i.eUnited States
foren
,Россия
forru
).
Removed:
- Removed parameter
allow_random
forcountry()
. Now method returns random country by default.
Version 7.1.0
Added
pytest-randomly
integration, not by default it will set the global seed for every provider and all fields. This can still be reseeded as usual.http_request_headers()
andhttp_response_headers()
methods forInternet
provider. These methods return a dictionary of common headers.reseed()
method forField
.
Removed:
stock_image()
method which required an active HTTP connection. Usestock_image_url
instead.