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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file esok-0.1.0.tar.gz.

File metadata

  • Download URL: esok-0.1.0.tar.gz
  • Upload date:
  • Size: 904.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.6.14

File hashes

Hashes for esok-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0aa42e16cc60368faeee1239be21cc8f93608d7e31590756cdea2a09d48620b7
MD5 d136c5e6a0fa85ea118ec5c1b5a19579
BLAKE2b-256 008c934576eae9c142a05dd8ec6f4ae576733a50ff9e9501680282a09bfe485a

See more details on using hashes here.

File details

Details for the file esok-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: esok-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 23.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.6.14

File hashes

Hashes for esok-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 16b53176d94ea70c90054e56bd30ebc7c9e89250e5d85aab440ba7d086c78f9a
MD5 03c02043f5d3f1548a817afc07e10a63
BLAKE2b-256 60d9a5b9c861885f11091144d11e51015e73fa7c9800b819d676e0bdb50b4bd1

See more details on using hashes here.

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