Mimesis generates localized fake names, contacts, dates, and financial values in Python. It supports schemas, related records, and many locales for tests and fixtures.
Overview
Mimesis is a Python library that produces fake but realistic values across dozens of locales. It covers personal and contact data, dates, financial fields, and many other provider types through a consistent API.
Teams use it to seed test databases, build mock API payloads, generate JSON or XML fixtures, assemble sample datasets, and help anonymize production-like data during development. Providers are grouped by data type; for example, the Person provider exposes names, emails, and related personal fields.
Structured generation uses schema definitions, field handlers, and transformations, including relational datasets with foreign keys and nested documents. Optional integration with factory_boy is documented, and random seeds can be controlled for repeatable runs.
The project is distributed on PyPI, fully typed for editor assistance, and documented on Read the Docs with quickstart, locale, and API sections.
Key features
- 47 locales
- Typed Python API
- Schema-based record generation
- Relational data with foreign keys
- Custom data providers
- factory_boy integration
- Controllable random seeds
- Many built-in data providers
Use cases
- Populating test databases
- Mock API response fixtures
- Sample datasets for development
- Localized realistic dummy records