babashka
jello
Our great sponsors
babashka | jello | |
---|---|---|
2 | 31 | |
1,711 | 461 | |
- | - | |
9.7 | 5.8 | |
over 3 years ago | 4 months ago | |
Clojure | Python | |
Eclipse Public License 1.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
babashka
-
Show HN: Bbb – an easy way to build and compile Clojure CLIs with GraalVM
I've been learning Clojure recently and loving it, but one thing I've found myself missing from my Golang days is how easy it is to build and deploy CLI tools in Golang.
With GraalVM it's finally possible to compile Clojure apps into static binaries that give your users a deploy and startup experience similar to Go's, but I found GraalVM very difficult to configure and use, and was often frustrated because not all JVM code is compatible with GraalVM. Worse still, because native-images take a while to build you often don't find out that your working JVM Clojure code won't work as a native-image until it's too late.
BabashkaBins/bbb is my attempt to fix this: it lets you easily run the same codebase under babashka or JVM Clojure, and will automate compiling your project to a static binary for you using GraalVM's native-image. It also takes care of collecting some tweaks that make it easy to use the cli-magic [2] library under babashka, which means you can easily make complex CLI tools with nested subcommands a la git or docker, with all the bells and whistles.
Since babashka is itself compiled under GraalVM, this arrangement provides a other few nice benefits: 1) babashka starts quickly, so you can test your CLI from an actual command line without waiting for the JVM to spin up each time. 2) babashka's codebase contains a treasure trove of GraalVM related tweaks and fixes that using bbb lets you take advantage of in your own CLIs for free, and 3) it functions as a quick sanity check since babashka itself is compiled under GraalVM. If you find yourself doing something that's not GraalVM compatible at least you'll know early!
[1]: https://github.com/borkdude/babashka
-
A Practical Introduction to jq (and more)
```
[1]: https://github.com/borkdude/babashka
jello
-
jq 1.7 Released
Jello let’s you use python syntax with dot notation without the stdin/stdout/json.loads boilerplate.
https://github.com/kellyjonbrazil/jello
- the case for bash
-
Simple Apache Log Parser
Yep, you can create a filter in jq to do that. Alternatively, if you prefer Python syntax you could try jello, which works like jq but is really Python under the hood. (I am also the author of jello)
- I'm developing a new command line tool for querying and transforming JSON files , called ~Q (pronounced "unquery"). My design goal is to create a tool that is powerful yet easy to use (aim to be more intuitive for users than existing tools such as jq). Let me know your thoughts and suggestions.
-
An introduction to the magic of jq - Understanding the basics of jq with a realistic example
I'm no expert in any of these tools, but here are some yamlpath and jello examples to match:
-
Show HN: gq – like jq or zq, but you use Go
Similar in concept to jello[0] which works like jq but uses python syntax.
[0] https://github.com/kellyjonbrazil/jello
- Parsing Complex JSON
-
Searching for a value in json with jq
jello:
-
Anyone have a resource to filter out information from complex json outputs? In the example, I am trying to get the "state": "succeeded" information for each entry in the resource array.
Or, if you prefer python list comprehension syntax, you could use Jello:
- Ask HN: Local Tools for Viewing JSON
What are some alternatives?
PowerShell - PowerShell for every system!
jellex - TUI to filter JSON and JSON Lines data with Python syntax
cheshire - Clojure JSON and JSON SMILE (binary json format) encoding/decoding
dasel - Select, put and delete data from JSON, TOML, YAML, XML and CSV files with a single tool. Supports conversion between formats and can be used as a Go package.
jc - CLI tool and python library that converts the output of popular command-line tools, file-types, and common strings to JSON, YAML, or Dictionaries. This allows piping of output to tools like jq and simplifying automation scripts.
specter-cli - A native Specter CLI, compiled with GraalVM native-image and executed by SCI.
jq - Command-line JSON processor [Moved to: https://github.com/jqlang/jq]
clojure-lsp - Clojure & ClojureScript Language Server (LSP) implementation
jsonslicer - Stream JSON parser for Python
jq-web - jq in the browser with emscripten.
jmespath.py - JMESPath is a query language for JSON.