Skip to main content

Mimesis: Fake Data Generator.

Project description

Mimesis

Mimesis: The Fake Data Generator

Test Coverage Package version Package version Supported Python versions


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:

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mimesis-21.0.0.tar.gz (18.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mimesis-21.0.0-py3-none-any.whl (4.5 MB view details)

Uploaded Python 3

File details

Details for the file mimesis-21.0.0.tar.gz.

File metadata

  • Download URL: mimesis-21.0.0.tar.gz
  • Upload date:
  • Size: 18.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","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

Hashes for mimesis-21.0.0.tar.gz
Algorithm Hash digest
SHA256 e3470d257cb49b7933fd9ed94e06aba22593274a2767dc1848f8b12423ffbd87
MD5 7a42a76755c3dda3ca6c784444f90fa0
BLAKE2b-256 ffc4adc61cf64898f045d85256c9fdd5832b0e6c048563bdbe6db277ac964229

See more details on using hashes here.

File details

Details for the file mimesis-21.0.0-py3-none-any.whl.

File metadata

  • Download URL: mimesis-21.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.29 {"installer":{"name":"uv","version":"0.11.29","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

Hashes for mimesis-21.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9809669f11b357e3e2521c4e5376cb90daf231bda34f468b49fb2128212f521e
MD5 4445682a192bd7c8703de0fa71216957
BLAKE2b-256 e43281d1b6ab65d8c5592987a302bacce1df2a675aa20e291aa695dc0122a379

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page