Replies: 2 comments 1 reply
-
|
Hi, cool script and great observations. Just some quick responses:
Table API:
Other: I will do some updates and also try to fine tune your example. Thanks for giving me material for thought and good proposals. |
Beta Was this translation helpful? Give feedback.
-
|
I was mostly working on adding MQTT, but I've also upgraded columns? as you proposed. I wanted to test your code in concrete example but I saw Pocket is closing down. This would be your code now ... haven't been able to test it all together, but partially. Only change for this is upgraded Thanks so far for this ... any more feedback or discussion or examples of what you would like to do are welcome. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
As a followup to #659, I ended up doing some basic JSON work using Rye tables (though not what I originally added
to-json\linesfor). Here's the script I wrote. It takes some users from a JSON file and adds them to a Pocket ID server via its API.Things that I did not find in the documentation while writing the script:
++for concatenating strings and URLs. The documentation for+should point to++(and is wrong in suggesting that+works for strings etc. anyways).concatandconcat3are somehow in different parts of the documenation, making me missconcatfor two strings.to-urifor building the request URLs. I now see that++would be the easier solution for that.Table API:
columns?end with?? Isn't that more for a "getter" type functionality?columns?could learn some tricks from Julia DataFrameselect(). Something liketbl .columns? { 'name :displayName 'firstname :firstName }to filter and (optionally) rename in one go?where-inunfortunately didn't work (don't remember exactly why, probably it doesn't accept a list?) and I would have neededwhere-not-inanyways.wherethat takes a code block like a normal filter operation?I did have fun writing the script, though, so I'll probably use Rye again in the future :)
One more thing that came up while I was working on #659: I was confused regarding which functions take blocks verbatim (e.g.,
list,dict) and which function evaluate the items in the block (e.g.,join). I'd argue thatlistanddictshould behave likejoin, because I don't see why one would want a list of words rather than the values named by these words?Beta Was this translation helpful? Give feedback.
All reactions