LinuxCommandLibrary

fakedata

Generate randomized, fake data for testing purposes

TLDR

List all valid generators

$ fakedata --generators
copy

Generate data using one or more generators
$ fakedata [generator1] [generator2]
copy

Generate data with a specific output format
$ fakedata [[-f|--format]] [csv|tab|sql] [generator]
copy

Generate a given number of data items (defaults to 10)
$ fakedata [[-l|--limit]] [n] [generator]
copy

Generate data using a custom output template (the first letter of generator names must be capitalized)
$ echo "[\{\{Generator\}\]}" | fakedata
copy

SYNOPSIS

fakedata [type [type ...]] [-h] [-c COUNT] [-l LOCALE] [-s SEED]

PARAMETERS

-h, --help
    Show help message and exit

-c COUNT, --count COUNT
    Number of items to generate per type (default: 1)

-l LOCALE, --locale LOCALE
    Locale for data generation, e.g., 'en_US', 'fr_FR' (default: en_US)

-s SEED, --seed SEED
    Integer seed for reproducible random data

type
    Data type(s) like 'name', 'email', 'address', 'phone', 'company', 'text', etc. Run without args for list

DESCRIPTION

fakedata is a lightweight command-line utility for generating fake but realistic data such as names, emails, addresses, phone numbers, and more. Built on the Faker library, it allows users to quickly produce sample data for testing, demos, or prototyping without needing to write scripts.

Invoke it by specifying one or more data types, and it outputs corresponding fake values. Ideal for developers, testers, and DBAs needing placeholder data. Supports locales for culturally appropriate output and seeding for reproducible results. Install via pip install fakedata; not included in standard Linux distributions.

CAVEATS

Not a core Linux utility; requires Python 3 and pip install fakedata. Limited to Faker providers; no custom templates. Output is random unless seeded.

INSTALLATION

pip install fakedata or pipx install fakedata for isolated env.

EXAMPLES

fakedata name email -c 3
Generates 3 names and emails.
fakedata -l de_DE address
German addresses.

HISTORY

Developed by Simon Franken; first PyPI release ~2013. Inspired by Faker library (2007+). Actively maintained on GitHub with updates for new locales and types.

SEE ALSO

faker (Python lib), pwgen(1), uuidgen(1), seq(1)

Copied to clipboard