Mimesis

Latest version: v18.0.0

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

Scan your dependencies

Page 2 of 9

14.0.0

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

- Fixed street suffixes for locale `Locale.HR`.
- Made `pytest-mimesis` a part of Mimesis itself.

13.1.0

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

- Removed the `age()` and `work_experience()` methods from the `Person` provider. Use ``person.random.randint()`` instead.
- Fixed type hints for `Generic`. (See `1471 <https://github.com/lk-geimfari/mimesis/issues/1471>`_).
- Added the `birthdate()` method to the `Person` provider. (See `1470 <https://github.com/lk-geimfari/mimesis/issues/1470>`_).

13.0.0

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

- Added Croatian locale support (``Locale.HR``). Great appreciation to `CerealKiller0807 <https://github.com/CerealKiller0807>`_ for this contribution.

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.

Page 2 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.