Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hauntsaninja
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
31.
▲
by
hauntsaninja
6y ago
Thanks to everyone who checked pyp out! Not sure if this comment will ever get seen, but I just added the ability to configure pyp with statically analysed Python, so it's easy to define your own functions, import aliases, or use libra
32.
▲
by
hauntsaninja
6y ago
There are a number of possible options! And remember you can always pipe pyp to pyp. Here are some ideas, in order of what came to mind, where the operation is incrementing. pyp 'lines[lines.index("start") + 1:]' | p
33.
▲
by
hauntsaninja
6y ago
Given that the original project has been unmaintained for several years and is Python 2 only, I think it's not unreasonable. There's very little reason to have both installed, so I don't think it's a problem for users ei
34.
▲
by
hauntsaninja
6y ago
Thanks for sharing! I hadn't seen Mario before. The async support is super nifty! From a quick look, it looks like pyp might be a little quicker for some use cases since it doesn't need subcommands, but I'll definitely be upd
35.
▲
by
hauntsaninja
6y ago
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.
36.
▲
by
hauntsaninja
6y ago
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
37.
▲
by
hauntsaninja
6y ago
Thanks for checking pyp out! Startup time hasn't been particularly perceptible in my use of it. Just ran a quick benchmark on my (old, not powerful) laptop: ~ λ hyperfine 'pyp x' Benchmark #1: pyp x Time (mean ± σ):
38.
▲
Show HN: Pyp – Easily, magically, run Python at the shell
(github.com)
285 points
by
hauntsaninja
6y ago
|
42 comments