elasticsearch-faker is a CLI tool to generate fake data for Elasticsearch.
Project description
Summary
elasticsearch-faker is a CLI tool to generate fake data for Elasticsearch.
Installation
Installation: pip
pip install elasticsearch-faker
Installation: dpkg (Ubuntu)
Navigate to Releases page
Download the latest deb package
Install with dpkg -i command
Usage
Command help
Usage: elasticsearch-faker [OPTIONS] COMMAND [ARGS]... Faker for Elasticsearch Options: --version Show the version and exit. --debug For debug print. -q, --quiet Suppress execution log messages. -v, --verbose [x>=0] --locale [ar_EG|zh_CN|ka_GE|fr_FR|hi_IN|ko_KR|bg_BG|ne_NP|en_CA|nl_NL|ar_PS|en_US|el_GR|tr_TR|lt_LT|de_DE|no_NO|pt_BR|uk_UA|ja_JP|dk_DK|es_ES|pl_PL|sl_SI|it_IT|pt_PT|lv_LV|cs_CZ|fi_FI|fa_IR|hu_HU|ro_RO|en_AU|hr_HR|bs_BA|en_GB|zh_TW|en_NZ|ru_RU|sv_SE|es_MX|ar_SA|et_EE] Specify localization for fake data. Defaults to en_US. --seed INTEGER -h, --help Show this message and exit. Commands: generate Generate fake data and put it to Elasticsearch provider show-stats validate Check that a faker template file is well formed. version Show version information Issue tracker: https://github.com/thombashi/elasticsearch-faker/issues
Usage: elasticsearch-faker generate [OPTIONS] HOST Generate fake data and put it to Elasticsearch Options: --index NAME Name of an index to create. Defaults to test_index. --mapping PATH Path to a mapping file. --template PATH Path to a faker template file. -n, --num-doc INTEGER Number of generating docs. Using bulk API if the value equals or greater than two. Defaults to 500. --bulk-size INTEGER Number of docs for a single bulk API call. Defaults to 200. --delete-index Delete the index if already exists before generating docs. -j, --jobs INTEGER Number of jobs. Defaults to 1. --stdin Read a faker template from stdin. --dry-run Do no harm. -h, --help Show this message and exit. Issue tracker: https://github.com/thombashi/elasticsearch-faker/issues
Dependencies
Elasticsearch 7 or newer
Python 3.5+
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
elasticsearch-faker-0.0.9.tar.gz
(16.0 kB
view hashes)
Built Distribution
Close
Hashes for elasticsearch-faker-0.0.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47633ccb0a17d4ed1af1a4f5ed4559f3ea46e829d8d61338b1618f5ae1a4287a |
|
MD5 | e3b9145fa8a090ff33f50237d3a16cc0 |
|
BLAKE2b-256 | 65064d29d38c2e0da2e4e96fe8feec550b97aae27c4d8c5513d5576c773cd7f3 |
Close
Hashes for elasticsearch_faker-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2e4421780c53b4a84140475d20b933c5db682343bc255d3b8acd1b9f06f1c53 |
|
MD5 | 96f7bd499076ba185e15e3ef36097aeb |
|
BLAKE2b-256 | 30f087dec052346b60b55e5e2f3e93dd0eb78576223e63987b275b93d477062b |