CLI Reference
Name
Synopsis
Description
Dore is a tool that generates fake data for you based on a config (known as the manifest). It can generate data for schemas with complex dependencies such as hierarchical schemas, schemas with PK/FK relations, nested values, and so on.
Dore leverages other fake data generation libraries (ex: Faker) and generates fake data for complex schemas with dependencies amongst them. While Faker allows you to do something like generate a random UUID4 string, with Dore, you could do something along the lines of Generate a random UUID4 string as PK for a table and use these values as a FK in another table.
Options
-
--manifestMANIFEST_FILEAbsolute path to Dore Manifest file.
-
[
--help]Show help for
dorecommand. -
[
--scale-factorSCALE_FACTOR]Scale factor for records generation.
Accepted values:
1,0.1,0.25,3, etc (numeric values).Default value:
1 -
[
--seedSEED]Seed value to use for generating fake data.
Accepted values:
1512312,1234, etc (integer values) -
[
--drop-conficting-models]Drop any conflicting models (pre-existing models with identical names as those in the manifest) that Dore encounters while executes.
Please use this option with care as Dore will delete existing models and re-create them when it encounters any pre-existing models in a datastore with names identical to those in the manifest.`
-
[
--cacheCACHE_TYPE]Cache type.
While generating data for schemas with dependencies amongst models, Dore caches records for dependent models in order to avoid repeated DB calls.
Accepted values:
local,redis-
localWhen cache type is
local, Dore uses a local Python dictionary based cache. -
redisWhen cache type is
redis, Dore uses a redis cluster for caching.
Default value:
local -
-
[
--redis-hostREDIS_HOST]Host of the redis cluster which Dore uses for caching.
This is a required arg when
--cacheisredis.Accepted values:
127.0.0.1,redis15.localnet.org, etc. -
[
--redis-portREDIS_PORT]Port of the redis cluster which Dore uses for caching.
This is a required arg when
--cacheisredis.Accepted values:
6379,1234, etc. -
[
--profile]Run Dore with profiling. The profile output is stored in a
.proffile. -
[
--manifest_var=value]Specify values for variables in the manifest.
You can use variables in the manifest by using
{{manifest_var}}in the manifest file and supply values to each of the variables while invokingdoreusing the above argument.