Mimesis is a Python library for generating fake but realistic data across multiple languages and locales.
The library solves the problem of creating test data, mock responses, and sample datasets by providing a simple, consistent API for generating realistic values. It works by offering specialized data providers for different data types—names, addresses, dates, phone numbers, emails, financial data, and more—each aware of locale-specific conventions. The tool supports schema-based generation for complex data structures and relational data generation with foreign keys and nested schemas, allowing developers to produce entire datasets that maintain referential integrity.
Developers should choose this tool if they need multilingual test data across locales or require high-performance data generation. It suits projects that need to populate test databases, mock API responses, generate fixtures, create sample datasets, or anonymize production data. The library is fully typed with editor autocompletion support, making it straightforward to use. It integrates with factory_boy for those using that pattern, and supports custom data providers and field handlers for extensibility.
The project maintains active test coverage and documentation. Pull requests are welcomed for documentation improvements, indicating an open contribution model. The tool is distributed through standard Python packaging channels and supports multiple Python versions across a wide range.