Skip to main content

A very tiny elasticsearch query cli

Project description

tiny-elastic-cli

A simple cli for querying elasticsearch. Outputs json.

Config

Launching the cli once will propagate ~/.tiny-elastic-cli.conf

Installing

Global install

pip install tiny-elastic-cli

Local install

pip install --user tiny-elastic-cli

In the case of local install, the script will be available through ~/.local/bin/elastic or similar. Consider adding .local/bin to your path.

Usage

elastic --help

elastic 'foo:bar'

elastic 'foo:bar' --source 'otherfield' | jq .

License

(The MIT License)

Copyright (c) 2018 Einar Otto Stangvik <einaros@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

tiny-elastic-cli-0.1.5.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tiny_elastic_cli-0.1.5-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file tiny-elastic-cli-0.1.5.tar.gz.

File metadata

  • Download URL: tiny-elastic-cli-0.1.5.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for tiny-elastic-cli-0.1.5.tar.gz
Algorithm Hash digest
SHA256 095a2b5b6442ec3dc8f49aac73d80b6dad94c9738166f9e2acb15350d42c7161
MD5 1094f1142c0ad510f4799022f4fb02fc
BLAKE2b-256 c2c39c63d19cbeda892276d4b39ae81704d8821b8fe36565c71112e145bf6fa2

See more details on using hashes here.

File details

Details for the file tiny_elastic_cli-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: tiny_elastic_cli-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for tiny_elastic_cli-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 fe5488157b9449e6a05677f9c1289564a2fae21ca149935ac1e845624fb07257
MD5 64461d3c97550d2f8c6c1d40b0c19572
BLAKE2b-256 5cbeb4ce067bf69f03e0a6d3db5eef4b035ddd7d3893fbb232c16d3d75c5e65b

See more details on using hashes here.

Supported by

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