A command-line tool for generating CSV target records based on specified parameters and configurations. It can be used for instance for generating sample set of targeted customers for email-based marketing communications.
- Tap into the Homebrew formula repository:
brew tap bxxf/tap
- Install the CLI tool:
brew install tgen
Examples can be found in examples
folder.
Generate target records for all English locales (US, CA, AU, GB):
tgen loc=en --en-all
Generate target records for brand:
tgen loc=BRANDNAME
Generate target records for brand with specific attributes:
tgen loc=BRANDNAME attribute=VALUE1,VALUE2
Generate target records based on LOC file:
tgen --loc-file=PATH_TO_LOCFILE.csv
The CLI tool can be configured using a YAML configuration file. The following parameters can be specified:
loc_file
: Path to the CSV file containing translated data from LOC to import languages.languages
: List of languages separated by commas (only use if not using loc_file).output
: Output file or folder path.format
: Format to generate (e.g., countryiso, default).en_all
: Generate target records for all English locales (US, CA, AU, GB).params
: Additional parameters in the formatparam_name=value1,value2,value3
.
loc_file: loc.csv
output: output.csv
params:
- segment=SKU1,SKU2
- activationKey=xxx
This project is licensed under the Copyright License.
© Copyright 2023 Filip Brebera