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
Documentation
Full keyword documentation is available online: 👉 https://robotframework-mimesislibrary.sinanerdinc.com/
You can also generate the full keyword reference HTML locally:
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file robotframework_mimesislibrary-1.0.1.tar.gz.
File metadata
- Download URL: robotframework_mimesislibrary-1.0.1.tar.gz
- Upload date:
- Size: 87.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c6517bf6c623e86082c680433f9626764330d9d977011b18f6b2354b9f941d6
|
|
| MD5 |
c6a18e730c0853ec096321eb4b9e3c93
|
|
| BLAKE2b-256 |
1c1a9a074bc35cf6c1ebed9c8f106be6913bd88da16c0e3ef33024087ec25715
|
File details
Details for the file robotframework_mimesislibrary-1.0.1-py3-none-any.whl.
File metadata
- Download URL: robotframework_mimesislibrary-1.0.1-py3-none-any.whl
- Upload date:
- Size: 26.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7500d4759362f3b57d01903ba9594c322af9563eee8a7ee2c5203723b1ae5108
|
|
| MD5 |
f386b34e3d328f6ecbf37c2312a44e43
|
|
| BLAKE2b-256 |
d03509a74adbdfcd413c0c9b819ff1288ac4d8731723cf145cb22d6249d31b1b
|