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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file elasticsearch-faker-0.0.7.tar.gz.
File metadata
- Download URL: elasticsearch-faker-0.0.7.tar.gz
- Upload date:
- Size: 15.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37202f757973e2f59ec5d26b707fcf1a7a8a77f504036671fa9576efd8724fae
|
|
| MD5 |
b92cb2706936c1b61403ff612aa61c97
|
|
| BLAKE2b-256 |
151580d8913961bcfe57512c1092254f28c10239f4350b9137eeb50c7106b806
|
File details
Details for the file elasticsearch_faker-0.0.7-py3-none-any.whl.
File metadata
- Download URL: elasticsearch_faker-0.0.7-py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1bdcff5cf51b1d4deb76cb7e58f4ca83805773b5ed9540369094b14d06febad
|
|
| MD5 |
b23e4c7c138e019aea60f7c4136836f8
|
|
| BLAKE2b-256 |
a136856eb7cf01a67538358e0c7951e7d9570da8825d15e75c99e2de52412fb4
|