Data worker, data generator, generate a lot data by config.
- Data test
- Demonstration
- Unit Test for developing
- Define some specified fields and parameters by config.
- Load external dict to use more data.
- Custom formatted output data
{
"dict_path": "dict",
"build": {
"count": 5,
"format": "csv",
"name": "demo2",
"path": "out"
},
"fields": [
{
"name": "order_id",
"value": "po-{uuid}"
},
{
"name": "email",
"value": "{username}@{email}"
},
{
"name": "creat_dt",
"value": "{datetime}"
}
]
}
- dict_path: It's a dict folder includes some dict files
- build: Build command
- fields: Setup output a few fields
- Use curly braces to customize the output variables. Variables come from data dictionaries and built-in types.
data-worker build -c ./config/demo.json
Type | Desc |
---|---|
string | String |
uuid | Unique identification |
mobile | Mobile phone |
idno | ID Number |
datetime | Full date and time |
- Custom variables, increase filters.
- Support for more built-in types