Mimesis

Latest version: v16.0.0

Safety actively analyzes 628924 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 8

12.1.0

--------------

- Methods ``gender_code()`` and ``gender_symbol()`` have been added for the ``Person`` provider.
- The methods ``gender()`` and ``sex()`` no longer accept arguments like ``iso5218`` and ``symbol``. Please use ``gender_code()`` and ``gender_symbol()`` instead.
- Added a stub for ``mimesis.providers.generic.py``, enabling type hints for ``Generic``.

12.0.0

--------------

- Python 3.8 and 3.9 are no longer supported.
- Added support for field aliases. See the docs for more information.
- Added the method `calver` for `Development`.
- Added the method `stage` for `Development`.
- Added the method `country_emoji_flag` for `Address`.
- Removed the method `hashtags` from the `Internet` provider. Use the `words` method from the `Text` provider instead.
- Removed the `providers` parameter for `Field` and `Fieldset`. Use custom field handlers instead.
- Removed the parameters `pre_release` and `calver` for `Development.version`. Use the `stage` and `calver` methods instead.
- Moved the method `emoji` from the `Internet` provider to the `Text` provider.
- Moved the method `dsn` from the `Development` provider to the `Internet` provider.
- The `Text().emoji()` method now supports the `category` parameter and `EmojiCategory` enum. It also returns an emoji instead of an emoji shortcut string.
- Added the decorator `handle` for `Field` and `Fieldset` to register custom fields.
- Renamed `register_field` to `register_handler` for `Field` and `Fieldset`.
- Renamed `register_fields` to `register_handlers` for `Field` and `Fieldset`.
- Renamed `unregister_field` to `unregister_handler` for `Field` and `Fieldset`.
- Renamed `unregister_fields` to `unregister_handlers` for `Field` and `Fieldset`.
- Renamed `unregister_all_fields` to `unregister_all_handlers` for `Field` and `Fieldset`.

11.0.0

--------------

**Added**:

- Added support for registering custom fields for ``Schema``. This allows you to use your own fields in schemas. See docs for more information.

10.2.0

--------------

**Added**:

- Added a new method ``system_quality_attribute()`` (and its alias ``ility()``) for ``Development``.

10.1.0

--------------

**Added**:

- Added a new enum ``TimestampFormat`` for the ``timestamp()`` method.

**Updated**:

- The method ``timestamp()`` for ``Datetime()`` now expects one of the following timestamp formats: `TimestampFormat.POSIX`, `TimestampFormat.RFC_3339`, or `TimestampFormat.ISO_8601`.
- The ``datetime()`` method now has default parameters start and end set to the current year.

**Removed**:

- The method `timestamp()` no longer accepts the ``posix`` parameter.

10.0.0

--------------

**Updated**:

- ``romanize()`` is a key function now. See docs for more information.


**Removed**:

- Removed method ``swear_word()`` of ``Text()``. This method is inappropriate and lacks practical utility.

Page 2 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.