Mimesis: Fake Data Generator.
Project description
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 relational data with references between schemas for complex data structures.
- 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
- 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:
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mimesis-20.0.0.tar.gz.
File metadata
- Download URL: mimesis-20.0.0.tar.gz
- Upload date:
- Size: 18.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71d2b418f83679e1d96b6eb9cbf04ab7e17ccdb31fde0cf0a0e2bcbe5d93635e
|
|
| MD5 |
704ba5d72bf37a66d007ebb7f4e44014
|
|
| BLAKE2b-256 |
f2f4d72725fc54975ad7e2ecd94ce161c7b97ce0e45ebc020348796ce1eeb3ff
|
File details
Details for the file mimesis-20.0.0-py3-none-any.whl.
File metadata
- Download URL: mimesis-20.0.0-py3-none-any.whl
- Upload date:
- Size: 4.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
400fa57d75230c6e93b6078b747f10dde4b3ef16d33752fe0388d160c6e76189
|
|
| MD5 |
b224548f7e695ae5beb20cd664b86fcc
|
|
| BLAKE2b-256 |
7a5f38949c353e292f27eef25ce37ba0ec185d44fc11fb2b1eb5a6d1850d66cb
|