Mimesis: Fake Data Generator.
Project description
Mimesis: The Fake Data Generator
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:
- 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
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.
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-19.1.0.tar.gz.
File metadata
- Download URL: mimesis-19.1.0.tar.gz
- Upload date:
- Size: 18.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","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 |
af4f14852a97657c5dbfad860be90c0efe97bf3758809e034b6581a45b13814b
|
|
| MD5 |
5f90d566579a4e4699827db6814caa0f
|
|
| BLAKE2b-256 |
12bf1612e48b9eea7fa39e27600e94b9b267b37da749fcdf019e5e6a892ba2ec
|
File details
Details for the file mimesis-19.1.0-py3-none-any.whl.
File metadata
- Download URL: mimesis-19.1.0-py3-none-any.whl
- Upload date:
- Size: 4.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","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 |
cf2ea4674819eaf386a2b8d28ded450968f1770fcb23f6c6ef884f61727bb4e6
|
|
| MD5 |
73454f3ae2604a065b7ea21e2df6fca1
|
|
| BLAKE2b-256 |
40f239da33ad3c10956d9ee7cdea3c3ee92e98c529b2994ed7c36a208b497603
|