mimesis

Mimesis: Fake Data Generator.

62 个版本 Python >=3.10
安装
pip install mimesis
poetry add mimesis
pipenv install mimesis
conda install mimesis
描述

Mimesis

Mimesis: The Fake Data Generator

Test Coverage Package version Package version Supported Python versions


Documentation: https://mimesis.name/


Mimesis (/mɪˈmiːsɪs) is a robust data generator for Python that can produce a wide range of fake data in various languages.

The key features are:

  • Multilingual: Supports 46 different locales.
  • Extensibility: Supports custom data providers and custom field handlers.
  • Ease of use: Features a simple design and clear documentation for straightforward data generation.
  • Performance: Widely recognized as the fastest data generator among Python solutions.
  • Data variety: Includes various data providers designed for different use cases.
  • Schema-based generators: Offers schema-based data generators to effortlessly produce data of any complexity.
  • Relational data: Supports generating relational data with references between schemas for complex data structures.
  • Intuitive: Great editor support. Fully typed, thus autocompletion almost everywhere.

Installation

[!IMPORTANT] To work with Mimesis on Python versions 3.8 and 3.9, the final compatible version is Mimesis 11.1.0. Install this specific version to ensure compatibility.

[!WARNING] Starting from version 19.0.0, Mimesis has dropped support for builtin providers.

To install mimesis, use pip:

~ pip install mimesis

Documentation

You can find the complete documentation on the Read the Docs.

It is divided into several sections:

You can improve it by sending pull requests to this repository.

Usage

The library is exceptionally user-friendly, and it only requires you to import a Data Provider object that corresponds to the desired data type.

For instance, the Person provider can be imported to access personal information, including name, surname, email, and other related fields:

from mimesis import Person
from mimesis.locales import Locale

person = Person(Locale.EN)

person.full_name()
# Output: 'Brande Sears'

person.email(domains=['example.com'])
# Output: 'roccelline1878@example.com'

person.email(domains=['mimesis.name'], unique=True)
# Output: 'f272a05d39ec46fdac5be4ac7be45f3f@mimesis.name'

person.telephone(mask='1-4##-8##-5##3')
# Output: '1-436-896-5213'

License

Mimesis is licensed under the MIT License. See LICENSE for more information.

版本列表
19.1.0 2026-01-11
19.0.0 2025-12-28
18.0.0 2024-09-13
17.0.0 2024-06-01
16.0.0 2024-04-04
15.1.0 2024-02-27
15.0.0 2024-02-27
14.0.0 2024-01-31
13.1.0 2024-01-24
13.0.0 2024-01-19
12.1.1 2024-01-17
12.1.0 2024-01-07
12.0.0 2024-01-07
11.1.0 2023-08-19
11.0.0 2023-08-19
10.2.1 2023-08-06
10.2.0 2023-08-06
10.1.0 2023-05-26
10.0.0 2023-05-20
9.0.0 2023-04-30
8.0.0 2023-04-16
7.1.0 2023-04-06
7.0.0 2022-12-17
6.1.1 2022-10-02
6.1.0 2022-10-01
6.0.0 2022-08-08
5.6.1 2022-08-06
5.6.0 2022-08-06
5.5.0 2022-06-22
5.4.0 2022-05-22
5.3.0 2022-01-25
5.2.1 2021-12-11
5.1.1 2021-12-11
5.1.0 2021-11-05
5.0.0 2021-10-29
4.1.3 2020-12-21
4.1.2 2020-08-29
4.1.1 2020-08-16
4.1.0 2020-08-16
4.0.0 2020-02-09
3.3.0 2019-07-31
3.2.0 2019-05-18
3.1.0 2019-02-02
3.0.0 2018-12-15
2.1.0 2018-06-17
2.0.1 2018-04-01
2.0.0 2018-02-09
1.0.5 2018-01-19
1.0.4 2018-01-03
1.0.3 2017-12-20
1.0.2 2017-12-16
1.0.1 2017-12-04
1.0.0 2017-12-03
0.0.10 2017-10-05
0.0.9 2017-09-25
0.0.8 2017-09-21
0.0.7 2017-09-09
0.0.6 2017-09-09
0.0.5 2017-08-17
0.0.4 2017-08-09
0.0.3 2017-07-15
0.0.2 2017-07-15