Mimesis

Latest version: v16.0.0

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

Scan your dependencies

Page 3 of 8

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.

7.0.0

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

**Updated**:

- Actualized data
- Removed outdated data

**Removed**:

- Removed parameter ``model_mask`` for ``airplane()``
- Removed method ``truck()`` of ``Transport()``, use ``menufacturer()`` instead.
- Removed method ``cpu_model()`` of ``Hardware()``.

6.1.1

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

- Improve random sampling performance.

6.1.0

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

- Make field support different delimiters for ``provider.method``.

Page 3 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.