Mimesis

Latest version: v18.0.0

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

Scan your dependencies

Page 3 of 9

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.

9.0.0

-------------
.. note::

This release contains some breaking changes in Schema's API.

**Updated**:

- Key functions now may accept additional ``random`` as a parameter. See docs for more information.

**Removed**:

- The ``loop`` method for the ``Schema``, which was considered deprecated and unsafe, has been removed.
- The ``iterations`` parameter for all methods of ``Schema`` has been removed. Instead, you now have to specify the number of iterations on instantiation of ``Schema`` passing the ``iterations`` parameter.
- The ``iterator`` method for ``Schema`` has been removed. Instead, you can now use an instance of ``Schema`` directly as an iterator.
- The multiplication is no longer supported for ``Schema``. Instead, you can use the ``iterations`` parameter on instantiation of ``Schema``.

**Added**:

- Add ``weighted_choice()`` method for ``Random()``. See docs for more information.
- Add module ``keys`` for generating key functions.

8.0.0

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

**Added**

- ``Fieldset()`` to generate a set of fields at once. See docs for more information.
- ``bank()`` method for ``Finance()``.
- ``default_country`` for ``Address()``, which always returns the country associated with the current locale (i.e ``United States`` for ``en``, ``Россия`` for ``ru``).

**Removed**:

- Removed parameter ``allow_random`` for ``country()``. Now method returns random country by default.

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()`` and ``http_response_headers()`` methods for ``Internet`` provider. These methods return a dictionary of common headers.
- ``reseed()`` method for ``Field``.

**Removed**:

- ``stock_image()`` method which required an active HTTP connection. Use ``stock_image_url`` instead.

Page 3 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.