Skip to main content

robotframework-mimesislibrary

A Robot Framework keyword library that wraps the Mimesis fake data generator, providing over 100 keywords to generate synthetic data directly in your test suites.

Installation

pip install robotframework-mimesislibrary

Quick Start

*** Settings ***
Library    MimesisLibrary

*** Test Cases ***
Generate Person Data
    ${name}=      Fake Full Name
    ${email}=     Fake Email
    ${phone}=     Fake Phone Number
    Log Many      ${name}    ${email}    ${phone}

Use Per-Keyword Locale
    ${arabic_name}=    Fake First Name    locale=AR
    ${french_city}=    Fake City          locale=FR
    ${turkish_name}=   Fake Full Name     locale=TR
    Log Many           ${arabic_name}     ${french_city}    ${turkish_name}

Generate Internet Data
    ${ip}=     Fake IPv4
    ${url}=    Fake URL
    ${mac}=    Fake MAC Address
    Log Many   ${ip}    ${url}    ${mac}

Generate Unique ID
    ${uuid}=    Fake UUID
    ${token}=   Fake Token Hex
    Log Many    ${uuid}    ${token}

Import Options

# Use default locale (English)
Library    MimesisLibrary

# Use a specific default locale
Library    MimesisLibrary    locale=TR

# Use with a fixed seed for reproducible data
Library    MimesisLibrary    locale=EN    seed=42

Keyword Categories

Category Example Keywords
Person Fake First Name, Fake Full Name, Fake Email, Fake Password
Address Fake City, Fake Country, Fake Street Name, Fake Zip Code
Internet Fake IPv4, Fake URL, Fake MAC Address, Fake User Agent
Code Fake EAN, Fake IMEI, Fake ISBN, Fake UUID
Cryptographic Fake UUID, Fake Token Hex, Fake MD5, Fake SHA256
Datetime Fake Date, Fake Time, Fake Datetime, Fake Timezone
Finance Fake Bank Account, Fake Currency Code, Fake Cryptocurrency
Payment Fake Credit Card Number, Fake CVV
Food Fake Dish, Fake Drink, Fake Fruit, Fake Vegetable
Text Fake Word, Fake Sentence, Fake Color, Fake Quote
Numeric Fake Integer, Fake Float
Hardware Fake CPU, Fake GPU, Fake RAM Size
Transport Fake Car, Fake VIN, Fake Airplane
Development Fake Programming Language, Fake OS, Fake License
Science Fake Chemical Element, Fake Measure Unit
Path Fake Root Path, Fake Project Dir

Supported Locales

Mimesis supports 30+ locales. Locale-dependent keywords (Person, Address, Food, Text, Finance, Datetime) accept a locale parameter:

${name}=    Fake First Name    locale=TR    # Turkish
${name}=    Fake First Name    locale=AR    # Arabic
${name}=    Fake First Name    locale=JA    # Japanese
${name}=    Fake First Name    locale=DE    # German
${name}=    Fake First Name    locale=FR    # French
${name}=    Fake First Name    locale=RU    # Russian

Locale-independent keywords (Fake UUID, Fake IPv4, Fake Integer, etc.) ignore the locale parameter.

Reproducible Data with Seeds

Library    MimesisLibrary    seed=42

*** Test Cases ***
Reproducible Test
    ${name}=    Fake First Name    # Always returns the same value

HTML Documentation

Generate the full keyword reference in HTML format:

python -m robot.libdoc MimesisLibrary docs/index.html

Development Setup

git clone https://github.com/your-org/robotframework-mimesislibrary
cd robotframework-mimesislibrary
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
pip install -e ".[dev]"

# Run tests
make test

# Generate docs
make docs

License

MIT License — see LICENSE for details.

Download files

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

Source Distribution

robotframework_mimesislibrary-1.0.0.tar.gz (87.1 kB view details)

Uploaded Source

Built Distribution

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

robotframework_mimesislibrary-1.0.0-py3-none-any.whl (26.5 kB view details)

Uploaded Python 3

File details

Details for the file robotframework_mimesislibrary-1.0.0.tar.gz.

File metadata

File hashes

Hashes for robotframework_mimesislibrary-1.0.0.tar.gz
Algorithm Hash digest
SHA256 67359e3266e7a0a915aa3e062eafb5e5b44247549302af7cbba0bf33e01ec951
MD5 8a63c197d94d454e9d3933585f2be21e
BLAKE2b-256 a0e4255f90dbb842e21a9962898fa6c33fd6d9569ec122bc42a590ede8d8c676

See more details on using hashes here.

File details

Details for the file robotframework_mimesislibrary-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for robotframework_mimesislibrary-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 86a177d1ef5b90a77625d6e2c83a6bfadca547608abd92e4102c453717b4cab5
MD5 af8504648c7693ea544c562a9a0e0441
BLAKE2b-256 db8e5ff7c3522029ebb152bac5f8b156607dbe1cea437943594fb4529a8a33bb

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.1

2 files

This release

1.0.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page