Hacker GitHub

← All repos

hauntsaninja/pyp

View on GitHub ↗ ★ 1,536 Python

Easily run Python at the shell! Magical, but never mysterious.

16 mentions on Hacker News by 10 people: 1 story, 15 comments · first 2020-05-09 · latest 2023-10-23

Mentions per year 16 mentions · busiest year 2020 (7)
20082026
  1. …modules to import. It is very convenient and would be nice to have here. A version of `pypprint` ( https://github.com/hauntsaninja/pyp/blob/9408446a41bfdc60e44... ) may be useful, too. The most famous Python command-line tool like this is…
  2. …yet but looks like it's even better for this use case. [1] https://github.com/elesiuta/pyxargs [2] https://github.com/hauntsaninja/pyp
  3. …is about the only one that's tasteful in terms of project scope and not going off the deep end: https://github.com/hauntsaninja/pyp
  4. …I apologise if that sounds rude, but I don't know how else to put it, that's what it is. [0] https://github.com/hauntsaninja/pyp
  5. …you're able to see the exact Python code you'd run without running it, e.g. `pyp --explain x[:5]`. https://github.com/hauntsaninja/pyp
  6. …similar tool a while back that lets you create your own "magic" variables. I use `f` all the time! https://github.com/hauntsaninja/pyp#pyp-lets-you-configure-y...
  7. This looks like an unmaintained version of (the much more complete) pyp: https://github.com/hauntsaninja/pyp
  8. …pipe in what Xonsh calls "Python mode" is for me the central limiting feature of that shell.) [1] https://github.com/hauntsaninja/pyp
    comment by bscphil · 2021-09-16 · in A Tour of the Oil Language
  9. …| pyp '["\t".join(pair) for pair in zip(lines[::2],lines[1::2])]' | less +G; end; funcsave hist [1] https://github.com/hauntsaninja/pyp
    comment by dsp_person · 2021-04-06 · in IPython as a System Shell
  10. In a similar vein, pyp: https://github.com/hauntsaninja/pyp
  11. …teach new users these legacy tools and we can finally progress a little? 1 - http://xon.sh 2 - https://github.com/hauntsaninja/pyp
    comment by kabacha · 2020-05-19 · in Linux Productivity Tools (2019) [pdf]
  12. …import aliases, or use libraries like pipetools to make your life easier! More details at https://github.com/hauntsaninja/pyp#pyp-is-configurable
  13. …quicker for some use cases since it doesn't need subcommands, but I'll definitely be updating https://github.com/hauntsaninja/pyp#related-projects
  14. xonsh is great! I'm a fan of your cousin's work :-) I mentioned it in https://github.com/hauntsaninja/pyp#related-projects for if you want even more Python in your shell.
  15. Yup, that was the inspiration for this project and its name. See https://github.com/hauntsaninja/pyp#related-projects for more discussion. By no means is this a new idea, but I think this iteration has some convenient twists :-)
  16. ▲ 285
    Show HN: Pyp – Easily, magically, run Python at the shell
    story by hauntsaninja · 2020-05-09 · 42 comments