faking

Crates.iofaking
lib.rsfaking
version1.0.1
sourcesrc
created_at2024-06-05 04:41:15.857292
updated_at2024-06-05 04:41:15.857292
descriptionfaking is a cli tool that generates test data in various formats from a given schema
homepage
repositoryhttps://github.com/Data-Construct/faking-cli
max_upload_size
id1262388
size124,769
Marko (clearfeld)

documentation

README

faking-cli

Usage

Single generator

> faking "I32" -n 10

-1858314450
-222718204
1350368207
1761043599
534217560
806407691
1799913151
-210038962
-857619727
259086971

Custom schema generation (JSON)

> faking -s cust_schema.json -n 5

[
        {
                "field-1-bool": bool,
                "filed-2-i8": -62,
                "field-3-obj-or-null": null,
                "field-4-obj": {
                        "inner-field-1-uuid": "886c6e12-3f5c-466a-8da3-b416caeffa79",
                        "inner-field-2-uuid": "a0946c18-24b0-471e-b996-6f1459de981e"
                }
        },
        ....
]

For a list of generators and their categories you can use the following command

faking list

Getting Started Development

cargo run -- --help

cargo run -- -s .\schemas\testcase.json
Commit count: 19

cargo fmt