Pyp

Dev tools

shell utility

SHOW HN2020

285points
42comments
#146of 3,028 in 2020
Top 5%of 2020 by points

How HN took it

LovedMost comments that take a side are positive

11 positive, 2 neutral or asking, 1 mixed, 0 critical, out of 14 comments about the project. Thread score +0.63.

Idea: 5 for, 0 againstDesign: 2 for, 0 againstPerformance: 2 for, 0 againstDocs: 1 for, 0 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Useful for one-liner piping; magic feels well judged

    From 3 comments
    • Brilliant, just the right amount of magic. The explain feature is what really sold me that you thought about users! I wonder if I can put a bit of humanfriendly support in there…
      Evanbenn on HN
    • This is fantastic -- I will certainly turn to this instead of awk/sed in many instances. I expect I'll use this in place of particularly tricky greps too. Really nice that you…
      dbieber on HN
    • Very cool! I'm the author of sh.py, and seeing projects that use just the right amount of magic to accomplish something unique and powerful is inspiring. Great work and good luck…
      daenz on HN
  • Good documentation

    From 1 comment
    • I was going to ask "isn't this basically just awk" but the README quickly cleared that up! Excellent documentation. One thing I'm wondering is how's the startup time/performance…
      Hello71 on HN

Objections

  • Name taken from an existing project called pyp

    From 1 comment
    • Yanking another projects name is more than just 'inspiration'. I would consider it a very hostile action.
      nightcracker on HN
  • Startup time and performance concerns

    From 2 comments
    • This is going straight into the toolkit. The main thing that keeps me from doing more inline python is all of the printing boilerplate. Well, two things, the second thing being…
      kortex on HN
    • I was going to ask "isn't this basically just awk" but the README quickly cleared that up! Excellent documentation. One thing I'm wondering is how's the startup time/performance…
      Hello71 on HN

Requests

  • Add to CPython itself

    From 1 comment
    • Something like this should be baked straight into CPython itself. There are so many similar projects, there clearly is some demand for this. This could boost pythons usage for…
      slightwinder on HN

Questions

  • How to handle start/end marker ranges in streams

    From 1 comment
    • Pretty cool! How would one accomplish the following with pyp? * Wait until one sees a line with a start marker (say 'start:') * Perform on an operation on the lines until an end…
      isignal on HN

Alternatives named

  • Mario

    From 1 comment
    • Mario is a very featureful application of similar ideas, and includes multiple built-in transformations, concurrency support, user-defined commands, and extensive documentation.…
      j88439h84 on HN
  • xonsh

    From 1 comment
    • My cousin helped create xonsh (https://xon.sh), a POSIX-compliant "python as drop-in shell replacement", years ago.
      chrisweekly on HN
  • Original pyp by imageworks

    From 1 comment
    • There exists a very similar tool for several years with the exact same name https://opensource.imageworks.com/pyp.html
      dagmx on HN
  • pythonpy

    From 1 comment
    • Ubercool. There's a similar project called "pythonpy" which I had used in the past. It seems to have disappeared off the face of the earth, the only thing I found is this fork:…
      beagle3 on HN
  • Perl one-liners

    From 1 comment
    • Having moved from Perl to Python many years ago, this is one of those things that Perl has magic to handle, for example: ``` perl -lne '$sum += $_ if /start:/ .. /end:/;…
      Erwin on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/23127628)