Useful commands for Elasticsearch
Project description
A command-line tool and API for various Elasticsearch operations.
Install
pip install elastic-companion
Commands
To see the list of commands, use the -h or --help flag.
Each command has a corresponding Python module that can be imported and used as an API rather than from the command-line.
Developing
If you are using Docker and Docker Compose, then you don’t need to fiddle with python and pip manually. Otherwise, see below.
Download Python 3, then:
$ pyvenv-3.X venv $ source venv/bin/activate $ pip3 install -r requirements.txt $ ./cli.py -h
On Ubuntu, there’s a bit of an issue with pip3 and the above might not work. Then:
$ pyvenv-3.X venv --without-pip $ source venv/bin/activate $ cd venv $ wget https://bootstrap.pypa.io/get-pip.py $ python3 get-pip.py $ cd .. $ pip3 install -r requirements.txt $ ./cli.py -h
Testing
Use nose:
$ nosetests
or:
$ docker-compose run --rm companion nosetests
Deploying
You need access to the pypi repository first, then it’s just a matter of:
$ python setup.py sdist bdist_wheel $ twine upload dist/*
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
elastic-companion-1.4.0.tar.gz
(12.0 kB
view hashes)
Built Distribution
Close
Hashes for elastic_companion-1.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d900955ceb395c8ab52bfe36d3f016f7e19637f5079f07ba95de0270ef9ccbf1 |
|
MD5 | 1d182066cf99e4597c420898a70fdb09 |
|
BLAKE2b-256 | 0121fd7084a7904ad50f4751c8df3be8c345c0f6e384d778897d6c91b03063ed |