{"id":13760310,"url":"https://github.com/lilactown/eql-cli","last_synced_at":"2025-04-14T15:54:59.188Z","repository":{"id":54844714,"uuid":"522703799","full_name":"lilactown/eql-cli","owner":"lilactown","description":"A CLI for executing EQL queries on EDN data","archived":false,"fork":false,"pushed_at":"2022-08-09T21:55:11.000Z","size":11,"stargazers_count":50,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-10T17:23:05.723Z","etag":null,"topics":["babashka","clojure","edn","edn-data","eql","query-language"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lilactown.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-08-08T20:52:29.000Z","updated_at":"2024-06-12T10:32:26.000Z","dependencies_parsed_at":"2022-08-14T04:31:23.419Z","dependency_job_id":null,"html_url":"https://github.com/lilactown/eql-cli","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lilactown%2Feql-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lilactown%2Feql-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lilactown%2Feql-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lilactown%2Feql-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lilactown","download_url":"https://codeload.github.com/lilactown/eql-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248912249,"owners_count":21182240,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["babashka","clojure","edn","edn-data","eql","query-language"],"created_at":"2024-08-03T13:01:07.528Z","updated_at":"2025-04-14T15:54:59.164Z","avatar_url":"https://github.com/lilactown.png","language":"Clojure","funding_links":[],"categories":["Clojure"],"sub_categories":[],"readme":"# eql-cli\n\nA command line script for executing [EQL](https://github.com/edn-query-language/eql)\nqueries on [EDN](https://github.com/edn-format/edn) data.\nPowered by [pyramid](https://github.com/lilactown/pyramid) and [babashka](https://github.com/babashka/babashka).\n\n\n## Install\n\n### Homebrew\n\n```bash\nbrew install lilactown/brew/eql\n```\n\n### Scoop\n\nSee https://github.com/littleli/scoop-clojure#tools\n\n### Manual\n\n* Install [babashka](https://github.com/babashka/babashka)\n* Download the [eql](./eql) script and place it on your `PATH`.\n\n## Usage\n\n```bash\neql --query '[:foo]' '{:foo 123 :bar 456}'\n```\n\nReturns `{:foo 123}` as the result.\n\nData is also accepted over STDIN, so you can do the following\n\n```bash\necho '{:foo 123 :bar 456}' | eql --query '[:foo]'\n```\n\n\n## Usecases\n\nEQL over arbitrary data can be useful as a \"`select-keys` on steroids\" for deep\nnested data.\n\n\n```bash\ncurl -s https://pokeapi.co/api/v2/pokemon/ditto | # fetch some data\njet --from json --to edn --keywordize | # convert it from JSON to EDN\neql --query \"[:id :name :height :weight \\\n             {:abilities [{:ability [:name]}]}]\" | # select just the keys we want\njet # pretty print\n```\n\nOutputs\n\n```clojure\n{:abilities [{:ability {:name \"limber\"}} {:ability {:name \"imposter\"}}],\n :height 3,\n :id 132,\n :name \"ditto\",\n :weight 40}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flilactown%2Feql-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flilactown%2Feql-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flilactown%2Feql-cli/lists"}