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
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://raw.githubusercontent.com/pypa/pip/master/contrib/get-pip.py $ python3 get-pip.py $ cd .. $ pip3 install -r requirements.txt $ ./cli.py -h
Testing
Use nose:
$ python setup.py 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.3.0.tar.gz
(12.0 kB
view hashes)
Built Distribution
Close
Hashes for elastic_companion-1.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e43c648e2e1e7df4783d0f9d7ff558449e73487ee4f362d0b38eeb98eb1d8b0f |
|
MD5 | b3e26244b1f4ee618e3e2f8e50b8749e |
|
BLAKE2b-256 | b85e1a1ba08b4f4f0be55c0c8787385c392be5c09cdbc433eac09054288b5bcf |