+1
Daily
4,870
stars
372
forks
52
watchers
1,334
prs
366
issues
68
releases
README
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-53')
Output: '1-436-896-5213'
License
Mimesis is licensed under the MIT License. See LICENSE for more information.Top issues
#1579Add `from_typed_dict` schema 6 comments · 2024-07-07#1662Performance issue: Generic.reseed() is slow due to per-provider random generators2 comments · 2025-05-28#1584Question on how to use default city for the choosen locale ( Country)2 comments · 2024-07-27#1585Support for pyodide1 comments · 2024-07-31#1583Replace black with ruff.1 comments · 2024-07-19
Discussions
#1703Proper way to address non-implemented locale1 comments · 2026-06-01#1687Generating SSN1 comments · 2025-12-30#1449Mimesis data fields1 comments · 2023-12-03#1417Support `pylist`, `pydict` etc.3 comments · 2023-09-29#1340Version 7.1.00 comments · 2023-04-06#1316Making credit card numbers match the credit card type in a schema1 comments · 2023-02-20#1312Can Mimesis use JSON Schema?2 comments · 2023-01-29#1292Realism or variety of generated data?1 comments · 2022-11-07