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
pip install elasticsearch-faker
Usage
- Sample Code:
# Sample code
- Output:
# Output
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 --locale [de_DE|ar_SA|en_GB|hi_IN|en_CA|en_US|zh_CN|es_MX|lv_LV|pl_PL|ar_PS|ko_KR|hr_HR|fr_FR|ne_NP|hu_HU|ru_RU|es_ES|bs_BA|bg_BG|fi_FI|dk_DK|pt_BR|nl_NL|el_GR|zh_TW|ka_GE|fa_IR|cs_CZ|lt_LT|pt_PT|tr_TR|ar_EG|it_IT|ro_RO|sv_SE|uk_UA|et_EE|en_AU|ja_JP|en_NZ|no_NO|sl_SI] 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 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 Path to a faker template file. 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. --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.2.tar.gz
(14.4 kB
view hashes)
Built Distribution
Close
Hashes for elasticsearch-faker-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21b5bd6b565000df19309cc92dc533c6a761425dc21384838412a2cbe8d49c57 |
|
MD5 | a3f09f10d8701ac2ca662ac0e8e30e9b |
|
BLAKE2b-256 | e56e1f954ddb7471917969b6e72d8edf9cc8f683fd6be2b16d7957a056cd9703 |
Close
Hashes for elasticsearch_faker-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8eecffd4cd126c924bcf3f2bef96e1fc0bc4f57daf74ff53067fe4a42eff2bfa |
|
MD5 | 63199efb4d6535a828f061327aedfe4c |
|
BLAKE2b-256 | 55cb51322ffda8cded301815e408d5a5b5c1b8d93e99af98340e15050421dbc6 |