MCPcopy
hub / github.com/lk-geimfari/mimesis

github.com/lk-geimfari/mimesis @v19.1.0 sqlite

repository ↗ · DeepWiki ↗ · release v19.1.0 ↗
1,326 symbols 4,066 edges 99 files 399 documented · 30%
README

Mimesis

<em>Mimesis: The Fake Data Generator</em>

Test Coverage Package version Package version Supported Python versions


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:

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.

Core symbols most depended-on inside this repo

choice
called by 125
mimesis/providers/choice.py
_extract
called by 54
mimesis/providers/base.py
benchmark_provider
called by 47
benchmarks/performance_comparison.py
key
called by 42
mimesis/keys.py
validate_enum
called by 27
mimesis/providers/base.py
email
called by 17
mimesis/providers/person.py
name
called by 15
mimesis/providers/person.py
date
called by 14
mimesis/providers/date.py

Shape

Method 920
Function 218
Class 177
Route 11

Languages

Python100%

Modules by API surface

tests/test_providers/test_universal/test_internet.py75 symbols
tests/test_providers/test_localized/test_person.py67 symbols
tests/test_schema.py60 symbols
tests/test_providers/test_generic.py56 symbols
tests/test_keys.py56 symbols
tests/test_providers/test_localized/test_address.py53 symbols
mimesis/schema.py47 symbols
tests/test_providers/test_localized/test_date.py45 symbols
mimesis/providers/internet.py36 symbols
mimesis/providers/person.py34 symbols
tests/test_providers/test_localized/test_text.py33 symbols
tests/test_providers/test_base.py33 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

Dependencies from manifests, versioned

sphinx7.2.6 · 1×
sphinx-autodoc-typehints1.23.0 · 1×
sphinx-copybutton0.5.2 · 1×

For agents

$ claude mcp add mimesis \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact