Skip to main content

mockgen-cli

Generate fake data from the command line — names, emails, addresses, JSON, CSV, and custom templates.

Install

pip install mockgen-cli

Quick Start

# Single values
mockgen one email -n 5
mockgen one name --locale de_DE

# Records (table, CSV, JSON)
mockgen record name email city -n 10
mockgen record name email phone --csv -n 100 > users.csv
mockgen record id:uuid name email --json

# Templates
mockgen template "Hello {{name}}, your code is {{uuid}}" -n 5
mockgen template "INSERT INTO users VALUES ('{{name}}', '{{email}}');" -n 50

# From schema file
echo '{"id":"uuid","name":"name","email":"email"}' > schema.json
mockgen schema schema.json -n 20

# List available types
mockgen types

Commands

Command Description
one Generate values of a single type
record Generate multi-field records
template Generate from template strings
schema Generate from JSON schema file
types List all available field types

Output Formats

  • Table (default) — aligned columns
  • --json — JSON array
  • --jsonl — JSON Lines (one object per line)
  • --csv — CSV with headers
  • --tsv — TSV with headers

48 Built-in Types

name, email, phone, address, city, state, zip, country, company, job, url, domain, ip, uuid, username, password, text, sentence, date, datetime, boolean, int, float, credit_card, latitude, longitude, and more.

Plus any Faker method works directly (e.g., license_plate, ean13).

For AI Agents

See SKILL.md for agent-optimized documentation.

License

MIT

Release files for mockgen-cli 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mockgen-cli 0.1.0
File Size Uploaded
mockgen_cli-0.1.0.tar.gz 5.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mockgen-cli 0.1.0
File Interpreter ABI Platform
mockgen_cli-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.7 kB

Release files / mockgen_cli-0.1.0.tar.gz

Download URL mockgen_cli-0.1.0.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b07b24c68127d73cc79de822d61b98d5e89423a1afa3cfde75aa39555e7f9f2c
BLAKE2b-256 checksum
How to use checksums
f101ae211ec1df01b7293ee3686fbcdd6c96241a6f9a821723a8ce7eb16925fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / mockgen_cli-0.1.0-py3-none-any.whl

Download URL mockgen_cli-0.1.0-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b9eea9f41a90cf1f502531b48e6729b1dbab92ba2b57fe80f83394ec0af0bbdc
BLAKE2b-256 checksum
How to use checksums
de7f636c9e31256512d4410b5f6e9e4a66e7bf65cce1e0422c6b19f9257b446b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release 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