Skip to main content

A CLI for Elasticsearch

Project description

esok

A CLI for Elasticsearch.

esok

esok makes it easier to work with deployments of Elasticsearch across regions/sites, by allowing you to forward the same command to multiple clusters. It's also just more human-friendly than finding old HTTP-requests in your shell history.

Note: This tool is still in pre-release stage. Expect breaking changes and bugs until version 1.0.0.

Install

pipx is the recommended tool for installing esok. This will make sure you won't have any issues with conflicting dependencies.

pipx install esok
esok config  # View your config file
esok --help  # Print help

Note: on Linux/Ubuntu systems, you might have to add ~/.local/bin to your path if your shell cannot find the esok command. See the installation instructions for pipx.

Good old pip also works:

pip3 install -u esok

Or, in a virtualenv:

python3 -m venv .venv
source .venv/bin/activate
pip3 install esok

Development

Setup

Requirements (usually found in your package manager):

  • Python 3.6
  • tox

Tox helps you set up the virtualenv you need for development. Run the following commands in your cloned repo:

tox -e dev
source .venv/bin/activate 
pip install --editable .

Now you should have the esok command available in your CLI. You can edit code without having to reinstall with pip.

IntelliJ/PyCharm users: set the src folder as the "Sources root" to get imports working correctly. Mark generated folders as "Excluded" (such as .tox, .venv, etc.) to not confuse the IDE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

esok-0.1.0.tar.gz (904.9 kB view hashes)

Uploaded Source

Built Distribution

esok-0.1.0-py3-none-any.whl (23.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page