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
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mockgen_cli-0.1.0.tar.gz | 5.5 kB | Without provenance | Details for mockgen_cli-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mockgen_cli-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for mockgen_cli-0.1.0-py3-none-any.whl |
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
|
Security for mockgen-cli 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.