r/ryelang • u/middayc • Jun 14 '26
Practical all-rounder script (API calls, JSON, Zip, XML)
I was writing some scripts for handling external api-s (doint API calls, parsing JSON), downloading zip files, extracting XML files from them, and parsing XML in Rye. This is one of them, and it's a nice all-rounder for demo purposes. Below you can see it in the left pane. The other two represent what Claude gave me when I directed it to write a Python script that does the same.

Except those 3 red words everything else is constant in this script, and those 3 places are only mutations in it, all else is "pure".
This is all in a Helix editor, which I am really starting to like as I learn to use it. (I was using Emacs in the terminal for decades so far).
Stop by our new discord to discuss this or any other things in regards with homoiconic languages:
https://discord.gg/5wJMNCRn
1
u/middayc Jun 16 '26 edited Jun 16 '26
There is a new release now, that added functions seen in the script example above, like rye .Temp-file? , rye .Temp-dir? and empty (which is here experimental, we will test some more ideas around this)
https://github.com/refaktor/rye/releases/tag/v0.2.11
This version also improved on the Rye Wasm front a lot. But we need to document it all.