百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
M

mimesis

> DevOps
开源

Mimesis 是一个 Python 库,用于在多种语言和区域环境中生成虚假但逼真的数据。

4.8K stars0 点赞1 次浏览
访问官网GitHub

工具介绍

Mimesis 是一个 Python 库,用于在多种语言和区域环境中生成虚假但逼真的数据。

Mimesis: The Fake Data Generator


Documentation: https://mimesis.name/


Mimesis (/mɪˈmiːsɪs) is a Python library for generating fake but realistic data in multiple languages and locales. It can generate names, addresses, dates, phone numbers, emails, financial data, and many other types of values.

It is commonly used to populate test databases, mock API responses, generate JSON or XML fixtures, create sample datasets, and anonymize production data. Mimesis provides a simple, consistent API that makes it easy to generate realistic data for development and testing.

The key features are:

  • Multilingual: Supports 47 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 related datasets with foreign keys and nested schemas.
  • Intuitive: Great editor support. Fully typed, so you get autocompletion almost everywhere.

Installation

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:

  • About Mimesis
  • Quickstart
  • Locales
  • Data Providers
  • Structured Data Generation
  • Relational Data Generation
  • Random and Seed
  • Integration with factory_boy
  • API Reference
  • Changelog

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

Usage

Import a data provider that corresponds to the data type you need.

For example, the Person provider gives access to personal information, including name, surname, email, and other related fields:

python
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: '[email protected]'

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

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.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Pythondatadataframedatasciencedummy

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类DevOps
定价开源

> 相关工具

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理